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

Datasource named ${DS_PROMETHEUS} was not found #4190

Closed
ahmedig opened this issue Jun 12, 2019 · 4 comments · Fixed by #4797
Closed

Datasource named ${DS_PROMETHEUS} was not found #4190

ahmedig opened this issue Jun 12, 2019 · 4 comments · Fixed by #4797

Comments

@ahmedig
Copy link

ahmedig commented Jun 12, 2019

I am using the grafana helm chart, and importing this dashboard. As soon as I open the dashboard, it welcomes me with the error message “Datasource named ${DS_PROMETHEUS} was not found”.

So in the helm chart appspec file, I have this:

dashboards:
  default:
    nginx-dashboard:
      url: https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/grafana/dashboards/nginx.json

I can later on edit the dashboard variables, create a datasource named DS_PROMETHEUS, and it works fine, but this should be included in the file's json as far as I understand.

Any clue?

@chrisevett
Copy link

+1

1 similar comment
@kirancodify
Copy link

+1

@abdennour
Copy link

Same issue. Same error message

image

@ZainAli26
Copy link

I am using the grafana helm chart, and importing this dashboard. As soon as I open the dashboard, it welcomes me with the error message “Datasource named ${DS_PROMETHEUS} was not found”.

So in the helm chart appspec file, I have this:

dashboards:
  default:
    nginx-dashboard:
      url: https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/grafana/dashboards/nginx.json

I can later on edit the dashboard variables, create a datasource named DS_PROMETHEUS, and it works fine, but this should be included in the file's json as far as I understand.

Any clue?

@ahmedig, what exactly did you do to create the datasource DS_PROMETHEUS. Did you add a new datasource from scratch or just made a new variable and pointed to it? For me adding new variable in dashboard (by Grafana GUI) doesn't populate data.

High5Apps added a commit to High5Apps/organize-backend that referenced this issue Oct 22, 2024
- Helpful for monitoring model count changes over time
- I manually made this dashboard on the remote host, then exported/saved the json file locally, then added it to provisioning
- I initially hit an error where data didn't show up on any of the visualizations "Datasource named ${DS_PROMETHEUS} was not found"
- The fix was to add the DS_PROMETHEUS variable to the dashboard settings and use it as the datasource for all of the visualizations, then re-export the json
  - I used the PostgreSQL Database dashboard settings as an example, since it also uses the DS_PROMETHEUS variable and had previously worked on both local and remote without hitting this error
  - https://github.com/kubernetes/ingress-nginx/pull/4796/files
  - https://grafana.com/docs/grafana/latest/dashboards/variables/
  - kubernetes/ingress-nginx#4190
- Finally, I deleted the manually created remote dashboard, since after pushing this change it will be provisioned/re-added using the json file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants