This notifier allows the one to send notify message to a QQ group when a Grafana alert is triggered, by using the builtin webhook support that Grafana provides.
This project is based on mamoe/mirai, mamoe/mirai-console, LXY1226/MiraiOK, project-mirai/mirai-api-http and Logiase/gomirai
- Setup mirai-console
- Move
config.example.yml
toconfig.yml
- Modify content of
config.yml
to correspond your settings - Build and run this project by using
go run .
- Go to Grafana and head to
https://YOUR_GRAFANA_URL/alerting/notification/new
and configure a New Notification Channel by using the config as following:
- Name: (name of your choice)
- Type:
webhook
- Url:
http://localhost:PORT_SET_IN_CONFIG/webhook
- Method:
POST
- Username and Password: (leave as blank)
- Go to corresponding alert rules and add the notification channel you've just created
This project is using AGPLv3
as stated in its LICENSE
file. If conflict occurs between those two statements, the LICENSE
file should supersede.