Use Alerta as a dashboard for Sensu
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
docs/images
LICENSE
README.md
alerta.json
alerta.rb

README.md

Sensu-to-Alerta

Forward Sensu events to Alerta for a consolidated view and improved visualisation.

Transform this ...

sensu

Into this ...

alerta

Installation

To install the Sensu Plugin libary and dependencies...

$ gem install sensu-plugin httparty

Add the alerta handler and config file...

$ wget -qO /etc/sensu/handlers/alerta.rb https://raw.github.com/alerta/sensu-alerta/master/alerta.rb
$ wget -qO /etc/sensu/conf.d/alerta.json https://raw.github.com/alerta/sensu-alerta/master/alerta.json

Configuration

Replace the config.json.example file...

$ wget -qO /etc/sensu/config.json https://raw.github.com/alerta/sensu-alerta/master/config/config.json

Restart Sensu...

$ sudo service sensu-server restart

Testing

Generate some test alerts by touching and removing a file called /ok...

$ touch /ok
$ rm /ok

Vagrant

Alternatively, make use of the vagrant-try-alerta repo...

$ git clone https://github.com/alerta/vagrant-try-alerta.git
$ cd vagrant-try-alerta
$ vagrant up alerta-sensu
$ vagrant ssh alerta-sensu

License

Copyright (c) 2014 Nick Satterly. Available under the MIT License.