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

grafana: Configure dashboards in json #78

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Conversation

leoyvens
Copy link
Contributor

@leoyvens leoyvens commented Aug 7, 2023

This proposes a new flow for developing the dashboards, where instead of managing them inside grafana.db, they are provisioned from a directory containing the dashboard jsons. This avoids conflicts in the grafana.db and makes changes more reviewable. When editing a dashboard, this dialog is now shown:
Screenshot 2023-08-07 at 18 41 28

So you can no longer directly save the dashboard, but you have to copy paste it back into the file. Grafana listens for changes in the file and will update the live dashboard.

This also includes the script I used to pull the existing dashboards (don't be impressed, ChatGPT wrote it). It might prove useful again if we need to pull dashboards from the cloud through the Grafana API to commit them back to this repo.

@leoyvens leoyvens requested a review from neysofu August 7, 2023 21:51
@leoyvens leoyvens merged commit 9110546 into main Aug 8, 2023
4 checks passed
@leoyvens leoyvens deleted the leo/json-dashboards branch August 8, 2023 17:33
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 this pull request may close these issues.

2 participants