Checking the Health of Your Traefik Instances
To enable the API handler:
/ping health-check URL is enabled with the command-line
--ping or config file option
entryPoint where the
/ping is active can be customized with the
whose default value is
||A simple endpoint to check for Traefik process liveness. Return a code
cli comes with a
healthcheck command which can be used for calling this endpoint.
Enabling /ping on a dedicated EntryPoint.
entryPoints: ping: address: ":8082" ping: entryPoint: "ping"
[entryPoints] [entryPoints.ping] address = ":8082" [ping] entryPoint = "ping"
true, it disables the default internal router in order to allow one to create a custom router for the
ping: manualRouting: true
[ping] manualRouting = true
During the period in which Traefik is gracefully shutting down, the ping handler returns a 503 status code by default. If Traefik is behind e.g. a load-balancer doing health checks (such as the Kubernetes LivenessProbe), another code might be expected as the signal for graceful termination. In which case, the terminatingStatusCode can be used to set the code returned by the ping handler during termination.
ping: terminatingStatusCode: 204
[ping] terminatingStatusCode = 204