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

openmetrics formatter: emit gauge metrics #504

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

jan--f
Copy link
Contributor

@jan--f jan--f commented Sep 5, 2024

count was not a valid metric type and gauge is the better type since counters are expected to strictly increase.

An up to date Prometheus will complain about unknown metric types.
See https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#type for valid types.

The doc says:

Gauges are current measurements, such as bytes of memory currently used or the number of items in a queue. For gauges the absolute value is what is of interest to a user.

`count` was not a valid metric type and `gauge` is the better type since
counters are expected to strictly increase.

Signed-off-by: Jan Fajerski <[email protected]>
@boyter boyter merged commit e431ee7 into boyter:master Sep 6, 2024
3 of 4 checks passed
@boyter
Copy link
Owner

boyter commented Sep 6, 2024

Thanks for that. Its something I am woefully ignorant about.

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