-
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
query: query_exemplars does not account for external labels #4116
Comments
Thanks for reporting this issue. |
This problem is more complex than it looks like because the param In order to process this exemplar query, the querier needs to:
The left side matches cluster A and the right side matches cluster B. In this case, we have to query cluster A for the left side and query cluster B for the right side, instead of sending the original query to them.
Anyway, I have a working fix for this already. Will open a pr after test cases are added. |
@yeya24 Please ping me on the PR for the fix and let's open it against the release branch and we can easily release a patch. |
@goku321
Thanos, Prometheus and Golang version used: v0.20.0 docker image
Object Storage Provider: gcs
What happened:
--exemplar=...
on our local and global queriersWhat you expected to happen:
however...
the time series panel includes the full query from the panel, including external labels used by the local prom
instances.
the query_range queries work as expected.
query_exemplars did not.
If I send the query_exemplars a query including the external labels, I get an empty response.
If I remove the external labels and just use labels the local prom instance knows about, I get responses.
How to reproduce it (as minimally and precisely as possible):
(we have a second tier of queriers, but I do not think that is causing the issue.
The text was updated successfully, but these errors were encountered: