Skip to main content

PagerDuty

How to configure PagerDuty:

Prerequisites

  • Pagerduty account with elevated privileges
  • Pagerduty Service created and configured with Events-v2 integration

Add Event-v2 integration to your Pagerduty Service

Once the integration is configured, you will see something like this:

Click on the setting toggle on the top right corner, and copy Integration Key:

Create notification Template in Courier like following, hit publish and start using this template to send push notifications to your PagerDuty service:

Override

You can use the provider override to replace what we send to PagerDuty's Events API. Supported overrides include the Severity and Source. Here's an example where we override both:

JSON
{
"message": {
"template": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"to": {
"user_id": "1234567890"
},
"providers": {
"pagerduty": {
"override": {
"body": {
"payload": {
"severity": "error",
"source": "a different source"
}
}
}
}
}
}
}

Other supported payload overrides are here.

Was this helpful?