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: convert Prometheus histograms to non-cumulative otel histogram #6685

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mehran-prs
Copy link

When we record a value using Prometheus histograms, it captures that value for that bucket and also previous buckets, but open telemetry histogram captures in a non-cumulative way, I mean it just captures for the matched bucket and doesn't add that value to the previous buckets.
This issue causes getting wrong histogram values when we use Prometheus bridge to send our data to open telemetry collector.
Please take a look at issue #4484 as an example of this issue.

Its fix was quick, so I made a PR, but let me know if I'm wrong or I should use the bridge in another way please.

@mehran-prs mehran-prs requested review from dashpole and a team as code owners January 26, 2025 21:02
Copy link

linux-foundation-easycla bot commented Jan 26, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

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.

1 participant