diff --git a/notification/notification.go b/notification/notification.go index cf9d285ef..75dbe8abb 100644 --- a/notification/notification.go +++ b/notification/notification.go @@ -66,7 +66,7 @@ type NotificationReq struct { // A textual representation of the rule that triggered the alert. RuleString string // Prometheus console link to alert expression. - GeneratorUrl string + GeneratorURL string } type NotificationReqs []*NotificationReq @@ -135,7 +135,7 @@ func (n *NotificationHandler) sendNotifications(reqs NotificationReqs) error { "Payload": map[string]interface{}{ "Value": req.Value, "ActiveSince": req.ActiveSince, - "GeneratorUrl": req.GeneratorUrl, + "GeneratorURL": req.GeneratorURL, "AlertingRule": req.RuleString, }, }) diff --git a/rules/manager/manager.go b/rules/manager/manager.go index e1917454d..0b8130dc9 100644 --- a/rules/manager/manager.go +++ b/rules/manager/manager.go @@ -187,7 +187,7 @@ func (m *ruleManager) queueAlertNotifications(rule *rules.AlertingRule, timestam Value: aa.Value, ActiveSince: aa.ActiveSince.Time(), RuleString: rule.String(), - GeneratorUrl: m.prometheusUrl + rules.GraphLinkForExpression(rule.Vector.String()), + GeneratorURL: m.prometheusUrl + rules.GraphLinkForExpression(rule.Vector.String()), }) } m.notifications <- notifications