Healthcheck Command¶
Checking the Health of your Traefik Instances.
Usage¶
The healthcheck command allows you to make a request to the /ping
endpoint (defined in the install (static) configuration) to check the health of Traefik. Its exit status is 0
if Traefik is healthy and 1
otherwise.
This can be used with HEALTHCHECK instruction or any other health check orchestration mechanism.
traefik healthcheck [command] [flags] [arguments]
Example:
$ traefik healthcheck
OK: http://:8082/ping
The command uses the ping endpoint that is defined in the Traefik install (static) configuration.