No release in over 3 years
Low commit activity in last 3 years
A Sensu plug-in to provide count metrics for processes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0

Runtime

 Project Readme

Sensu Plugins Process Count Metrics

Build Status Gem Version

This is a Sensu Plug-in to interface with pgrep and count the number of processes with a given name as metrics.

Supply -f to use -f in pgrep.

This plug-in will ignore itself in the process list.

Tested on Ruby 2.3.

The unit tests are a bit dubious as they run the Ruby file externally as it's almost impossible to run unit tests on a Sensu plug-in because they run as soon as scoped... The tests must be run from the project root directory.

bundle exec rspec should run the test, after bundle installing of course.