- I have configured a notification channel whose type is DingDing,and result of sending test is successful;
- I didn’t configure the “for” field;
- My grafana version is v6.0.1;
Any suggestion will be grateful
The following is my state history:
did you add the notification channel to the alert or check the “send on all alerts”
When I clean the content of Message or just put some plain text such as “ERROR数超过15个”, the alert goes well.
But if I fill the Message with these content
“{“msgtype”: “link”,“link”: {“text”: “alert content”,“title”: “Title”,“picUrl”: “”,“messageUrl”: “XXXXXXX”}}”,
I got an error log like this:
t=2019-05-16T11:18:26+0800 lvl=eror msg=“Failed to create Json data” logger=alerting.notifier.dingding error=“invalid character ‘m’ after object key:value pair” dingding=DingDing
t=2019-05-16T11:18:26+0800 lvl=eror msg=“Alert Panic” logger=alerting.engine error=“runtime error: invalid memory address or nil pointer dereference” stack=“[engine.go:175 asm_amd64.s:522 panic.go:513 panic.go:82 signal_unix.go:390 simplejson.go:75 dingding.go:78 notifier.go:67 notifier.go:107 notifier.go:112 notifier.go:58 result_handler.go:100 engine.go:218]”
So, what Message format should I follow if I want to send to a notification channel whose type is “DingDing” ?
still unresolved
Message format for “DingDing” type notification channel is wanted, thx ![]()


