How to monitor the health of Ghostwriter services
HEALTHCHECK
commands (see Docker documentation for technical information). These commands check to make sure the service is responding and basic functionality is working.
The results of these commands can be checked with this command:
0
), the Status
column will show healthy
. Any other exit code will flip the status to unhealthy
, indicating the service is likely not functioning properly.
By default, the commands run with these attributes that can be adjusted via Ghostwriter CLI’s config set
command:
HEALTHCHECK_START
, default is 30s
)
HEALTHCHECK_INTERVAL
, default is 120s
)
HEALTHCHECK_TIMEOUT
, default is 10s
)
HEALTHCHECK_RETRIES
, default is 1
)
config set
command:
HEALTHCHECK_DISK_USAGE_MAX
(Default is 90
)
HEALTHCHECK_MEM_MIN
(Default is 100
)
Accept: application/json
header.Response | Response Code | Description |
---|---|---|
OK | 200 | System is healthy |
WARNING | 200 | One or more tests did not pass and you should check the detailed status endpoint |
ERROR | 500 | There was an unexpected error indicating a critical issue |
OK
is not in the response or the response code is not 200
, send an alert with a link to /status/ for details
working
status. A service experiencing a problem will have a descriptive warning or error message that will tell you why it failed the test. You can use this information to customize your monitoring alert.