This service performs user defined health checks for the various services that compose an application.
It offers a REST API where you can list available health checks and also gives the chance to run them individually or all together. This page is just a HTML view of the JSON response provided by one of those API methods.
The third column of the table displays a button labeled GO. By pressing this button you can re run a failed the tests to see if it came back to normal.
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/checks
[
"monitor.check.jackrabbit",
"monitor.check.redis",
"monitor.check.memcache",
"monitor.check.php_extensions"
]
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/all_checks
{
default: [
"monitor.check.jackrabbit",
"monitor.check.redis",
"monitor.check.memcache",
"monitor.check.php_extensions"
],
app_server: [
"monitor.check.jackrabbit",
"monitor.check.redis",
],
cron_server: [
"monitor.check.redis",
"monitor.check.memcache",
"monitor.check.php_extensions"
]
}
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/groups
[
"default",
"app_server",
"cron_server"
]
$ curl -XGET -H "Accept: application/json" http://drm-poc.cloud.display.aero/list/reporters
[
"newrelic_reporter",
"file_reporter",
"another_awesome_reporter"
]
failure_status_code.
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/http_status_checks HTTP/1.1 200 OK
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/http_status_checks HTTP/1.1 502 Bad Gateway
check_id and returns the result within the HTTP Status Code (200 if checks are OK, 502 otherwise). The failure status code is configurable as failure_status_code.
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/http_status_check/monitor.check.redis
HTTP/1.1 200 OK
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/http_status_check/monitor.check.redis
HTTP/1.1 502 Bad Gateway
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/run
{
"checks":
[
{"checkName": "Jackrabbit Health Check", "message": "OK", "status":true, "service_id": "monitor.check.jackrabbit"},
{"checkName": "Redis Health Check", "message": "OK", "status":true, "service_id": "monitor.check.redis"},
{"checkName": "Memcache Health Check", "message": "KO - No configuration set for session.save_path", "status":false, "service_id": "monitor.check.memcache"},
{"checkName": "PHP Extensions Health Check", "message": "OK", "status":true, "service_id": "monitor.check.php_extensions"}
],
"globalStatus": "OK|KO"
}
check_id and returns the result as a JSON object.
$ curl -XPOST -H "Accept: application/json" http://drm-poc.cloud.display.aero/run/monitor.check.redis
{
"checkName": "Redis Health Check",
"message": "OK",
"status": true,
"service_id": "monitor.check.redis"
}
checkNamemessagestatusservice_idservice_id specified in the service container configuration.?group= to specify the check group: