-
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
sidecar: implement without replica labels capability #6127
sidecar: implement without replica labels capability #6127
Conversation
5ac922b
to
6f8f6dd
Compare
pkg/store/prometheus.go
Outdated
extLsetToRemove := map[string]struct{}{} | ||
for _, lbl := range r.WithoutReplicaLabels { | ||
extLsetToRemove[lbl] = struct{}{} | ||
} |
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 know this is still draft, but should we remove the labels from the existing extLset
here? This way everything else will keep working and we don't need to do rmLabel
everywhere else.
Maybe we should even move this chunk to line 176 to make sure we strip replica labels when skipChunks
is true.
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.
@fpetkovski you are correct, I had to move this chunk a bit to cover shipChunks
case. I actually noticed that Prometheus already sends labels with external labels in them so I'm not sure why we were always calling labels.Extend
. I have removed that.
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.
Makes sense. The good thing with this is that we don't need to copy labels.
6f8f6dd
to
11efe5c
Compare
b4f149c
to
27ffd8c
Compare
Implement the new without replica labels capability in Sidecar to have more efficient querying. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
27ffd8c
to
dad8ea4
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.
Thanks, LGTM 👍
Implement the new without replica labels capability in Sidecar to have more efficient querying. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Implement the new without replica labels capability in Sidecar to have more efficient querying. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Implement the new without replica labels capability in Sidecar to have more efficient querying.