PagerDuty
Goal: a DownBad outage raises a PagerDuty alert, and its recovery resolves it.
You need a paid DownBad plan and a PagerDuty service you can add integrations to.
-
Add an Events API v2 integration. In PagerDuty, open the service, go to its Integrations tab, and add Events API V2.
-
Copy the Integration Key. It’s 32 letters and numbers, also called the routing key. Keep it private: anyone with it can raise alerts on the service.
-
Add it in DownBad. Go to Settings › Alerts, press Add webhook and paste the Events API address for your PagerDuty region:
- US:
https://events.pagerduty.com/v2/enqueue - EU:
https://events.eu.pagerduty.com/v2/enqueue
DownBad recognizes it as PagerDuty and asks for:
- Integration key: from step 2.
- Severity: optional. Leave it empty and DownBad raises outages as
critical, warnings aswarningand notices asinfo. Set it to force every alert to one severity.
- US:
-
Press Test now.
-
Save and add the channel to the notification profiles that should use it.
Expected result
Section titled “Expected result”The test alert appears on the service with the summary DownBad WebHook Channel Integrated and is resolved within seconds. For real incidents, the outage triggers one alert, reminders update that same alert, and the recovery resolves it. A new incident gets a new alert.
Troubleshooting
Section titled “Troubleshooting”“Integration key: An Events API v2 integration key is 32 letters and numbers.” You probably copied the integration’s ID or the service’s ID instead of its key. Copy the Integration Key from the service’s Integrations tab.
The delivery fails with HTTP 400, “Invalid routing key.” The integration was deleted, or the key belongs to a different integration type. Add an Events API V2 integration and use its key.
“PagerDuty accepted the test alert, but DownBad could not resolve it.” The test went through, so the channel works. Resolve the alert named DownBad WebHook Channel Integrated in PagerDuty yourself.
Alerts arrive but don’t page anyone. That’s the service’s escalation policy and urgency rules, not DownBad. Check which severity your alerts arrive with, and how the service treats it.
An EU account’s alerts fail.
EU accounts must use events.eu.pagerduty.com. Change the URL in the channel.
Alerts stopped and the bell says the webhook was switched off. Ten alerts in a row failed. Fix the cause above, then press Test now to switch the channel back on.