Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.6 KB

README.md

File metadata and controls

25 lines (20 loc) · 1.6 KB

Grafana QQ Notifier

Project Status Powered by Mirai GitHub go.mod Go version

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

Get Started

  1. Setup mirai-console
  2. Move config.example.yml to config.yml
  3. Modify content of config.yml to correspond your settings
  4. Build and run this project by using go run .
  5. 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)
  1. Go to corresponding alert rules and add the notification channel you've just created

License

This project is using AGPLv3 as stated in its LICENSE file. If conflict occurs between those two statements, the LICENSE file should supersede.