Skip to main content

Sending Alerts to PagerDuty

PagerDuty is a leading incident response platform that helps teams manage and track production issues effectively. Prismatic's alert webhooks can be sent to PagerDuty using PagerDuty's Events API to automatically create and manage incidents.

  1. Create a new alert webhook in Prismatic
  2. Set the webhook URL to: https://events.pagerduty.com/v2/enqueue
  3. Configure the payload template with the following JSON:
{
"routing_key": "YOUR-PAGERDUTY-KEY",
"event_action": "trigger",
"links": [{ "href": "$URL", "text": "Link to Prismatic alert monitor" }],
"payload": {
"summary": "$NAME triggered - $INSTANCE failed to run.",
"severity": "error",
"source": "$SUBJECT"
}
}
  • Additional fields can be added to the payload template as documented in the PagerDuty API documentation
  • No additional headers are required as the PagerDuty integration key is included in the payload
  • Each alert monitor trigger will create a corresponding incident in PagerDuty
Sample alert details in PagerDuty app