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

Convert OpenMetrics Info and StateSet metrics to non-monotonic sums #2380

Merged
merged 7 commits into from
Mar 16, 2022

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Feb 24, 2022

Issues:

Changes

Instead of dropping Info and StateSet metrics, we should convert them to non-monotonic sums. In the future, there may be reasons to want to preserve the original type (similar to open-telemetry/wg-prometheus#69), but for now, converting to non-monotonic sums is preferable to dropping them.

@Aneurysm9 @jmacd @brian-brazil @jsuereth

@dashpole dashpole requested review from a team February 24, 2022 16:36
specification/metrics/datamodel.md Outdated Show resolved Hide resolved
specification/metrics/datamodel.md Outdated Show resolved Hide resolved
@dashpole
Copy link
Contributor Author

Since this PR now references the target info metric handing in #2381, it should wait until after that PR is merged.

@jmacd jmacd changed the title Convert OpenMetrics Info and StateSet metrics to gauges Convert OpenMetrics Info and StateSet metrics to non-monotonic sums Mar 8, 2022
@dashpole
Copy link
Contributor Author

I think this can be merged if everyone is happy with it

@bogdandrutu bogdandrutu merged commit 1eb20d7 into open-telemetry:main Mar 16, 2022
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
…pen-telemetry#2380)

* convert OpenMetrics Info and StateSet metrics to gauges

* describe info and statesets in terms of gauges

* address feedback

* note exception for target info

* use non-monotonic sums, rather than gauges

Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
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.

7 participants