Example showing basic integration of Sensu (monitoring tool) and RSpec
Ruby Puppet
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.
hieradata
manifests
modules/data/files
.gitignore
Gemfile
Gemfile.lock
LICENSE
Puppetfile
Puppetfile.lock
README.md
Vagrantfile
hiera.yaml
sensu_dashboard.png

README.md

Sensu-RSpec Integration

This is an example of how to integrate RSpec tests with Sensu.

It uses a slight modification of the check-rspec Sensu check that I contributed to Sensu Community Plugins.

The Sensu version is 0.19.2-1 and dashboard (Uchiwa) is version 0.9.0-1. You can change either of these in hieradata/common.yaml.

If you require a Sensu sandbox VM, check out my vagrant-sensu repository.

Installation

Install Ruby, Vagrant and VirtualBox.

Then install the gem dependencies:

$ bundle install

Install the Puppet modules:

$ bundle exec librarian-puppet install

Bring up the VMs (this will take a while):

$ vagrant up

Usage

Once the 2 VMs (server and client) are up and running, navigate to the Sensu dashboard.

Here you can see the two separate warning alerts for failed tests and an overall critical alert displaying the summary of how many tests have failed.

Sensu Dashboard