Commit Graph
4 Commits
Author SHA1 Message Date
Chris Lu 12ce9ac762 admin: key monitoring queries by metric name and scrape endpoint
Sources are now metrics endpoints rather than component names, so
cluster-wide aggregates match on any source and let the metric name
identify the component. Detail pages iterate the scrape endpoints and
only list one when it actually serves that component's series, which
keeps a combined "weed server" from appearing as four separate nodes.

The empty-state notice now tells operators to start servers with
-metricsPort, since that is what creates the listener.
2026-09-14 23:59:38 -07:00
Chris Lu e59dbe354f admin: read cluster-wide master gauges from the leader only
Under-replicated, writable and crowded volume counts are cluster-wide
values that only the leader maintains. Summing them across masters
double-counted them, and a demoted master keeps serving its last values,
so a leadership change could inflate the health alerts.
2026-09-14 23:59:38 -07:00
Chris Lu 609aab6d8a admin: classify volume reads and writes by HTTP method
The request counters label "type" with the HTTP method, so filtering on
type=read/write matched nothing and left the throughput chart empty. A
live cluster reports type=GET/POST.
2026-09-14 23:59:38 -07:00
Chris Lu dfbdc864a0 admin: build monitoring page data from stored metrics
Aggregates the scraped series into per-page structs: overview health,
throughput, latency, errors and maintenance, plus per-server detail for
volume servers, filers, S3, masters and workers. Rates and counts are
summed across servers; latency quantiles take the worst server, since
quantiles cannot be summed. Disk usage is derived from the volume server
resource gauge's used/all mounts.
2026-09-14 23:59:38 -07:00