grafana-mirai-notifier

command module
v0.0.0-...-c8b75b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: AGPL-3.0 Imports: 19 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL