How do you make alert notifications more useful in the message body?
IntermediateProductionOn-Call Integration & Alert Fatigue
Answer
Use Alertmanager templates to include: what is affected (service, cluster, region), the impact in plain words, the current value, a link to the exact Grafana panel with the time range, the runbook, and how many alerts are in the group.
templates: ['/etc/alertmanager/templates/*.tmpl']
{{ define "slack.text" }}{{ range .Alerts.Firing }}• {{ .Annotations.summary }} ({{ .Labels.cluster }})
value={{ .Annotations.value }} <{{ .Annotations.dashboard_url }}|dashboard> <{{ .Annotations.runbook_url }}|runbook>
{{ end }}{{ end }}
Grafana dashboard links with ?var-service=...&from=now-1h save the responder a minute of clicking.
More on On-Call Integration & Alert Fatigue
How do you integrate Alertmanager with PagerDuty correctly?BeginnerHow do you integrate Alertmanager with Opsgenie?BeginnerWhat is alert fatigue and how do you measure it?BeginnerWhat should an on-call handover include?BeginnerHow do you design escalation policies for a 24x7 service?IntermediateHow do you prevent the same incident from paging three different teams?Intermediate