The PagerDuty integration creates a PagerDuty incident on a service you choose when a LivePulser incident opens. PagerDuty then pages people using your own escalation rules. LivePulser connects with a PagerDuty REST API key and the email address of a PagerDuty user.
Before you start
| What | Where it comes from |
|---|---|
| A REST API key that can create incidents | A general access key (only PagerDuty admins and account owners can create these), or a personal user key if your account has Advanced Permissions. Don't make it read-only: a read-only key can't create incidents. |
| A PagerDuty user's email address | PagerDuty requires it with every incident LivePulser creates. Use the email of a real user in your PagerDuty account. |
| A PagerDuty service | The service whose escalation policy should handle LivePulser alerts. LivePulser lists your services once the key is entered. |
In LivePulser you need the owner, admin or member role.
Create a REST API key in PagerDuty
PagerDuty's steps at the time of writing (PagerDuty may change them):
- In PagerDuty, go to Integrations > Developer Tools > API Access Keys.
- Select Create New API Key, enter a description such as LivePulser, and leave the read-only option unticked.
- Create the key and copy it. PagerDuty shows it in full only once.
A personal key works too, but it can only do what that user can do. See PagerDuty's API Access Keys guide.
Connect it in LivePulser
- Open Integrations & API and select PagerDuty, or select it under Connect a new service in a monitor's alert settings.
- Enter a Display name, the API key, and the user's email in From (Email).
- Choose a Service. About a second after you paste the key, the list loads from PagerDuty, together with your priorities.
- Optionally open Advanced settings (below).
- Select Connect integration. If you tick Validate with simple message before connecting, LivePulser first creates a real test incident on the service, titled LivePulser Test Alert: Critical Server Outage and the time. It pages whoever is on call, so warn them, and resolve it afterwards. If PagerDuty refuses it, nothing is saved.
Advanced Settings
| Field | What it does |
|---|---|
| Assign method | Escalation Policies assigns incidents to the one Escalation Policy you pick. Specific Users assigns them to the Selected Users. No Default Assignment (the default) leaves assignment to the service's own settings. |
| Priority | Optional. A priority from your PagerDuty account, if you use priorities. None leaves it unset. |
| Conference number | Optional. A conference bridge phone number added to the incident. |
| Conference URL | Optional. A meeting link added to the incident. |
Incidents are always created with high urgency. When you edit a saved integration, the key is masked and Service, Assign method, the user and policy lists and Priority are locked ("Re-enter your full PagerDuty API key to change this value."). To change them, paste the full API key again.
Attach it to a monitor
On the monitor's page, select Alerts, select the PagerDuty integration under Integrations, and select Save changes.
What PagerDuty receives
| LivePulser event | In PagerDuty |
|---|---|
| Incident opens | A new high-urgency incident titled Incident Alert (or SSL/TLS Issue Detected) - <monitor name>. Its details hold the error, region, time, the LivePulser incident ID and a link to it. |
| Incident resolves | LivePulser resolves the incident it opened, with a note giving the monitor, region, time and downtime. If someone already resolved it in PagerDuty, nothing changes. |
| Unexpected cron run notice, or domain or certificate expiry reminder | Nothing. Notices and reminders aren't sent to PagerDuty, so they never page anyone. |
Check that it works
Select Send test notification on the monitor's page. A test incident for TEST: and your monitor should appear on the PagerDuty service and page whoever is on call. Warn your on-call person first, and resolve the test incident afterwards. The integration's own Test button creates the same kind of sample test incident as the validation step.
Common problems
| What you see | Cause and fix |
|---|---|
| PagerDuty didn't accept these credentials. Check them and try again. | PagerDuty didn't accept the key, so the Service list stays empty. Paste the full key again, and check it hasn't been deleted in PagerDuty. |
| Selected service is invalid for the current API key | The service doesn't belong to the account of the key you entered. Pick a service from the list. |
| Please select an escalation policy | Assign Method is Escalation Policies but none is chosen. |
| Select at least one user | Assign Method is Specific Users but nobody is chosen. |
| Validation failed: unable to create test incident in PagerDuty | PagerDuty refused the test incident. Check that the key isn't read-only, that From (Email) belongs to a PagerDuty user, and that the service still exists. |
| My PagerDuty: pagerduty API returned status <code>: … | Shown after Send test notification, with your Display Name and PagerDuty's reply, which usually names the problem (for example the From email). |
| A test incident stays open | Test incidents from validation, the Test button and Send test notification aren't resolved automatically. Resolve them in PagerDuty. |
| Alerts stopped | The key may have been deleted in PagerDuty, or the From user removed. The incident timeline shows Failed after retries. Create a new key and update the integration. |