Pagerduty¶

Pagerduty integration will create Pagerduty Alerts when a DAG fails.
Setup¶
Under Services
-> New Service
, create a new service.
Choose your escalation and noise reduction strategies, then select “Events API V2” from Integrations
.
This will generate an Integration Key
, which you can use below.
Configuration¶
routing_key
: (Required) the Integration key from abovesource
: (Optional) Override the name of the source. The default isairflow.priority
, which will product alerts with entity likeairflow.priority.p1.failed
update
: (Optional) Update an open alert when DAG is rerun or passes (default istrue
). Whentrue
, when the DAG isrunning
again the alert will be ack’d. If the DAG succeeds, the alert will be resolved.threshold
: (Optional) Maximum alert threshold. Alerts with higher numerical priority (lower logical priority) will be ignored
Example¶
[priority.pagerduty]
api_key = ...
source = my.entity
update = true
threshold = 2 # only P1 and P2