Prometheus · Arazzo Workflow
Prometheus Test an Alertmanager Routing Path
Version 1.0.0
Send a synthetic alert and follow it through to the receiver that will be paged.
Provider
Workflows
test-alert-routing
Post a synthetic alert and confirm which receiver it routes to.
Give the synthetic alert a short endsAt so it self-resolves rather than lingering as a permanent fake incident, and label it clearly so nobody mistakes the resulting page for a real one.
1
checkAlertmanagerStatus
getStatus
Confirm the Alertmanager is up and its cluster has settled. Posting alerts at a cluster still in the settling state can produce duplicate or missing notifications that have nothing to do with the routing tree.
2
confirmReceiverExists
listReceivers
List the receivers defined in the loaded configuration. If the expected receiver is not in this list the routing tree cannot possibly select it, and the test would fail for a reason the alert itself never reveals.
3
postSyntheticAlert
postAlerts
Post the synthetic alert exactly as Prometheus would. The labels decide routing; the annotations are carried through to the notification template so the recipient can see this is a test.
4
confirmAlertAccepted
getAlerts
Read the alert back to confirm Alertmanager accepted and is now tracking it. The receivers field names every receiver it will notify.
5
confirmRouting
getAlertGroups
Read the alert groups to see the receiver the routing tree actually chose and the group labels it was grouped under. This is the answer the test exists to produce.