This project is a http API to abstract healthcheck operations, like verify if a web application is working fine and notify to some users if some of this applications are in trouble.
API_URL
- the api base urlAPI_DEBUG
- enables the debug mode
ZABBIX_URL
- the zabbix api endpointZABBIX_USER
- zabbix userZABBIX_PASSWORD
- zabbix passwordZABBIX_HOST_GROUP
- host group used to create the web monitoringZABBIX_HOST
- host used to create the web monitoring
TODO
tsuru plugin-install hc /plugin
$ tsuru service-instance-add <healthcheck-service> <healthcheck-name>
$ tsuru service-instance-remove <healthcheck-service> <healthcheck-name>
$ tsuru hc add-url <healthcheck-name> <url> [expected string]
$ tsuru hc remove-url <healthcheck-name> <url>
$ tsuru hc add-watcher <healthcheck-name> <email>
$ tsuru hc remove-watcher <healthcheck-name> <email>
Pull requests are very welcomed! Make sure your patches are well tested.
If you are using a virtualenv, all you need is:
$ make test