Watch
0
0
Fork
You've already forked hyperhive
0

grafana: the data-transferred-by-domain panel steps at 5 minutes and draws bars

Squid logs a tunnel's bytes once, when it closes, so a large download was
one point in a small bucket and read as instantaneous. The panel now has a
5 minute minimum interval and bars, so that point is a visible bar. The
module-eval check pins both.
This commit is contained in:
iris 2026-11-09 21:06:07 +01:00 • committed by mara
commit b6af390581

View file

@ -713,6 +713,12 @@ let
&& (lib.head xf).spec.options.value == "__name__"
&& (lib.head xf).spec.options.join != [ ]
) (lib.filter (e: e.spec.vizConfig.group == "table") (lib.attrValues board.spec.elements))
# Squid logs a tunnel's bytes once, when it closes, so a large download is
# one point. The by-domain panel steps no finer than 5 minutes and draws
# bars, so that point is a visible bar rather than a sliver.
&& board.spec.elements."panel-21".spec.data.spec.queryOptions.interval == "5m"
&&
board.spec.elements."panel-21".spec.vizConfig.spec.fieldConfig.defaults.custom.drawStyle == "bars"
&& lib.hasInfix "logformat would_deny would_deny user=%[un method=%rm host=%>rd port=%>rP result=" squid
&& lib.hasInfix "access_log syslog:daemon.info squid !manager" squid;
}