Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stale Prometheus metrics #311

Merged
merged 1 commit into from
Dec 1, 2024
Merged

Conversation

DrJosh9000
Copy link
Contributor

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 DrJosh9000 force-pushed the fix-stale-prometheus-metrics branch from 0c30bae to ed9cac3 Compare October 10, 2024 05:09
@DrJosh9000 DrJosh9000 requested a review from a team October 10, 2024 05:49
Copy link
Contributor

@wolfeidau wolfeidau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, we need to come up with a good way to verify these changes using a cluster of agents.

@DrJosh9000 DrJosh9000 merged commit ceecce4 into master Dec 1, 2024
1 check passed
@DrJosh9000 DrJosh9000 deleted the fix-stale-prometheus-metrics branch December 1, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in the 5.9.8 Release
2 participants