Files
coredns/middleware/health
Miek Gieben 9e9d72655d Make middleware survive a restart (#142)
Make middleware that sets up a (http) handler survive a graceful
restart. We calls the middleware's Shutdown function(s). If restart
fails the Start function is called again.

* middleware/health: OK
* middleware/pprof: OK
* middleware/metrics: OK

All restart OK.
2016-04-29 07:28:35 +01:00
..
2016-04-28 10:26:58 +01:00

health

This module enables a simple health check.

By default it will listen on port 8080.

Restarting CoreDNS will stop the health checking. This is a bug. Also this upstream Caddy bug.

Syntax

health

It optionally takes an address, the default is :8080. The health path is fixed to /health. It will just return "OK", when CoreDNS is healthy.

This middleware only needs to be enabled once.

Examples

health localhost:8091