Page on-call with PagerDuty
PagerDuty is available on every plan. It counts toward your plan's notification destination limit like Slack, Discord and webhooks.
Connect PagerDuty
- In PagerDuty, open Services → Service Directory → your service → Integrations → Add Integration → Events API v2, then copy the Integration Key.
- In Upstate, open Notifications as an account owner or admin, choose PagerDuty, name the destination and paste the key.
- Optionally choose which projects can page. Leave all unchecked for every project.
- Save, send a test, then enable the destination.
Treat the integration key like a password. Upstate encrypts it after saving and shows only its last four characters. To rotate it, edit the destination and paste the new key; that requires another test before you can enable it again.
What is sent
PagerDuty receives alerts only. Deploy messages are never sent to it.
| Upstate event | PagerDuty event |
|---|---|
| Alert opens | trigger |
| Alert becomes critical | trigger again for the same incident, with the new severity |
| Alert clears | resolve |
Upstate's warning alerts page as warning and critical alerts page as critical. Each alert has its own incident key, upstate:<account id>:<alert id>, so a condition that comes back after clearing opens a new incident. If a trigger times out, Upstate still sends an idempotent resolve when the alert clears because PagerDuty may have accepted the trigger. Recovery waits for any active opening or escalation request before sending the resolve. A trigger that was never attempted gets no resolve. The event carries the alert title as the summary, the affected server or project as the source, the project as the component and group, the alert type as the class, a few safe facts such as the opening time, and a link to the alert in Upstate. It never carries log lines, credentials or provider payloads.
Upstate sends one-way. It does not acknowledge incidents and does not read changes you make in PagerDuty. Acknowledging or resolving in PagerDuty does not change the alert in Upstate.
If you disable or delete the destination while an incident is open, or change its key, the resolve still goes to the key the incident was opened with, so the page does not stay open. To stop it, revoke the integration in PagerDuty. Disabling a destination only stops new alerts. A maintenance window holds pages the same way it holds other messages (see Alerts and notifications).
Test sends
A test sends a trigger and then a resolve with a test-only incident key, so it appears briefly in PagerDuty and closes itself. If PagerDuty rejects the key (HTTP 400), the destination shows "PagerDuty rejected the integration key". If PagerDuty is rate limiting or unavailable, or the request times out, Upstate retries up to eight delivery attempts and the destination shows that PagerDuty could not be reached, which does not mean the key is wrong. Sample messages are not available for PagerDuty because they would page someone.
Failures
- HTTP 400 is permanent. Upstate records the error and stops retrying that delivery.
- HTTP 429, 5xx and timeouts are retried with the same schedule as other destinations. Settings shows Retry scheduled with a temporary-failure explanation for the current key. This does not invalidate a successful key test or count as a final failed delivery; the next accepted delivery clears the warning. Cancelling the last active retry also clears it.
- After eight unsuccessful attempts, that delivery stops retrying. New deliveries are still attempted.
- After five failed deliveries in a row, account owners get one email per recipient. Queued notices are skipped if the streak has recovered; retries skip recipients whose email was already accepted. Upstate does not email again until a delivery succeeds and a new streak of five failures begins, and it never disables the destination for you.
Provider acceptance means PagerDuty accepted the event, not that someone responded.