Reputation: 11
I was wondering is there any way to filter by Thanos store in Thanos+prometheus+Grafana
cluster. I am trying to query from Grafana dashboard to get results from exactly one store (we have 3).
Any help is appreciated, Thank you in advance
Upvotes: 1
Views: 1468
Reputation: 903
I experienced a similar issue.
I wasn't able to filter on any of my externalLabels
in Grafana PromQL queries :
prometheus:
externalLabels:
cluster: my_cluster
My misstake was that I configured the data source wrong in Grafana. I used prometheus-operated
instead of the actual query service :
http://thanos-query:9090
Upvotes: 0
Reputation: 11
I was able to do it by using following query:
prometheus_engine_queries
with following filter:
/.*env=\"(.*)\",instance/
env
- this is from -set storeGateway.additionalLabels.env
and it is added to every metrics
Upvotes: 1