-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 Prometheus histograms when keylabels and values sit at the same path #11759
Fix Prometheus histograms when keylabels and values sit at the same path #11759
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking this @odacremolbap! please update the description to reflect the fix, also left a comment that should simplify the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done on new tests and debugging this issue!
…ath (elastic#11759) - Fix Labels overwriting for Prometheus histograms + keylabels - Add tests for keylabeled prometheus metrics (cherry picked from commit eb89eaa)
Thanks for fixing this. The part I'm surprised is that this did not have an affect on any of the generated files from the new data generator. Would be great to also add an example with such a case to one of the metricsets. |
CoreDNS seems to be the first module affected by this. |
Only the |
afaik only the open PR is affected? |
When a Prometheus histogram is configured to set
KeyLabel
at the same path at the event where the values will be written, labels will be smashed by values.Those scenario patterns are:
with mappings defined as
which will lead to labels not included for histograms