-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add support to backup/restore alert rules #108
Comments
There's a few tickets that are somewhat blocked right now. There's an official go client built based on the swagger / OpenAPI definition that's being worked on. grafana/grafana#47827. Once that's finalized, I plan on moving GDG over to it which opens up a lot more options as to what to support. Currently we're using: https://github.com/grafana-tools/sdk. Anything on there I'm happy to add which is usually trivial. Otherwise need to patch the SDK, wait for upstream to pull that in. Once those changes are approved I can pull them into GDG. I'll check in with the grafana team to see what the status is. Though I assume with the ticket still open it's not official yet. |
This is no longer blocked, will try to prioritize this, please vote on any feature you really want to see worked on. |
SetupWith
To backup
To restore in
ProblemIn Would you know why this might happen and how to solve it ? UPDATEWhile trying different things I noticed that upon saving (without changing anything) the restored dashboards brings back the alert heart icon on the panel it was configured against as well as the the alert rules in the alert rule list Investigating further led me to discover that Grafana actualy has a different JSON schema when exporting/importing through the UI interface and another one through the API My assumption is that gdg uses chromium the dashboard/import API instead of the grafana dashboard api ( FixIn order to fix the alert issue I redownloaded all dashboard through the Grafana HTTP api this time and reuploaded them through the same api endpoint after merging the json with the following Using
If one performs the jq operation and opens the edited json will realize that there is no top-level UPDATE Moved to new issue under : #247 |
Problem:
I use grafana alerting system where I put alert rules in grafana directly. I would like them also to be backed-up like everything else
Solution:
Having a way to backup alert rules like dashboards, datasources, etc
alternatives:
grafana alerts exporter.
this is a bit basic though, and I already appreciate very much gdg. I would like to be able to use only gdg for both dashboards and alert rules
The text was updated successfully, but these errors were encountered: