Add an alert to PagerDuty - nilavkhatiwadan/terraform GitHub Wiki
AWS Alert for Pager Duty
Create an Escalation policies for pager duty
Escalation policy allows to connect services to On-call schedules. That means it allows to notify the users when an incident occurred and what should happen when nobody responds to that incidents. A service can have one escalation policy, however an escalation policy can be associated with multiple services.
- Open pagerduty website. The address may vary depending on the organization.
- On the top of the page, click on the
Configuration
tab and then on theEscalation Policies
. - Click on the
New Escalation Policy
button. - Provide the name and description for the escalation policy.
- On Notify the following users or schedule select the user to whom the notification needs to be sent and select the time after the incident and after which the notification should be sent to the user
Create a service for pager duty
A service may represent an application, component or team you wish to open incidents against.
- Open pagerduty website. It may vary depending in the organization
- On the top of the page, click on the configuration and then on the services.
- On the right side of the page, click on New Service button.
- Fill out the form. It's better to finalize the format for name to avoid the confusion later
- On General Settings, provide the name for the alert and the desceription.
- On Integration Settings, select Amazon Cloudwatch for the integration type
- On Incident Settings select the escalation policy that you created in the above procedure.
- Leave all other setting as it is
- Click on Add Service button.
- After the service is created, click on the service you created.
- On the integrations, click on the Amazon Cloudwatch and copy the integration URL
You can use this integration URL to integrate the services to the pager duty. For, example you can use the integration url to the SNS topic subscription endpoint and so on