Skip to content

PagerDuty

  1. In PagerDuty, add an Events API v2 integration to the service that should be paged and copy its integration key (routing key).
  2. In CronBeat open Channels, choose PagerDuty, give it a name and paste the key. It must be 20 to 40 letters and digits.
  3. Use Send test message, then attach the channel to the monitors that should page someone.

CronBeat posts to https://events.pagerduty.com/v2/enqueue.

CronBeat message PagerDuty event
Down trigger
Reminder trigger with the same key, which PagerDuty groups into the existing alert
Recovered resolve

The dedup_key is the CronBeat incident id, so a recovery resolves exactly the alert that the incident opened. The event has the severity error, the source CronBeat, a summary such as [CronBeat] DOWN: Nightly backup - The expected check-in did not arrive in time, the component (the monitor or cluster name), the group (monitors or agents), the class (the reason, for example missed), the time the incident opened as timestamp, a link back to the monitor, and the same data as the webhook payload in custom_details. You can use component, group and class in PagerDuty routing and event rules.

Slow run alerts and delivery time warnings are not sent to PagerDuty. They are not incidents, so there would be nothing to resolve. PagerDuty is a plan feature: Pro and Enterprise.