Grafana · Arazzo Workflow
Grafana Export Alerting as Code
Version 1.0.0
Export contact points, the notification policy tree, and alert rules as provisioning files.
View Spec
View on GitHub
AlertingAnalyticsDashboardsLogsMetricsMonitoringObservabilityTracesVisualizationArazzoWorkflows
Provider
Workflows
export-alerting-as-code
Snapshot a Grafana instance's alerting configuration into provisioning YAML.
Exports contact points, then the routing tree, then the alert rules, each in provisioning file format ready to commit.
1
exportContactPoints
routeGetContactpointsExport
Export the contact points. Secrets are redacted unless decrypt is set, so the default output is safe to commit to a repository.
2
exportPolicyTree
routeGetPolicyTreeExport
Export the notification policy tree. This is the routing that binds alert labels to the contact points exported above, and it is meaningless without them, which is why the two are captured in the same run.
3
exportAlertRules
routeGetAlertRulesExport
Export the alert rules, optionally scoped to one folder or evaluation group, in provisioning file format.