-
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
StoreGateway not picking external labels in querier metadata API endpoint - /api/v1/label/<label_name>/values
#2984
Comments
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Any help or work arounds? |
Hey, sorry for delay. What's the use case? And I think it makes total sense to uniform Label values to work similarly between StoreAPI implementations. |
Thank you for dropping by @bwplotka.
Can you please help us out as to what are we missing here. |
Fixes thanos-io#2984 Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Fixes thanos-io#2984 Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
* Add hints support to labels API responses Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Move to dedicated hints types and add tests Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Add external labels to the values returned in API Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Add changelog entries Fixes thanos-io#2984 Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> Signed-off-by: Oghenebrume50 <raphlbrume@gmail.com>
Components it touches - querier, storegateway, sidecar.
Thanos, Prometheus and Golang version used:
Thanos
**Prometheus **
Thanos - quay.io/thanos/thanos:v0.13.0; Prometheus - quay.io/prometheus/prometheus:v2.14.0
Object Storage Provider:
AWS S3 Bucket
What happened:
When external_labels are added to scrape config and tried to filter the label values via metadata API within querier by fetching TSDB from gateway connected to s3 bucket, no values are returned. But when the querier is set directly set to fetch from sidecar, the external_labels are fetched correctly. Some more info -
grafana/grafana#26764
https://groups.google.com/forum/#!msg/prometheus-users/c6kaSHiP7Cc/fILFnptyAQAJ
What you expected to happen:
The label_values for external_labels should be filtered automatically in the querier API metadata endpoint while fetching it from stoegateway.
How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components:
Anything else we need to know:
Environment:
The text was updated successfully, but these errors were encountered: