-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Don't add replica labels to exemplar labels, only to its series labels #4223
Conversation
Signed-off-by: yeya24 <yb532204897@gmail.com>
Signed-off-by: yeya24 <yb532204897@gmail.com>
pkg/exemplars/exemplars.go
Outdated
d.Exemplars = dedupExemplars(d.Exemplars, rr.replicaLabels) | ||
} | ||
|
||
resp.data = dedupExemplarsSeriesLabels(resp.data, rr.replicaLabels) |
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.
I'm a bit confused. You say:
This pr removes the step of adding replica labels to exemplars. Only adding replica labels to exemplars' series labels.
dedupExemplarsSeriesLabels
deduplicates the data using the replica labels and removes those labels. Here now you are now only doing it on the series so series will be without the replica labels, and exemplars - will be with the replica labels. Shouldn't it be the other way around i.e. the deduplication should only happen on the exemplars? 😄
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.
Sorry, that was my big mistake. Thanks for catching it. I should modify the code from the Prometheus proxy side.
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.
Updated. PTAL
Signed-off-by: yeya24 <yb532204897@gmail.com>
da51e79
to
3d508c3
Compare
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.
LGTM, thanks!
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.
LGTM
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.
Coin Vote Website https://altcoinvote.com |
Signed-off-by: yeya24 yb532204897@gmail.com
Changes
Fixes #4222
This pr removes the step of adding replica labels to exemplars. Only adding replica labels to exemplars' series labels.
Verification