Skip to content

This notifier allows the one to send notify message to a QQ group when a Grafana alert is triggered.

License

Notifications You must be signed in to change notification settings

GalvinGao/grafana-mirai-notifier

Repository files navigation

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.

About

This notifier allows the one to send notify message to a QQ group when a Grafana alert is triggered.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages