A simple health check for Supervisor, uses XML-RPC API
SUPERVISOR_HOST- Supervisor hostSUPERVISOR_PORT- Supervisor port
Default port is 8080.
/- always returns 200 and "ok"/health/checkopens Supervisor RPC and returns result based on running tasks
Normal response
{
"status": true,
"supervisor_state": {
"state_code": 1,
"state_name": "RUNNING"
}
}Error response:
{
"status": false,
"supervisor_state": {
"state_code": 1,
"state_name": "RUNNING"
},
"messages": [
"worker_1"
]
}