Ver Fonte

alerting: adds back the link to grafana.

Leonard Gram há 7 anos atrás
pai
commit
87bc60b9d7
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      pkg/services/alerting/notifiers/pagerduty.go

+ 2 - 0
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)