-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Dashboards: Grafana shows datasource UID instead of name in legend #78949
Comments
Hi @dmitriishaburov, thank you for submitting this issue. Could you please provide the (correct) last working version? Thanks! |
@adela-almasan sorry, last working version was |
Hey @dmitriishaburov , this was an intentional change, and can be reflected in the "breaking changes" category of our CHANGELOG for From the above CHANGELOG: "The data source template variable type has changed the way it represents its options. The text field still represents the data source name, but the value has been changed to the uid of the data source. This allows dashboards to declare the currently selected option by uid, however it changes how a datasource template variable value will be rendered by default. If the name of the data source is expected, the variable syntax will have to be changed to specify the text format." In other words, if you try |
Oh, sorry, will pay more attention to that changelog instead of |
No worries. There's a lot of new features and changes all the time; it's even hard for us to keep track! |
What happened?
We're using datasource variable in dashboard, and putting it into legend in some panels.
Before it was rendering datasource name picked via dropdown.
After update to 10.1.0 and later it's rendering datasource UID instead.
What did you expect to happen?
Panel legend that's using
${datasource}
should render datasource name instead of UIDDid this work before?
Yes, last version is 10.0.9
How do we reproduce it?
datasource
${datasource} - usage
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: 10.2.2
OS: Windows 11
Browser: Chrome
Grafana platform?
Kubernetes
Datasource(s)?
No response
The text was updated successfully, but these errors were encountered: