Menu

Site navigation

LivePulser
Browse the docs

PagerDuty

Trigger and resolve PagerDuty incidents.

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

WhatWhere it comes from
A REST API key that can create incidentsA 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 addressPagerDuty requires it with every incident LivePulser creates. Use the email of a real user in your PagerDuty account.
A PagerDuty serviceThe 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):

  1. In PagerDuty, go to Integrations > Developer Tools > API Access Keys.
  2. Select Create New API Key, enter a description such as LivePulser, and leave the read-only option unticked.
  3. 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

  1. Open Integrations & API and select PagerDuty, or select it under Connect a new service in a monitor's alert settings.
  2. Enter a Display name, the API key, and the user's email in From (Email).
  3. Choose a Service. About a second after you paste the key, the list loads from PagerDuty, together with your priorities.
  4. Optionally open Advanced settings (below).
  5. 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

FieldWhat it does
Assign methodEscalation 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.
PriorityOptional. A priority from your PagerDuty account, if you use priorities. None leaves it unset.
Conference numberOptional. A conference bridge phone number added to the incident.
Conference URLOptional. 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 eventIn PagerDuty
Incident opensA 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 resolvesLivePulser 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 reminderNothing. 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 seeCause 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 keyThe service doesn't belong to the account of the key you entered. Pick a service from the list.
Please select an escalation policyAssign Method is Escalation Policies but none is chosen.
Select at least one userAssign Method is Specific Users but nobody is chosen.
Validation failed: unable to create test incident in PagerDutyPagerDuty 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 openTest incidents from validation, the Test button and Send test notification aren't resolved automatically. Resolve them in PagerDuty.
Alerts stoppedThe 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.

Next steps