Check supervisor status for collectd
- Python 100%
|
|
||
|---|---|---|
| collectd_supervisor.py | ||
| README.md | ||
collectd-supervisor
This module is designed be ran by collectd, via its python plugin interface.
It is largely inspired by https://github.com/mbachry/collectd-systemd/
Example usage:
LoadPlugin "python"
<Plugin "python">
ModulePath "/usr/local/src/collectd-supervisor"
Import "collectd_supervisor"
# can enable this for debugging
#LogTraces false
<Module collectd_supervisor>
# specify one or more programs to monitor
Program "group1:application"
Program "group1:task_runner"
Program "group2:something"
# can specify URL with credentials
#ServerURL "http://username:password@localhost:9001/RPC2"
# (but this is the default)
#ServerURL "http://localhost:9001/RPC2"
#Interval 60.0
#Verbose false
</Module>
</Plugin>