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

Ensure that Harvest dashboards work with Grafana 10.X #2547

Closed
cgrinds opened this issue Dec 12, 2023 · 2 comments · Fixed by #2713
Closed

Ensure that Harvest dashboards work with Grafana 10.X #2547

cgrinds opened this issue Dec 12, 2023 · 2 comments · Fixed by #2713
Labels
24.05 feature New feature or request status/done

Comments

@cgrinds
Copy link
Collaborator

cgrinds commented Dec 12, 2023

No description provided.

@cgrinds cgrinds added feature New feature or request 24.02 labels Dec 12, 2023
@cgrinds cgrinds added 24.05 and removed 24.02 labels Feb 9, 2024
@Hardikl
Copy link
Contributor

Hardikl commented Feb 23, 2024

Issue:

After grafana version 10.2.3, default prometheus type datasource name has been changed from Prometheus to prometheus while adding the datasource in grafana. While dashboard import, If the datasource name in json file don't match with the grafana datasource name, then datasource not found/legacy datasource error will be shown in all the panels and all the dashboard will be impacted.

Summary of what we have discussed as next steps

  1. We can change our grafana import default to prometheus and we need to change our datasource add workflow for Docker, NABox and Ansible to use prometheus as Harvest controlled those workflows
  2. Update our documentation to say
  • When you create a Prometheus datasource in Grafana make sure you name it prometheus
  • If you already have a Prometheus datasource setup, you need to make sure that name matches what you use for import --datasource
  1. We could use Grafana's API to get all datasources and check that the datasource you specify at the CLI exists and if it does not, then fail the import workflow.
  2. Add another CLI switch --force Import even if datasource does not exist in Grafana

@rahulguptajss
Copy link
Contributor

verified in 24.05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
24.05 feature New feature or request status/done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants