Skip to content

Commit d82dbb3

Browse files
aatchisonclaude
andcommitted
fix(alerting): concise PagerDuty/Slack summary (drop default.message dump) (#559)
Rebuilt on current main. summary on both contact points -> one-liner [severity] alertname: summary; full description + runbook stay on the PD incident. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e46bb2c commit d82dbb3

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎terraform/alerting.tf‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ resource "grafana_contact_point" "pagerduty_platform_infra" {
2424
severity = "critical"
2525
class = "grafana-alert"
2626
component = "platform-infra"
27-
summary = "{{ template \"default.message\" . }}"
27+
# Concise one-liner for the PD incident title / Slack (#mzla-pages). The
28+
# full description + runbook_url remain on the PD incident; we deliberately
29+
# do NOT use the default.message template, which dumps all labels/annotations.
30+
summary = "[{{ .CommonLabels.severity }}] {{ .CommonLabels.alertname }}: {{ .CommonAnnotations.summary }}"
2831
# Resolved events are sent by default (disable_resolve_message defaults to
2932
# false), so PD incidents auto-resolve when the alert clears.
3033
}
@@ -46,7 +49,10 @@ resource "grafana_contact_point" "pagerduty_platform_infra_low" {
4649
severity = "warning"
4750
class = "grafana-alert"
4851
component = "platform-infra"
49-
summary = "{{ template \"default.message\" . }}"
52+
# Concise one-liner for the PD incident title / Slack (#mzla-pages). The
53+
# full description + runbook_url remain on the PD incident; we deliberately
54+
# do NOT use the default.message template, which dumps all labels/annotations.
55+
summary = "[{{ .CommonLabels.severity }}] {{ .CommonLabels.alertname }}: {{ .CommonAnnotations.summary }}"
5056
}
5157
}
5258

0 commit comments

Comments
 (0)