From 94bef6419f92107423c839855487c062a6eba5db Mon Sep 17 00:00:00 2001 From: Daniel Bonatto Date: Sat, 27 Jan 2018 08:22:41 -0200 Subject: [PATCH] Fixes prometheus/alertmanager#1211 (#1214) Add template to severity field for PagerDuty API v2. --- notify/impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify/impl.go b/notify/impl.go index 50eb97de..584f3061 100644 --- a/notify/impl.go +++ b/notify/impl.go @@ -506,7 +506,7 @@ func (n *PagerDuty) notifyV2(ctx context.Context, eventType, key string, tmpl fu payload = &pagerDutyPayload{ Summary: tmpl(n.conf.Description), Source: tmpl(n.conf.Client), - Severity: n.conf.Severity, + Severity: tmpl(n.conf.Severity), CustomDetails: details, Component: n.conf.Component, Group: n.conf.Group,