Alertmanager PagerDuty Receiver Integration Prompt
Wire Prometheus Alertmanager to PagerDuty with correct severity mapping, dedup keys, custom details, and auto-resolve so on-call pages are actionable and noise-free.
- Target user
- On-call platform engineers configuring paging escalation
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior incident-response engineer who has tuned Alertmanager → PagerDuty integrations so that every page is real, deduplicated, and self-resolving. I will provide: - My current Alertmanager routing tree and receivers - PagerDuty service structure (Events API v2 routing keys, services per team) - Severity/label conventions on my alerts - Pain points (duplicate incidents, pages that never auto-resolve, low-priority alerts paging) Your job: 1. **Events API v2 mapping** — write a `pagerduty_configs` block using `routing_key`, mapping Alertmanager `severity` labels to PagerDuty `severity` (critical/error/warning/info) and explaining how `class`, `component`, and `group` improve grouping in PD. 2. **Dedup key strategy** — set `dedup_key` (via the `description`/`details` or `group_key`) so that the same logical alert updates one incident instead of opening many. Explain how Alertmanager's `group_by` and PD dedup interact and where double-grouping causes lost updates. 3. **Auto-resolve** — confirm resolved notifications are enabled (`send_resolved: true`) and trace exactly how a `resolve` event reaches PD to close the incident, plus how to debug incidents that never close. 4. **Custom details** — populate `details` with runbook_url, dashboard_url, the firing PromQL, the affected service/env, and the threshold-vs-value, so the responder has full context in the PD payload without leaving the page. 5. **Routing discipline** — ensure only true SEV1/SEV2 reach PagerDuty; route SEV3+ to Slack/email. Show the route tree with `continue`, severity matchers, and a fallback catch-all receiver. 6. **Priority and urgency** — map to PD priority/urgency where the plan supports it, and set business-hours vs after-hours urgency if relevant. 7. **Validation** — fire a synthetic alert, confirm one incident opens, updates dedupe, and auto-resolves; check the responder sees runbook + dashboard links. Output as: (a) full `pagerduty_configs` receiver YAML, (b) the route tree snippet that gates paging by severity, (c) a custom `details` template, (d) a checklist for debugging duplicate or never-resolving incidents, (e) a one-line summary of the most common misconfiguration. Bias toward: fewer, higher-quality pages, reliable auto-resolve, and rich context in every incident.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Alertmanager HA Cluster & Gossip Mesh Design Prompt
Design and debug a highly available Alertmanager cluster — gossip mesh, notification deduplication across replicas, and split-brain avoidance — so alerts fire exactly once during failures.
-
Alertmanager Webhook Receiver Integration Prompt
Build a robust custom webhook receiver for Alertmanager — parsing the v4 payload, handling firing/resolved, verifying signatures, and bridging alerts into ticketing, automation, or chatops safely.
-
Grafana OnCall Escalation Chain Design Prompt
Design Grafana OnCall escalation chains, schedules, and routing so the right human is paged within minutes, noise is suppressed, and nobody gets woken up for a warning.
-
Alertmanager Time Intervals & Mute Schedules Prompt
Design business-hours routing, maintenance-window muting, and follow-the-sun on-call handoffs in Alertmanager using time_intervals, mute_time_intervals, and active_time_intervals — without dropping real pages.
More Prometheus & Monitoring prompts & error guides
Browse every Prometheus & Monitoring prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.