Skip to content
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: Exporting for external use #82260

Closed
a-pattani opened this issue Feb 9, 2024 · 3 comments
Closed

Dashboards: Exporting for external use #82260

a-pattani opened this issue Feb 9, 2024 · 3 comments
Labels
needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc

Comments

@a-pattani
Copy link

What happened?

While exporting boards for external use it generated data source UID variable e.g. "$DS_PROMETHEUS". It is only useful when you have only one other environment. In my case I have three different environments and using helm charts to provision boards. In other two environment it throws error "$DS_PROMETHEUS not found" because though the data source is same e.g. prometheus UID is different.

What did you expect to happen?

It should some how auto detect the DS UID and should set it in background.

Did this work before?

No

How do we reproduce it?

  1. In my case I have three different environments and using helm charts to provision boards. In other two environment it throws error "$DS_PROMETHEUS not found"

Is the bug inside a dashboard panel?

No

Environment (with versions)?

Grafana: 10.2.2
OS: Windows
Browser: Chrome

Grafana platform?

Kubernetes

Datasource(s)?

Prometheus and Loki

@tonypowa
Copy link
Contributor

tonypowa commented Mar 5, 2024

Hello @a-pattani

Thank you for submitting the issue, tonypowa! To help us better understand and address your concern about the data source UID variable during export, could you please provide the following additional information:

Error logs or screenshots where '$DS_PROMETHEUS not found' is being shown

To reproduce the issue more effectively, it would also be valuable if you could provide a minimal example of a dashboard definition (in JSON) that is failing to import correctly due to the UID issue.

@tonypowa tonypowa added the needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc label Mar 5, 2024
@a-pattani
Copy link
Author

Hi, This has been resolved.
i have created datasource template variable with this name and it solved the issue.

@tonypowa
Copy link
Contributor

tonypowa commented Mar 5, 2024

thank you for sharing your solution @a-pattani !
closing ...

@tonypowa tonypowa closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc
Projects
None yet
Development

No branches or pull requests

2 participants