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 to remove reset in prometheus backend #296

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

wolfeidau
Copy link
Contributor

@wolfeidau wolfeidau commented Jul 22, 2024

This has been reoved as it can't work for more than one cluster as gauges are scoped to all clusters, but the collect function is called once for each agent token. In summary this leads to gauges only being correct for the last agent, depending what metrics were returned when the cluster was polled as the result doesn't always include all keys. 😭

Also trimmed the pipeline metrics as they aren't used, and ensured the logger included short file name as it is helpful.

Added some comments to ensure my assumptions are captured and avoid confusion in the future.

This has been reoved as it can't work for more than one cluster as gauges are scoped to all clusters, but the collect function is called once for each cluster. In summary this leads to gauges only being correct for the last cluster, depending what metrics were returned when the cluster was polled as the result doesn't always include all keys.
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@wolfeidau wolfeidau merged commit e173cfd into master Jul 22, 2024
1 check passed
@wolfeidau wolfeidau deleted the fix_more_selective_reset_of_gauges branch July 22, 2024 02:54
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.

3 participants