Template Source in PagerDuty alert payload (#1117)

* Template Source field in pagerduty payload

As a sane default we link to alertmanager, but
leave templating available to the user if
something suits their system better.
This commit is contained in:
stuart nelson 2017-11-22 14:51:44 -05:00 committed by GitHub
parent 55a40d1d3a
commit 3464ab4fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,7 +501,7 @@ func (n *PagerDuty) notifyV2(ctx context.Context, eventType, key string, tmpl fu
if eventType == pagerDutyEventTrigger {
payload = &pagerDutyPayload{
Summary: tmpl(n.conf.Description),
Source: n.conf.Client,
Source: tmpl(n.conf.Client),
Severity: n.conf.Severity,
CustomDetails: details,
Component: n.conf.Component,