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:
gorkem-bwl committed 2026-04-28 23:57:14 -04:00
1 parent fef3f2c294
commit c89dbebe98
17 files changed
+80 -48

No files matched your search

+3 -2
View File
@@ -769,6 +769,7 @@
"memory": "Uso de memória",
"netBytesRecv": "{{name}} - Bytes recebidos",
"netBytesSent": "{{name}} - Bytes enviados",
"netNoTraffic": "Capture está reportando zero tráfego em todas as interfaces. Isso é normal quando Capture é executado dentro de um container que só consegue ver interfaces de loopback — execute Capture diretamente no host para ver a atividade real da rede.",
"temp": "Temp"
}
},
@@ -1236,8 +1237,8 @@
"description": "Adicione monitores de exemplo para fins de demonstração."
},
"removeMonitors": {
"title": "Redefinição do sistema",
"description": "Remova todos os monitores do seu sistema.",
"title": "Redefinir sistema",
"description": "Remover todos os monitores do seu sistema.",
"dialog": {
"title": "Remover todos os monitores?",
"description": "Isso não pode ser desfeito."