diff --git a/plugins/receivers/pagerduty/config/default_alert_template_body_v1.goyaml b/plugins/receivers/pagerduty/config/default_alert_template_body_v1.goyaml index 63068146..0e1ce9fd 100644 --- a/plugins/receivers/pagerduty/config/default_alert_template_body_v1.goyaml +++ b/plugins/receivers/pagerduty/config/default_alert_template_body_v1.goyaml @@ -8,7 +8,7 @@ {{- end}} {{- end}} event_type: "{{template "pagerduty.event_type" . }}" -{{if .Data.id}}incident_key: "{{.UniqueKey}}"{{ end }} +incident_key: "{{.UniqueKey}}" description: ({{ .Data.status | toUpper }}{{ if eq .Data.status "firing" }}:{{ .Data.num_alerts_firing }}{{ end }}) {{- if eq .Data.status "resolved" }} ~({{ .Data.severity | toUpper }})~ {{- else }} *({{ .Data.severity | toUpper }})*