Dashboards/Templating: Label Value query works when picking a datasource but not when repeating rows by datasource. #87997
Labels
area/dashboard/templating
team/grafana-dashboards
Dashboards squad
triage/needs-confirmation
used for OSS triage rotation - reported issue needs to be reproduced
What happened?
When using the
label_value()
query as a dashboard variable across repeated rows the respective datasource isn't used inside each row. Instead it uses first Value Label returned from all datasources in alphabetical order.What did you expect to happen?
I expected to see
label_value()
data only from the datasource for its row.This query should be limited to its own datasource/row rather than all datasources on a page.
Did this work before?
No but it seems like it should intuitively work this way.
How do we reproduce it?
Add a Label Value dashboard variable.
Choose a label that:
label_value(grafana_environment_info,app.kubernetes.io/name)
Note: When selecting a different data source the value for the Label Value is updated as expected:
Create a row that repeats per datasource:
Add a text visualisation to the repeated row that uses the Label Value variable:
Selecting one or the other datasource reflects correctly:
Selecting all with repeat does not:
Is the bug inside a dashboard panel?
No.
Environment (with versions)?
Grafana: Grafana v10.4.1 (d94d597)
OS: Kubernetes 1.29
Browser: Chrome
Grafana platform?
Kubernetes
Datasource(s)?
Prometheus
The text was updated successfully, but these errors were encountered: