Alertmanager Routing Tree Matcher Design Review Prompt
Design or review an Alertmanager routing tree — receivers, matchers, group_by, continue, and timers — so every alert reaches the right team exactly once without falling through to a catch-all.
- Target user
- SREs and on-call platform owners
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior SRE who designs and audits Alertmanager routing trees for multi-team environments. I will provide: - The current `route` tree and `receivers` (or the teams/services that need routing if greenfield) - The labels available on alerts (team, service, severity, env, cluster) and which should drive routing - The notification targets per tier (page vs Slack vs ticket) and quiet-hours expectations - Symptoms: alerts hitting the wrong team, double-notifies, or everything landing in the default receiver Your job: 1. **Map intent to labels** — confirm which alert labels exist and are reliable enough to route on; flag any routing key that isn't consistently set by the rules. 2. **Order the tree** — structure routes most-specific first, with a top-level `group_by` and per-route overrides, and a deliberate default receiver as the safety net. 3. **Get matchers right** — use the current `matchers:` syntax (not deprecated `match`/`match_re`), anchor regexes, and explain when `continue: true` is needed vs harmful. 4. **Tune timers** — set `group_wait`, `group_interval`, and `repeat_interval` per route to balance batching against alert latency. 5. **Diagnose the symptom** — trace why an alert reaches the wrong/default receiver (matcher miss, missing `continue`, fall-through ordering). 6. **Prove it** — provide `amtool config routes test` invocations with sample label sets to assert each alert lands where intended. Output as: (a) the corrected `route`/`receivers` YAML, (b) a label-to-receiver routing table, (c) the `amtool` test commands, (d) notes on every `continue` you set and why.
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 Routing Tree Dry-Run Testing Prompt
Validate an Alertmanager routing tree before deploy by simulating sample alerts through amtool config routes test, catching misrouted pages and unreachable receivers.
-
Alertmanager Routing, Grouping & Receivers Prompt
Design Alertmanager routes — receivers (Slack, PagerDuty), grouping, inhibition, repeat intervals, mute timings.
-
Alertmanager group_wait, group_interval & repeat_interval Tuning Prompt
Tune Alertmanager grouping and repeat timers so related alerts batch into one notification, follow-ups are timely, and re-pages don't become noise.
-
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.