A set of Sensu plugins for monitoring Habitat.
This gem includes a plugin for monitoring Habitat services' health check statuses via a supervisor API.
With only default options, the
check-habitat-service-health.rb script assumes a Habitat supervisor on
127.0.0.1:9631, iterates over all services running under that supervisor, and aggregates their health check statuses. The final overall status of the check is whatever the most serious status is of any one service, e.g. if 4/5 services are OK and one is in WARNING, the check result will be a WARNING.
If the Habitat supervisor is on another host:
> check-habitat-service-health.rb -H 192.168.0.4
> check-habitat-service-health.rb --host 192.168.0.4
If the Habitat supervisor is on another port:
> check-habitat-service-health.rb -P 4242
> check-habitat-service-health.rb --port 4242
To check only a particular set of services running under the Habitat supervisor:
> check-habitat-service-health.rb -s service1.default,service2.default
> check-habitat-service-health.rb --services service1.default,service2.default
In this case, any service that is specified and not running will be counted as a CRITICAL.
Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.×