ysde / grafana-backup-tool

A Python-based application to backup Grafana settings by using the Grafana API
MIT License
808 stars 269 forks source link

fix(alertrules): avoid making alert rules readonly in UI when updated #263

Open jarmd opened 4 months ago

jarmd commented 4 months ago

This will fix, so existent alert rule will not move into "Provisioned" state when updated by a restore.

This has been tested on our staging and production environment, by using the following forked version: https://github.com/vestas-oss/grafana-backup-tool

1 thing to add is that IF someone has run the restore before this fix, the alarts will keep staying in provisioning mode, and the only way to correct this is to delete all alert rules using the grafana API: