Replies: 1 comment 2 replies
-
Does label_values work in older versions of Grafana? I have a suspicion that Grafana recently changed the API call that label_values makes, breaking compatibility with GMP. If so, we'll have to implement a fix. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
we deployed the frontend-proxy to access Managed Prometheus. In our dashboards we use variables such as
label_values(kube_pod_info, cluster)
but these queries doesn't work - they return 400 because Grafana uses /api/v1/$label/values endpoint - this is how the request look like:I understand from docs that this is not supported (https://cloud.google.com/stackdriver/docs/managed-prometheus/query#http-api-details) but I am not using the form
label_values($label)
but the recommended onelabel_values($metric, $label)
.Is it possible to use
/api/v1/series
for getting just label values ? I am struggling with the query...We use:
Thanks for help.
Edit: Relevant PR in Grafana - grafana/grafana#56510 . We specified the prometheus version in data source setting to 2.35.0 (
"prometheusVersion": "2.35.0",
)Beta Was this translation helpful? Give feedback.
All reactions