Repository navigation
WIP: Handling label conflicts in NHCB to classic histogram conversion - #17279
Naman-B-Parlecha wants to merge 6 commits into
Conversation
Signed-off-by: Naman-B-Parlecha <[email protected]>
Signed-off-by: Naman-B-Parlecha <[email protected]>
Signed-off-by: Naman-B-Parlecha <[email protected]>
Signed-off-by: Naman-B-Parlecha <[email protected]>
… tests Signed-off-by: Naman-B-Parlecha <[email protected]>
714420d to
b01e8d8
Compare
Signed-off-by: Naman-B-Parlecha <[email protected]>
b01e8d8 to
7f1256a
Compare
|
Nice, that's one way of doing this, but TBH it might need a focused proposal to really tell pros & cons and find consensus. We initially planned to discuss this in native summaries, but honestly a separate proposal (since it also relates to unrolling nhcbs) would be useful. So if I understand this right, for
This can happen on push a lot, how Otel is defined to behave in this case? cc @dashpole |
|
OTel just YOLO adds the labels and suffixes. We let scrape-time validation from client_golang catch duplicates. |
|
Hello from the bug scrub! What's the status ? Is the discussion still ongoing ? |
Which issue(s) does the PR fix:
Does this PR introduce a user-facing change?
As we were exploring when unrolling Native Histograms to Classic Histogram we have to rebuild the time series for histogram we go into label collision problem what it means is
We can store a native histogram like
my_histogram, which can later be unrolled to classic histogram format by automatically creating multiple series with magic suffixes likemy_histogram_bucket,my_histogram_countandmy_histogram_sum. This creates a collision problem where you end up with two differentmy_histogram_bucketseries.In a similar way we can also have issues with “le” labels, User can configure and add in “le” labels to native histograms but this will end up clashing as when unrolling we add the custom values as “le” labels leading to a conflict in labels and series name
We will see a similar problem in Native Summaries as well, To address this issue @bwplotka recommended Honor label strategy that we could implement in this scenario
I have added
_converted_to_classic_histogramsuffix to avoid Series Name clashexported_prefix to avoid label clashTest Labels :
Relevant Links: