Auto-delete orphaned Grafana alert rules on deploy #103

Open
opened 2026-07-26 04:50:26 +00:00 by anish · 0 comments
anish commented 2026-07-26 04:50:26 +00:00 (Migrated from codeberg.org)

Grafana file provisioning never deletes alert rules dropped from config, so removed rules keep evaluating from the DB and firing (see this issue's old title)

Add a post-grafana.service oneshot that reconciles via the Provisioning API with X-Disable-Provenance, deleting any provisioned rule whose uid isn't in the current scottylabs.observability set

This would probably need a provisioned Grafana service-account token

Grafana file provisioning never deletes alert rules dropped from config, so removed rules keep evaluating from the DB and firing (see this issue's old title) Add a post-`grafana.service` oneshot that reconciles via the Provisioning API with `X-Disable-Provenance`, deleting any provisioned rule whose uid isn't in the current `scottylabs.observability` set This would probably need a provisioned Grafana service-account token
anish changed title from Remove dead comin alert from observability to Auto-delete orphaned Grafana alert rules on deploy 2026-08-05 19:15:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/infrastructure#103
No description provided.