PagerDuty Notifications
Reoclo triggers PagerDuty incidents via the Events API v2 so that on-call rotations, escalation policies, and acknowledgment workflows all kick in automatically. Severity maps directly onto PagerDuty’s critical/warning/info levels with an option to override. When you acknowledge or resolve an alert in Reoclo, the matching PagerDuty incident is acknowledged or resolved too.
When to use it
Section titled “When to use it”- You want Reoclo events to page someone on rotation
- You already use PagerDuty for incident lifecycle (ack, resolve, escalate)
- You want alerts to deduplicate by event source
For chat-only delivery, use Slack or Microsoft Teams. For an alternative paging tool, see OpsGenie.
Prerequisites
Section titled “Prerequisites”- A PagerDuty account with at least one service
- Permission to add integrations to that service
Step 1: Create the Events API integration
Section titled “Step 1: Create the Events API integration”- In PagerDuty, open Services and pick the service that should receive Reoclo incidents (or create a new one).
- Open the Integrations tab.
- Click Add another integration (or Add an integration if it is a new service).
- Pick Events API V2 from the integration type list and click Add.
- Expand the new integration row and copy the Integration Key. It is a 32-character hex string. This is your “routing key” in the Events API.
Each Reoclo channel maps to one PagerDuty service. If you want different events to page different teams, create one Reoclo channel per service.
Step 2: Create the channel in Reoclo
Section titled “Step 2: Create the channel in Reoclo”Dashboard
Section titled “Dashboard”- Open Settings → Notification Channels.
- Click Add Channel → PagerDuty.
- Give it a name (for example,
prod-oncall). - Paste the Integration Key into Integration Key.
- (Optional) Configure the Severity Map if your service expects different PagerDuty severities. See below.
- Click Send Test. A
[TEST] Reoclo notification channel testincident should appear in PagerDuty within a few seconds with severityinfo. - Pick which events this channel receives. For paging, you typically want
deploy_failed,monitoring_uptime_down,incident_created, andsecurity_ip_conflict. - Save.
- Resolve or acknowledge the test incident in PagerDuty so your on-call is not paged.
reoclo channels create pagerduty \ --name "prod-oncall" \ --secret "<32-char-integration-key>" \ --events deploy_failed,monitoring_uptime_down,incident_createdOr via YAML with a custom severity map:
kind: pagerdutyname: prod-oncallconfig: severity_map: critical: critical warn: error info: warningsecret: ${env:PAGERDUTY_INTEGRATION_KEY}events: deploy_failed: true monitoring_uptime_down: true incident_created: true security_ip_conflict: trueSeverity mapping
Section titled “Severity mapping”Reoclo carries one of three severities into PagerDuty’s payload.severity field:
| Reoclo severity | Default PagerDuty severity |
|---|---|
critical | critical |
warn | warning |
info | info |
| none | info |
Override on a per-channel basis by setting severity_map in the config:
config: severity_map: critical: critical warn: error # bump warns to "error" instead of "warning" info: warning # treat info as warning so it still notifiesValid PagerDuty severities are critical, error, warning, info.
Payload
Section titled “Payload”Reoclo posts to https://events.pagerduty.com/v2/enqueue:
{ "routing_key": "<your-integration-key>", "event_action": "trigger", "payload": { "summary": "Deployment failed", "source": "reoclo", "severity": "critical", "custom_details": { "body": "Deployment of MyApp to prod-1 failed: exit code 137 (OOM)", "deployment_id": "dep-abc123", "application_name": "MyApp" } }}PagerDuty’s 202 Accepted is treated as success.
Alert lifecycle in PagerDuty
Section titled “Alert lifecycle in PagerDuty”Every Reoclo alert maps to one PagerDuty incident for its whole life. Reoclo sends the alert’s ID as the dedup_key on every event, so each event lands on the same incident instead of opening a new one.
| What happens in Reoclo | event_action sent |
|---|---|
| Alert fires | trigger |
| Alert escalates to a higher severity | trigger (updates the open incident) |
| Reminder for an unacknowledged alert | trigger (same incident) |
| Someone acknowledges the alert | acknowledge |
| Someone resolves the alert, or it clears on its own | resolve |
acknowledge and resolve events carry only the routing key, the action, and the dedup_key, because PagerDuty needs nothing else to find the incident. Unacknowledging an alert in Reoclo doesn’t send anything to PagerDuty.
Events that aren’t alerts, such as deploy_failed, have no alert to track. They always send trigger, so close those incidents in PagerDuty.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
400 Invalid routing key | Wrong key copied (e.g., a service ID instead of integration key) | Copy the 32-char Integration Key from the Events API V2 integration row |
429 Too many requests | Exceeded PagerDuty’s 480 events/min per integration key | Reoclo retries with backoff; for very high volume, split across multiple integrations |
Incidents missing custom_details | Older alert rules without rich metadata | Update the alert rule’s payload; defaults work for all built-in events |
Severity always info | Event isn’t alert-driven (e.g., deploy_started) | Expected. Only alert-fired events carry severity. Non-alert events default to info |
Reoclo shows a delivery as retrying or failed | PagerDuty rejected or didn’t answer the event | See the delivery history on the alert. Failed deliveries are retried; see Alerts |
| Test passes, real events silent | Event toggles disabled | Open the channel and enable the events you want |
Routing tips
Section titled “Routing tips”- One Reoclo channel per PagerDuty service. That is how you route different events to different teams.
- Avoid sending
infoevents to a paging service. They create noise that erodes trust in pages. Either filter at the Reoclo level (do not enable info-class events) or mapinfotowarningand configure PagerDuty service rules to suppress. - Pair with chat for context. Page via PagerDuty, but also send the same events to a Slack channel so the team has shared context when triaging.
Next Steps
Section titled “Next Steps”- Add a Slack channel for shared incident context
- Read Alerts to see how acknowledge, resolve, and reminders reach PagerDuty
- Configure Alert Rules so monitor thresholds page on-call