From 87bc60b9d778161da7009f543557cd3d1f907e13 Mon Sep 17 00:00:00 2001 From: Leonard Gram Date: Tue, 13 Mar 2018 13:10:55 +0100 Subject: [PATCH] alerting: adds back the link to grafana. --- pkg/services/alerting/notifiers/pagerduty.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/alerting/notifiers/pagerduty.go b/pkg/services/alerting/notifiers/pagerduty.go index 9b1daa72a73..6013648d9dd 100644 --- a/pkg/services/alerting/notifiers/pagerduty.go +++ b/pkg/services/alerting/notifiers/pagerduty.go @@ -111,6 +111,8 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error { links := make([]interface{}, 1) linkJSON := simplejson.New() linkJSON.Set("href", ruleUrl) + bodyJSON.Set("client_url", ruleUrl) + bodyJSON.Set("client", "Grafana") links[0] = linkJSON bodyJSON.Set("links", links)