Alertmanager alerts arrive as typed events #1980
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: sam/archie#1980
Reference in new issue
Block a user
Alertmanager's webhook delivers firing and resolved alerts to a source, and they become typed events (alert name, labels, annotations, status, start time) that triggers can filter on. A re-sent firing alert is a duplicate of the stored one; a new firing after a resolve is a new event; a resolve is linked to its firing event rather than treated as new.
Done when: a real firing and resolved alert appear as typed events, a re-send is deduplicated, and a trigger matches on an alert label.
Spec: R1, R5, R6.
Verified on staging. Alertmanager's webhook lands on the prometheus source and every alert is stored as a typed alert event (alert name, labels, annotations, status, start time): 38 firing and 37 resolved so far, each resolve linked to its firing event rather than dispatched as new. A re-sent firing alert carries the same source event id and is counted as a duplicate by the store's unique constraint. A trigger filtering on labels.alertname matched its alert and started a run alongside the status-filtered trigger.