buildkite-agent-metrics icon indicating copy to clipboard operation
buildkite-agent-metrics copied to clipboard

Fix stale Prometheus metrics

Open DrJosh9000 opened this issue 5 months ago • 0 comments

What

Pre-register all metrics with Prometheus, and change which data structure is looped over so that metrics that are no longer present in the collector result (typically for queues that exist but might not have agents or jobs) are naturally reset to 0.

Why

Fixes #304

DrJosh9000 avatar Sep 19 '24 01:09 DrJosh9000