# Send alerts to PagerDuty

Page your on-duty responder through PagerDuty when a monitor goes down. Find the integration key, connect the service, and test it.

Connect PagerDuty so that a monitor going down opens an incident in PagerDuty, and its recovery resolves it. PagerDuty then calls, texts or notifies people the way that service is set up in PagerDuty. StatusCheck detects the outage. PagerDuty decides who to wake.

PagerDuty is available on the Team plan and up, and the integration shows a **Team+** badge. A workspace has one PagerDuty connection, which sends to one service.

**Before you start**

- You need the **Owner**, **Admin** or **Editor** role in the StatusCheck workspace.
- You need permission to add integrations to the PagerDuty service. In PagerDuty this usually means an admin, manager or account owner role. If you are not sure, ask whoever manages your PagerDuty account.
- Create the service in PagerDuty first, set up to notify the people you want paged.

## Get an integration key in PagerDuty

In PagerDuty, a service is the thing you want to be paged about, such as your website or API. Each service has its own rules for who PagerDuty notifies. StatusCheck needs an **integration key** for one service: a 32-character code that tells PagerDuty which service an alert belongs to.

1. In PagerDuty, open **Services** in the top menu, then **Service Directory**.

2. Select the service that should receive StatusCheck alerts.

3. Open the service's **Integrations** tab.

4. Select **Add an integration** (or **Add another integration** if the service already has one).

5. Search for **Events API V2**, select it, and select **Add**.

6. Expand the new **Events API V2** integration in the list, with the arrow or its name, to show its details.

7. Copy the **Integration Key**. It is 32 characters of letters and numbers.

If your PagerDuty looks different, look for the service's settings and an integration named **Events API V2** or **Events API v2**. Do not use a REST API key or the service's ID: StatusCheck cannot use them. If you cannot add integrations, ask a PagerDuty admin to add the Events API V2 integration and send you its key.

## Connect the service in StatusCheck

1. In StatusCheck, open **Integrations** in the sidebar and choose **PagerDuty**.

   ![The PagerDuty integration page in StatusCheck, with three setup steps, the Integration key and Service name fields and the Connect button, and a Details card showing the Team+ plan.](https://www.statuscheck.io/_astro/integration-pagerduty.DrGxTpkB.png)

2. Paste the key into **Integration key**.

3. Optionally enter **Service name**, up to 60 characters. It names the connection in StatusCheck, for example on a monitor's **Notifications** tab, and is not sent to PagerDuty.

4. Select **Connect**. The status reads **Connected**.

5. Select **Send test alert**. A test incident opens on the PagerDuty service within a few seconds, and PagerDuty may notify the people set up on it.

6. Resolve the test incident in PagerDuty.

StatusCheck encrypts the key and does not show it again. To send to a different service, select **Disconnect** and connect again with that service's key.

## Choose which events PagerDuty receives

A new connection receives all three events. To change that, open the integration's page in StatusCheck, keep the events you want under **Events**, and select **Save events**.

| Event | What happens in PagerDuty |
| --- | --- |
| **Monitor down** | Triggers an incident. Reminders from **Resend while down** are sent with the same key, so PagerDuty adds them to the open incident instead of opening new ones. |
| **Monitor recovered** | Resolves the incident. Keep this selected, or incidents stay open in PagerDuty after the monitor recovers. |
| **Status updates** | Triggers a separate incident for each status update, which StatusCheck never resolves. Clear this event unless you want status updates to page someone. |

## Choose which monitors page through PagerDuty

Connecting PagerDuty does not change any monitor. Only monitors you select it on can page.

1. In StatusCheck, open **Monitors** in the sidebar and select the monitor.

2. Open the **Notifications** tab.

3. Under **Channels**, select the PagerDuty connection.

4. Select **Save changes**. The monitor's next down alert opens a PagerDuty incident.

Page only for monitors whose failure needs someone now, and send the rest to a chat channel.

## How StatusCheck incidents map to PagerDuty

- **One PagerDuty incident per StatusCheck incident.** Each event carries a deduplication key, `statuscheck-<incident ID>`, a label that PagerDuty uses to recognize repeat messages about the same problem. Because of it, the trigger, any reminders and the resolve all refer to the same PagerDuty incident.
- **Resolving.** When the monitor recovers, or when someone resolves the incident in StatusCheck, StatusCheck resolves the PagerDuty incident. StatusCheck sends a recovery only if it sent the down alert, so delayed or muted alerts never leave a stray resolve.
- **Severity.** Severity is how serious an incident is. StatusCheck severity maps to the PagerDuty event severity as follows. New incidents open as **Major**.

| StatusCheck severity | PagerDuty severity |
| --- | --- |
| Critical | `critical` |
| Major | `error` |
| Minor | `warning` |

- **Content.** The summary names the monitor and what happened. Custom details carry the location, status code and failure reason, and start time (and the URL, if **Show URL in notifications** is on). The incident links back with **View incident in StatusCheck**.

StatusCheck and PagerDuty do not sync acknowledgments. Acknowledging an incident in one does not acknowledge it in the other.

## Troubleshooting

**StatusCheck rejects the key.** The integration key must be exactly 32 characters. Make sure you copied the **Integration Key** of an **Events API V2** integration, not a REST API token or a service ID.

**The test fails with a 400 error (bad request).** PagerDuty does not recognize the key. Someone may have deleted the integration from the service. Add a new one and connect again.

**The incident opens in PagerDuty but nobody is notified.** StatusCheck's part worked. The service in PagerDuty sets who PagerDuty notifies, and how. Ask whoever manages your PagerDuty account to check the service's notification rules.

**Incidents stay open in PagerDuty after the monitor recovers.** **Monitor recovered** is not selected in the connection's events. Select it and select **Save events**, then resolve the open incidents in PagerDuty by hand.

**The integration shows "Available on" a plan instead of a setup form.** Your current plan does not include PagerDuty. The workspace owner can upgrade from **Explore plans**.

## Related

- [How alerts work](/docs/alerts/) explains delays, reminders and muting.
- [Respond to an incident](/docs/incidents/) covers severity, acknowledging and resolving in StatusCheck.
- [Opsgenie](/docs/alerts/opsgenie/) is the equivalent integration for Opsgenie teams.
- [Webhooks](/docs/alerts/webhooks/) send the same events to any other incident tool.
