Skip to content

Example showing basic integration of Sensu (monitoring tool) and RSpec

License

Notifications You must be signed in to change notification settings

bsnape/sensu-rspec-integration

Repository files navigation

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

About

Example showing basic integration of Sensu (monitoring tool) and RSpec

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published