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

Replaces gauges with constmetrics #224

Merged

Conversation

diffs
Copy link
Contributor

@diffs diffs commented Oct 6, 2022

Switching the prometheus gauges to ConstMetrics will help address the issue of some metrics being at wrong values (eg. ceph_pg_state).

Addresses issue #102

Not all gauges have been moved to ConstMetrics in health.go - the ones related to OSD mapping stayed as gauges. This is because existing logic and unit tests need them initialized at 0 and then updated based on certain flags, which is more difficult to do when using ConstMetrics.

@diffs diffs changed the title STORSYS-524: Replaces gauges with constmetrics Replaces gauges with constmetrics Oct 6, 2022
Copy link
Contributor

@baergj baergj left a comment

Choose a reason for hiding this comment

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

😋

ceph/health.go Outdated Show resolved Hide resolved
@diffs diffs merged commit fec9597 into main Oct 13, 2022
@diffs diffs deleted the digitalocean/STORSYS-524/replaces-gauges-with-constmetrics branch October 13, 2022 18:15
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.

2 participants