Commit 4d7d1317 by stratomonitor Committed by Sofia Papagiannaki

Alerting: Add alert_state to the kafka message Fixes #11401 (#20099)

* Notifications: Add alert_state to the kafka message Fixes #11401
parent 96dbed5e
......@@ -75,6 +75,8 @@ func (kn *KafkaNotifier) Notify(evalContext *alerting.EvalContext) error {
records := make([]interface{}, 1)
bodyJSON := simplejson.New()
//get alert state in the kafka output issue #11401
bodyJSON.Set("alert_state", state)
bodyJSON.Set("description", evalContext.Rule.Name+" - "+evalContext.Rule.Message)
bodyJSON.Set("client", "Grafana")
bodyJSON.Set("details", customData)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment