can we send alerts generated by grafana 6.3 to a database say mysql?
hello you have to use a webhook
how ? can you provide any reference? @melrose
hey @melrose still i am struggling in integration grafana with mysql for sending alerts.
can you provide some snippet how can i send data using webhook
yes sure
Webhook
The webhook notification is a simple way to send information about a state change over HTTP to a custom endpoint. Using this notification you could integrate Grafana into a system of your choosing.
Example json body:
{
"dashboardId":1,
"evalMatches":[
{
"value":1,
"metric":"Count",
"tags":{}
}
],
"imageUrl":"https://grafana.com/assets/img/blog/mixed_styles.png",
"message":"Notification Message",
"orgId":1,
"panelId":2,
"ruleId":1,
"ruleName":"Panel Title alert",
"ruleUrl":"http://grafana.staged-by-discourse.com/d/hZ7BuVbWz/test-dashboard?fullscreen\u0026edit\u0026tab=alert\u0026panelId=2\u0026orgId=1",
"state":"alerting",
"tags":{
"tag name":"tag value"
},
"title":"[Alerting] Panel Title alert"
}
Hi can I get any example projects
play.grafana.org check out samples from here.
Then start with simple csv data