From 204fe007b72117f13113350d50e276271755cc73 Mon Sep 17 00:00:00 2001 From: Chris Chandler Date: Tue, 17 Oct 2017 16:22:56 -0500 Subject: [PATCH] When Messasge field is set for an alert, map it to the output field in a Sensu check result. If Message is empty, send "Grafana Metric Condition Met" --- pkg/services/alerting/notifiers/sensu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/alerting/notifiers/sensu.go b/pkg/services/alerting/notifiers/sensu.go index a4c41e14bae..9f77801d458 100644 --- a/pkg/services/alerting/notifiers/sensu.go +++ b/pkg/services/alerting/notifiers/sensu.go @@ -112,7 +112,7 @@ func (this *SensuNotifier) Notify(evalContext *alerting.EvalContext) error { } if evalContext.Rule.Message != "" { - bodyJSON.Set("message", evalContext.Rule.Message) + bodyJSON.Set("output", evalContext.Rule.Message) } body, _ := bodyJSON.MarshalJSON()