Skip to content

This plugin will help you to collect metrics based on per process. Required process name as a argument.

Notifications You must be signed in to change notification settings

adiii717/sensu-per-process-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Sensu metrics per process

This scrip will help you to collect metrics based on per process. Required process name as a argument, also able to kill that process if desired thresould crossed.

Getting Started

pull the script and place it under sensu embedded directory.

/opt/sensu/embedded/bin/metrics_per_process.py

now create a config for the check /etc/sensu/conf.d/myapp.json

{
  "checks": {
  "myapp-stats": {
     "type": "metric",
     "command":"/opt/sensu/embedded/bin/metrics_per_process.py -p /home/user/my-app.js",
     "interval": 60,
     "subscribers": [
       "my-app"
     ],
    "handler": "librato"
  }
 }

Prerequisites

psutil

pip install psutil


Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

This plugin will help you to collect metrics based on per process. Required process name as a argument.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages