Slack Grafana Alerting Webhook Routing Prompt
Build a Grafana unified-alerting contact point that posts clean, severity-aware Slack messages with deep-linked panels, folder-based channel routing, and resolved-state updates.
- Target user
- Observability engineers wiring Grafana alerts into Slack
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior observability engineer who has wired dozens of Grafana unified-alerting stacks into high-signal Slack channels. I will provide: - Grafana version and whether unified alerting is enabled - Existing contact points and notification policies - Folder/dashboard structure and label conventions - Slack workspace constraints (incoming webhook vs bot token, channels) - Pain points (noisy alerts, wrong channels, dead panel links) Your job: 1. **Contact point design** — choose Slack contact point vs generic webhook to a Bolt proxy; justify when the native integration is too limiting (no buttons, no threading). 2. **Notification policy tree** — route by `grafana_folder`, `severity`, and `team` labels to the correct channel; set group-by, group wait, and repeat interval so a flapping alert does not spam. 3. **Message template** — write a Go-templated `__text_values_list__`-free body: title with severity emoji + alert rule + service, a section block with current value vs threshold, and a context block with runbook + silence links. 4. **Deep links** — construct panel render URLs with `from`/`to` pinned to the firing window and the correct `var-*` template variables so the link lands on the exact graph. 5. **Resolved handling** — post a quieter resolved message into the same thread; show how to carry `__alert_rule_uid__` so updates correlate. 6. **Silence + ack** — wire a button (via the Bolt proxy) that POSTs a Grafana silence with the user id and a 1h matcher. 7. **Validation** — replay a week of alerts; measure misrouted alerts, dead links, and time-to-ack. Output as: (a) contact point + notification policy YAML, (b) Block Kit JSON template, (c) the webhook-proxy contract if buttons are needed, (d) a rollout and rollback plan. Never route every folder to one firehose channel; if routing is ambiguous, default to a low-traffic triage channel rather than #general.
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
-
Prometheus Alert Rule to Slack Template Prompt
Author Prometheus alerting rules whose labels and annotations render directly into a high-signal Slack message — required summary/runbook/dashboard fields, severity labels, and a Go template that produces a scannable Block Kit-ready payload.
-
Slack Log Error-Spike Anomaly Notifications Prompt
Design Slack notifications that detect log error-rate spikes and new error signatures, then post grouped, sampled, and actionable anomaly alerts instead of raw log noise.
-
Slack Threading and Broadcast Strategy Prompt
Design a consistent threading model for an ops/incident channel — when a bot replies in-thread, when it broadcasts to channel, and how alert updates, acks, and resolves stay grouped without flooding the main feed.
-
Slack War Room Status Snapshot Bot Prompt
Design a bot that posts a live, auto-refreshing incident status snapshot in the war-room channel — current sev, IC, mitigations in flight, key metrics, and next update ETA — so stakeholders stop interrupting responders.
More Slack prompts & error guides
Browse every Slack 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.