Connect PagerDuty
An integration connects Amazon CloudWatch Omni to a tool your team already uses. When you connect PagerDuty, your alerts can page your on-call responders through the PagerDuty services and escalation policies that you already have. You manage the integration in Settings, on the Integrations page. Your connection applies to your whole space.
After you connect PagerDuty and add services, you choose the service on each alert when you set its destinations. For information about alert destinations, see Alerts.
The alert's access profile must also grant this integration, or Omni doesn't deliver the alert's notifications. Omni checks the grant when you save the alert's notifications and again on every delivery, so revoking it stops notifications for alerts that were already working. If an alert fires but no incident opens in PagerDuty, check the profile. For information about profiles, see Access profiles.
Within one Region, an AWS account can have one PagerDuty connection. To connect a different PagerDuty account, disable the integration and connect again.
Install the Amazon CloudWatch Omni app in PagerDuty
A PagerDuty Admin or the Account Owner must install the Amazon CloudWatch Omni app on your PagerDuty account before anyone in your space connects PagerDuty for the first time. You install it once for each PagerDuty account. After an Admin installs the app, anyone in your space can connect PagerDuty.
To go straight to the app in PagerDuty, open the Amazon CloudWatch Omni app install
page for US accounts
To install the app
-
In Settings, choose Integrations.
-
On the PagerDuty card, for Service region, select the service region of your PagerDuty account.
-
Choose Install the app in PagerDuty. The app's page opens in PagerDuty.
-
Sign in as a PagerDuty Admin or the Account Owner, review the scopes, and choose Install on your account. If you aren't an Admin, choose Copy install link and send it to an Admin.
PagerDuty installs the app and opens the app's page in your PagerDuty account. You can now connect PagerDuty.
For more information, see Scoped OAuth
apps
Connect your PagerDuty account
To connect PagerDuty
-
In Settings, choose Integrations.
-
On the PagerDuty card, for Service region, select the service region of your PagerDuty account. Select EU if you sign in to PagerDuty at a
.eu.pagerduty.comaddress. Otherwise, select US. -
Choose Enable. PagerDuty opens.
-
Sign in to PagerDuty and approve the Amazon CloudWatch Omni app for your PagerDuty account. If Omni then says that PagerDuty didn't grant access, ask a PagerDuty Admin to install the app, and then connect again. For instructions on installing the app, see Install the Amazon CloudWatch Omni app in PagerDuty.
Back in Omni, the PagerDuty card shows Connected, with the PagerDuty account, its service region, and the integration's ARN. If the card says that the sign-in took too long or didn't complete, choose Enable again.
Add the services that Omni can page
Connecting doesn't add any services. An alert can page only a service that you add this way, and other services don't appear in the service list.
To add services
-
On the connected PagerDuty card, choose Add services. PagerDuty opens.
-
Select the services. PagerDuty adds an integration for the Amazon CloudWatch Omni app to each one.
-
When PagerDuty says that the services were added, close the tab and return to Omni.
You can add more services at any time, from the card or from the link under the service list on an alert's PagerDuty destination.
What Omni can access in PagerDuty
You give Omni read-only access to your PagerDuty account, with the
services.read and event_orchestrations.read scopes.
Omni reads your services to offer them as destinations, and reads the routing key of
the Amazon CloudWatch Omni app's integration on a service when it sends a notification. Omni can't
change your PagerDuty configuration. Events for an EU account stay in PagerDuty's EU
service region.
Grant the alert's profile access to PagerDuty
If you save a PagerDuty notification rule before the alert's access profile has the grant, Omni rejects the save. Choose Grant permission to open the add-grant form already filled in for the alert's profile, and then save the rule again. A new grant can take a few minutes to take effect.
The grant allows cloudwatch:InvokeIntegration on the PagerDuty
integration's ARN, and can limit it to specific services by their service IDs. If you
author grants through the API instead of the console, replace these values in the
following example with your own:
-
region,account-id, andintegration-id: the parts of your PagerDuty integration's ARN. -
PABC123andPDEF456: the IDs of the PagerDuty services that the alert can page.
The following example grant allows cloudwatch:InvokeIntegration on a
PagerDuty integration, limited to two services:
{ "name": "pagerduty-alert-integration", "permission": "CUSTOM", "scopedActions": [ { "actions": ["cloudwatch:InvokeIntegration"], "resources": [ { "resourceType": "Integration", "resourceArns": ["arn:aws:cloudwatch:region:account-id:integration/integration-id"] } ], "contextConditions": { "serviceIds": ["PABC123", "PDEF456"] } } ] }
-
To allow every service in the PagerDuty account, leave out
contextConditions. -
One
scopedActionsentry can restrictchannelNamesorserviceIds, but not both. Grant Slack and PagerDuty in separate entries.
Events that PagerDuty receives
Omni sends one PagerDuty Events API v2 event for each alert state that a rule notifies on.
The following table shows the event action and severity that Omni sends to PagerDuty for each alert state.
| Alert state | Event action | Severity |
|---|---|---|
| Critical | trigger |
critical |
| Warning | trigger |
warning |
| No data | trigger |
error |
| OK | resolve |
info |
By default, all events from one alert share a deduplication key, the alert's ARN, so each alert opens one incident. A later Critical event raises the incident's severity, and an OK event resolves it. To resolve incidents automatically, include OK in the rule's alert states. In the rule's PagerDuty additional settings, you can set your own deduplication key, which Omni uses instead of the alert's ARN, and the class, group, and component fields that PagerDuty event rules match on.
Disconnect an integration
On the integration's card in Settings, on the Integrations page, choose Disable. When you disconnect PagerDuty, you stop alert notifications to PagerDuty. The alerts themselves keep evaluating, and their other destinations keep working. You can reconnect with Enable. Disconnecting doesn't remove the grants on the integration or the Amazon CloudWatch Omni app's integrations on your PagerDuty services.
Who can manage integrations
Integrations apply to the whole space. One person connects, and the connection works for everyone in the space. Whether a member can connect, change, or disconnect an integration is governed by their grants: the integration create, update, and delete actions. See Custom grant actions.