Skip to content

A Matrix notification ingress for Grafana alerting webhooks

License

Notifications You must be signed in to change notification settings

ananace/ruby-grafana-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

676b528 · Oct 16, 2021

History

59 Commits
Oct 16, 2021
Apr 18, 2021
Apr 18, 2021
Apr 17, 2021
Apr 17, 2021
Oct 16, 2021
Apr 17, 2021
Jul 27, 2018
Oct 16, 2021
Apr 17, 2021
Oct 16, 2021
Mar 19, 2021
Oct 16, 2021
Oct 16, 2021

Repository files navigation

Grafana Matrix

A Grafana webhook ingress for sending Matrix notifications

Working:

  • Simple notifications
  • Authenticated requests

TODO:

  • Proper styling

Installation / Usage

Until a more proper release is done;
Download the git repo, instantiate the bundle, create a proper configuration file, and launch the server

git clone https://github.com/ananace/ruby-grafana-matrix
cd ruby-grafana-matrix
bundle install --path=vendor
cp config.yml.example config.yml
vi config.yml
# Edit the configuration to suit your requirements

bundle exec rackup

You would then add the ingester as a Grafana webhook channel like so - albeit with port 9292 unless changed;

Grafana config

Docker

Build the image:

docker build -t ruby-grafana-matrix:latest .

Create a proper configuration file:

cp config.yml.example config.yml
vi config.yml

Run the resulting container, and mount your config.yml inside of it:

docker run -v $PWD/config.yml:/app/config.yml --name ruby-grafana-matrix ruby-grafana-matrix:latest

If running the container on the same host as Grafana, you can attach it to the same Docker network and use the container name in the Grafana webhook URL.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ananace/ruby-grafana-matrix

License

The gem is available as open source under the terms of the MIT License.

About

A Matrix notification ingress for Grafana alerting webhooks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published