Grafana · Arazzo Workflow
Grafana Provision Alerting End to End
Version 1.0.0
Create a contact point, route to it in the notification policy tree, then create the alert rule.
View Spec
View on GitHub
AlertingAnalyticsDashboardsLogsMetricsMonitoringObservabilityTracesVisualizationArazzoWorkflows
Provider
Workflows
provision-alerting
Stand up a contact point, a routing policy, and an alert rule together.
Creates the receiver, confirms it exists, routes matching labels to it in the notification policy tree, creates the alert rule that carries those labels, and reads the rule back.
1
createContactPoint
routePostContactpoints
Create the contact point first. The notification policy in the next step routes to a receiver by name, and Grafana rejects a tree that references a receiver that does not exist yet.
2
verifyContactPoint
routeGetContactpoints
Read the contact point back by name to confirm it is registered before the policy tree is rewritten to depend on it.
3
routeToContactPoint
routePutPolicyTree
Replace the notification policy tree with one that routes alerts carrying the given label to the new receiver, falling through to the default receiver for everything else. This is a whole-tree PUT, so the payload must describe the routing you want to end up with, not just the delta.
4
createAlertRule
routePostAlertRule
Create the alert rule last, now that a receiver exists and the tree routes to it. The rule's labels must match the route's object_matchers or the notification falls through to the default receiver.
5
verifyAlertRule
routeGetAlertRule
Read the provisioned rule back by UID to confirm the stored definition, including the labels the policy tree depends on.