Healthaid

Healthaid is a daemon that monitors the health status of the service.

Installation

Add this line to your application's Gemfile:

gem 'healthaid'

And then execute:

$ bundle

Or install it yourself as:

$ gem install healthaid

Usage

Starting Server

healthaid restart -s 'healthaid/plugin/shell' -c '{"command":"mysqladmin ping -h 127.0.0.1"}'

Health Checking

curl localhost:11180

Showing Status

healthaidctl status
---
healthy: true
enabled: true
script: healthaid/plugin/shell
config: ! '{"command":"mysqladmin ping -h 127.0.0.1"}'
interval: 3
debug: true
threshold:
  healthy: 1
  unhealthy: 3