2nd
While continuing to dork around with Dash, I wanted to test the metrics gathered using the plugin from part 1. I wrote some basic steps that will allow you to fetch and perform tests on your own metrics. Be sure you have webrat installed in your project and available to Cucumber. Download dash_steps.rb and add to features/step_definitions. Update the APPKEY with the key for your application.
Here is an example feature.
For super-coolness, integrate with cucumber-nagios for notification support when your tests fail.
Instead of writing boring monitoring plugins from scratch, you can now do behavior driven ops! Transform from a grumpy, misanthropic sysadmin to a hipster, agile developer instantly.
While learning how to implement custom metrics for Dash, I hacked together a littlesensor plugin that runs Cucumber on a given path and reports on passing, failing, skipped, and pending steps.
To use, save the plugin to ~/.fiveruns-dash-sensor and add the following to config.rb:
sensor.plugin 'cucumber', :path => 'PATH_TO_ROOT'
More on sensor. This plugin was inspired by cucumber-nagios.