PagerDuty integration
The PagerDuty integration sends events to one PagerDuty service through the Events API v2. A routing workflow decides which investigations send events. Route only high-risk events here, because a PagerDuty event can notify a person.
Connect PagerDutyDirect link to Connect PagerDuty
- In the Guard Cloud dashboard, open Settings > Integrations > PagerDuty.
- Choose how to connect:
- Select Install PagerDuty. Guard sends you to PagerDuty's install page, you pick the service, and PagerDuty returns an Events API v2 integration key to Guard. You do not copy the key yourself.
- Or paste a key into Events API v2 integration key. In PagerDuty, open Services, the service, Integrations, then the Events API v2 integration.
- Select Connect PagerDuty. After an install, the connection is already in place and the button reads Save changes.
- Select Trigger test incident to confirm delivery.
When you connect with a key, Guard sends a trigger event followed by a resolve event to confirm the key works. If PagerDuty does not accept them, the connection is saved with an attention status. Run Trigger test incident to see the error.
The integration key is a credential for that PagerDuty service. Guard stores it with the connection and never shows it in a routing step.
UrgencyDirect link to Urgency
The Urgency field offers High urgency and Low urgency. Events API v2 events do not carry an urgency. PagerDuty applies the incident urgency rules of the service that owns the key, so set urgency in PagerDuty as well.
What Guard sendsDirect link to What Guard sends
Guard identifies an investigation to PagerDuty with a dedup key of the form hol-guard-investigation-<investigationId>. All events for one investigation use the same key.
| Moment | Event Guard sends |
|---|---|
| Test, and the check when you connect | trigger, then resolve about two seconds later |
| Investigation is open or updated | acknowledge for the investigation's dedup key |
| Investigation is resolved | resolve for the investigation's dedup key |
A trigger event carries a summary that starts with HOL Guard:, the source hol-guard-cloud, a severity, and custom details with the summary and investigation ID.
acknowledge and resolve act on an incident that already exists for the dedup key. They do not open one. After you connect, send a test and then confirm in PagerDuty that a real routed alert produces the incident and notification you expect before you rely on the service for paging.
The test eventDirect link to The test event
The test sends a trigger event, waits about two seconds, and sends resolve for the same key, so the incident closes by itself. While it is open, PagerDuty can notify the on-call responder under the service's escalation policy. Run it when someone is ready for that, or point the integration at a service with a quiet escalation policy first.
TroubleshootingDirect link to Troubleshooting
| Symptom | Fix |
|---|---|
| Connect fails | Check that the key is an Events API v2 integration key for a service, not an API token |
| The test succeeds but no one is notified | Check the service's escalation policy and notification rules in PagerDuty |
| Events stop arriving | The integration may have been deleted or its key rotated in PagerDuty. Select Refresh services or install again |