thanos: store:/api/v1/label//values matchers not work
Hello. I encountered the problem described in #5469
Today we upgraded grafana and queries label_values()
moved from /api/v1/series
to /api/v1/label/<label>/values
.
Now we got all label values for all queries, matchers not wok. For example:
New api
curl "http://thanos-query/api/v1/label/job/values?match%5B%5D=up" | jq '.data | length'
295
curl "http://thanos-query/api/v1/label/job/values?match%5B%5D=test9" | jq '.data | length'
295
Old api
curl "http://thanos-query/api/v1/series?match%5B%5D=up" | jq '.data | length'
23172
curl "http://thanos-query/api/v1/series?match%5B%5D=test9" | jq '.data | length'
0
Thanos: v0.32.5 Prometheus: v.2.45.1
About this issue
- Original URL
- State: open
- Created 8 months ago
- Reactions: 1
- Comments: 25 (16 by maintainers)
I can confirm issue with v0.19.0. With v0.32.5 all works.
The main problem that query
/api/v1/label/job/values
on thanos ignoresmatch
. I tried to describe this in first message.up
valid metrictest9
- metric that doesn’t existI should get
0
for a non-existent metric. But/api/v1/label/job/values
return non-zero (all labels) for anymatch