-
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
Improve Bucket LabelValues Call with matchers #3779
Comments
If nobody is working on this then I and @Abhishek357 wants to take this up. |
@Namanl2001 That would be great! Please go ahead. It would be easier to start with the first and the second point. |
From Contributor Office Hour: Why porting LabelValues matchers, how it's improving performance? Reason:
|
I am working on task 1:
PS: It would be beneficial to get some hints for further debugging/testing. |
Yes, you can use that.
Yes. As the matchers in the matchers, err := storepb.MatchersToPromMatchers(r.Matchers...)
// TODO: Handle the err above.
res, _, err := q.LabelValues(r.Label, matchers...) I think that's all for the code change, but please also add some tests to the |
Thanks!
|
It is up to you. If you feel more data is required you can add more.
That's correct.
Are you asking this specific test case? In this test case, after adding series with labels If you query the label values of |
Now, I'm on Task 2:
|
Yes. That's for Prometheus version that meets the requirement.
Yes, that's different. We support this in Thanos, but it is just the client side, which means |
This sounds good to me. But I'm not getting the code block where this check should be added. |
You can add that to For getting Prometheus's version, you can take a look at this API https://prometheus.io/docs/prometheus/latest/querying/api/#build-information. |
Facing problem in getting the prometheus version. Are we using any other prometheus API already, from which I could get some idea to implement this |
@Namanl2001 You can take a look at |
Describe the solution you'd like
Upstream Prometheus merges the improvement about LabelValues with matches today prometheus/prometheus#8400. It would be nice to have this support in Thanos as well.
AC:
These steps can be done in different PRs.
The text was updated successfully, but these errors were encountered: