Browse docs

PagerDuty integration

Page your on-call team through PagerDuty when a monitor goes down — and resolve the incident automatically when it recovers.

WatchCat detects the outage; PagerDuty decides who gets paged. When an incident opens, WatchCat triggers a PagerDuty incident on the service you connect, through the Events API v2, and that service's escalation policy takes it from there. When the monitor recovers, WatchCat resolves the same PagerDuty incident.

One WatchCat incident is exactly one PagerDuty incident. Repeated failed checks during an outage do not trigger new incidents or page again. Both PagerDuty service regions are supported: US and EU.

Data note: PagerDuty is a US company. Alert data is processed by PagerDuty even when your account uses the EU service region. See the subprocessors page for details.

Step 1 — add an Events API V2 integration in PagerDuty

  1. 1 In PagerDuty, open the service that should be paged and go to its Integrations tab.
  2. 2 Click Add an integration and choose Events API V2.
  3. 3 Copy the Integration Key — 32 characters.

Step 2 — add a PagerDuty integration in WatchCat

  1. 1 Go to Integrations → New integration and select PagerDuty.
  2. 2 Paste the integration key into Routing key and give the integration a name, for example "On-call (PagerDuty)".
  3. 3 Pick the Region: EU if you sign in to PagerDuty at an address ending in .eu.pagerduty.com, otherwise US.
  4. 4 Save, then click Send test alert on the integration's page.
Check the test in PagerDuty. A test alert triggers a PagerDuty incident and resolves it right away. PagerDuty accepts events for an unknown key without an error, so a successful test in WatchCat is not proof on its own — confirm that the service shows a resolved test incident.

Step 3 — add the integration to a notification channel

Monitors alert through notification channels, not through integrations directly. A channel bundles email recipients and any number of integrations, so one PagerDuty integration can serve as many monitors as you like. How notification channels work →

  1. 1 Go to Notification channels → New channel, or edit an existing one.
  2. 2 Under Integrations, check the PagerDuty integration you just created.
  3. 3 Save the channel.
Keep recovery alerts on. The recovery alert is what resolves the PagerDuty incident. On a channel with Send recovery alerts turned off, it stays open until someone resolves it by hand in PagerDuty.

Step 4 — assign the channel to monitors

Edit an uptime or cron monitor and check the channel under Notifications. From then on, an incident on that monitor alerts PagerDuty when it opens and again when it resolves.

Tip: Turn on Auto-assign to new monitors on the channel and every monitor you create later is covered without another click.

What PagerDuty receives

Summary The monitor name and its state, for example "api-production is down"
Source The monitored URL; for a cron monitor, its name
Severity Always critical. Use PagerDuty event rules to remap it.
Class uptime or cron, handy for routing rules
Custom details A readable message (cause, failing regions, HTTP response, duration, response body excerpt) plus the same structured monitor, incident and details data the webhook integration sends
Links Back to the incident and the monitor in WatchCat
Dedup key watchcat-incident-<id> — shared by the trigger and its resolve, which is how the recovery finds the incident to close

Good to know

  • The integration is a routing key on one PagerDuty service. To page different services for different monitors, create one WatchCat integration per service and put them in separate notification channels.
  • Escalation policies, on-call schedules, acknowledgement, SMS and phone calls happen in PagerDuty. Acknowledging in PagerDuty does not change anything in WatchCat.
  • This is an Events API v2 integration, set up with a key. It is not a PagerDuty marketplace app, and it does not send Change Events.

See whether PagerDuty accepted the alert

Every request WatchCat sends is recorded on the integration's page: the outcome, the HTTP status, an excerpt of the response, the error if there was one, and how long it took. When an alert seems to be missing, you can tell whether PagerDuty refused it or it was never routed there. The log is kept for 7 days on Free, 30 days on Pro, and 90 days on Team.

Other integrations

A notification channel can hold several integrations at once, so chat, on-call and your own tooling can all hear about the same incident.

Start monitoring in minutes

Free plan available. No credit card required.