mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-15 02:26:34 +00:00
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:
parent
55a40d1d3a
commit
3464ab4fa2
@ -501,7 +501,7 @@ func (n *PagerDuty) notifyV2(ctx context.Context, eventType, key string, tmpl fu
|
|||||||
if eventType == pagerDutyEventTrigger {
|
if eventType == pagerDutyEventTrigger {
|
||||||
payload = &pagerDutyPayload{
|
payload = &pagerDutyPayload{
|
||||||
Summary: tmpl(n.conf.Description),
|
Summary: tmpl(n.conf.Description),
|
||||||
Source: n.conf.Client,
|
Source: tmpl(n.conf.Client),
|
||||||
Severity: n.conf.Severity,
|
Severity: n.conf.Severity,
|
||||||
CustomDetails: details,
|
CustomDetails: details,
|
||||||
Component: n.conf.Component,
|
Component: n.conf.Component,
|
||||||
|
Loading…
Reference in New Issue
Block a user