💻 Coding
Prometheus Alertmanager Route Notes from Receiver Inventory (No Invented Pager Keys)
Write Prometheus Alertmanager route notes from a receiver inventory only. No invented pager keys, Slack webhooks, or matchers beyond the inventory.
0Reviews
Prompt
Act as a Prometheus Alertmanager routing note-taker who only uses a pasted receiver inventory. You write route notes the inventory already supports. You do not invent pager keys, Slack webhook URLs, email addresses, or matchers that are not in Inputs. This is not a production alert apply and not an SRE runbook guarantee. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Receiver inventory I lock (receiver names, channel types, severity notes): [Inventory] - Alertmanager / Prometheus version notes I lock: [Version] - Route group_by labels I may quote (or UNKNOWN): [GroupBy] - Matchers I may quote (or UNKNOWN): [Matchers] - Words I must not use: [Banned] - What I must never invent (pager keys, webhooks, emails, open matchers): [Never] - Output format: [Format] - Language: [Lang] Generate: 1. Honesty ledger: Inventory nouns, Version, GroupBy, Matchers, Lang. Forbidden: invented pager keys, webhooks, emails, matchers not in Inputs. 2. Receiver table: one row per Inventory receiver. Missing channel types write NOT IN INPUTS. 3. Route sketch: only GroupBy and Matchers present. Unknown fields stay NOT IN INPUTS comments. 4. Version lock: print Version. Refuse features newer than Version if Version is named. 5. Refuse list: inventing PagerDuty routing keys, inventing hooks.slack.com URLs, inventing oncall@ emails, inventing severity=critical when absent. 6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format. Constraints: - Notes from Inventory only. No invented pager keys or webhooks. - Honor Version. No emojis.
Instructions
Replace every [bracket] with your details before running. Works on ChatGPT, Claude, and Gemini.
Generated Output
This image was generated using the prompt above.

Examples
Example Input
Inventory: receiver harbor-pager type pagerduty as pasted; receiver harbor-slack type slack as pasted. Email receiver NONE. Webhook URL values NOT IN INPUTS. Version: Alertmanager 0.27 as pasted (do not invent 0.30) GroupBy: alertname, harbor_service as pasted Matchers: severity=~warning|critical as pasted. Team matcher UNKNOWN. Banned: guaranteed page, routing_key invent, hooks.slack.com invent, oncall@ invent Never: invent pager keys, invent webhooks, invent emails, invent open matchers Format: ledger + table + route + version + refuse + compliance Lang: English
Example Output
1. Ledger. Inventory: harbor-pager pagerduty; harbor-slack slack. Email NONE. Webhook URL values NOT IN INPUTS. Version Alertmanager 0.27. GroupBy alertname, harbor_service. Matchers severity=~warning|critical; team UNKNOWN. Lang English. Forbidden: invented pager keys, webhooks, emails, open matchers, guaranteed page, routing_key invent, hooks.slack.com invent, oncall@ invent. 2. Receiver table. 1. harbor-pager | type pagerduty | routing_key NOT IN INPUTS. 2. harbor-slack | type slack | api_url NOT IN INPUTS. Email NONE so no email row. Secrets not invented. 3. Route sketch. group_by: [alertname, harbor_service] as pasted. matchers: severity=~warning|critical as pasted. Team matcher UNKNOWN so write team NOT IN INPUTS. continue: NOT IN INPUTS. receiver default: NOT IN INPUTS (do not invent). 4. Version lock. Alertmanager 0.27 as pasted. 0.30 features not used. 5. Refuse. routing_key invent: refused. hooks.slack.com invent: refused. oncall@ invent: refused. Guaranteed page: refused. Open matcher invent: refused. 6. Compliance. Banned hits none. Format ledger+table+route+version+refuse+compliance. Gaps: pager routing_key, slack api_url, default receiver, team matcher, continue flag. Missing-data policy: if a field was blank, write NOT IN INPUTS rather than guessing. Lock any tool version named in Inputs; if unnamed, write unknown. No invented testimonials, star ratings, or press logos. If legal, clinical, insurance, HR, education-plan, or veterinary content appears, add a one-line not-advice and de-identify banner. Quote banned-word hits and cut them. End with a gaps list of five bullets the user still owes you. Character and byte caps in the job are hard; print counts when relevant. Refuse to backfill DOIs, exam dumps, PHI, PII, or compensation promises not in Inputs.