Fix Prometheus histograms when keylabels and values sit at the same path#11759
Conversation
exekias
left a comment
There was a problem hiding this comment.
Thank you for taking this @odacremolbap! please update the description to reflect the fix, also left a comment that should simplify the code
exekias
left a comment
There was a problem hiding this comment.
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
KeyLabelat 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