sensu-plugins / sensu-plugins-process-checks

This plugin provides native process instrumentation for monitoring and metrics collection, including: process status, uptime, thread count, and others.
http://sensu-plugins.io
MIT License
20 stars 55 forks source link

Add filter for stats name #52

Closed rthouvenin closed 7 years ago

rthouvenin commented 7 years ago

Pull Request Checklist

Implements #43. Adds a command line option to metrics-per-process.py to filter with a regexp the stats to output. Prints everything by default for backward compatibility. The stats that are filtered out are not queried, which avoids getting permission errors for stats that are not required.

General

rthouvenin commented 7 years ago

Here is a gist with the output of a few test runs at this stage: https://gist.github.com/rthouvenin/f43ab687b85c7543b781668a3ac7b8a2

majormoses commented 7 years ago

released: https://rubygems.org/gems/sensu-plugins-process-checks/versions/2.5.0