feat(infrastructure): show notice when network charts have zero traffic
When Capture runs inside a container (typical for Docker Desktop), the only visible interfaces are loopback, so every bytes_sent/bytes_recv counter is zero and the charts render as flat lines without any explanation. Users couldn't tell whether Capture was unreachable, the monitor was broken, or there was just genuinely no traffic. Detect the case where checks exist (chart configs were built) but every interface across every check reports zero bytesSentPerSecond and deltaBytesRecv, and render a NoticeBanner above the chart grid explaining it and suggesting Capture be run on the host. Adds pages.infrastructure.charts.labels.netNoTraffic to all 16 locales.
This commit is contained in:
1 parent
fef3f2c294
commit
c89dbebe98
17 files changed
+80
-48
No files matched your search
@@ -769,6 +769,7 @@
|
||||
"memory": "การใช้งานหน่วยความจำ",
|
||||
"netBytesRecv": "{{name}} - ไบต์ที่รับ",
|
||||
"netBytesSent": "{{name}} - ไบต์ที่ส่ง",
|
||||
"netNoTraffic": "Capture รายงานว่าไม่มีการรับส่งข้อมูลบนอินเทอร์เฟซใดๆ เลย ซึ่งเป็นเรื่องปกติเมื่อ Capture ทำงานอยู่ในคอนเทนเนอร์ที่มองเห็นเพียงอินเทอร์เฟซ loopback เท่านั้น — รัน Capture บนโฮสต์โดยตรงเพื่อดูกิจกรรมเครือข่ายจริง",
|
||||
"temp": "อุณหภูมิ"
|
||||
}
|
||||
},
|
||||
@@ -1237,7 +1238,7 @@
|
||||
},
|
||||
"removeMonitors": {
|
||||
"title": "รีเซ็ตระบบ",
|
||||
"description": "ลบมอนิเตอร์ทั้งหมดออกจากระบบ",
|
||||
"description": "ลบมอนิเตอร์ทั้งหมดจากระบบของคุณ",
|
||||
"dialog": {
|
||||
"title": "ลบมอนิเตอร์ทั้งหมด?",
|
||||
"description": "ไม่สามารถย้อนกลับได้"
|
||||
|
||||
Reference in new issue
Block a user