Dashboard: read gauges per node #76

Merged
jcoffey-dev merged 2 commits from fix/gauges-per-node into main 2026-10-01 02:01:46 +00:00
2 Commits
Author SHA1 Message Date
jcoffey-dev 229dd6179d Dashboard: write the underflowed test readings as expressions
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 1m42s
no-loss-of-precision rejected the 20-digit literals.
2026-09-30 18:59:39 -07:00
jcoffey-dev cbff590d49 Dashboard: read gauges per node
github/ci (branch) GitHub Actions
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / github (pull_request) Failing after 1m2s
Every node stores its own gauge readings, and the dashboard took the
latest from whichever node wrote last, or added up every reading in a
chart slice. Per-node gauges (memory, open connections) showed one node
or a pile of ticks, and the cluster-wide counts could show another
node's drifted copy: a 20-digit queue (an underflow stored unsigned) or
0 accounts.

gaugeReading takes each node's latest reading, adds per-node gauges up,
and for queue/user/domain counts takes the largest believable one, which
also skips the junk already in history (inbuxa-server stops storing it).
Cards, chart slices and the memory tile use it; the tile now reads all
nodes from history rather than one node's live value.
2026-09-30 18:52:56 -07:00