2016-04-06 09:21:46 +01:00
|
|
|
# health
|
|
|
|
|
|
2016-10-10 20:13:22 +01:00
|
|
|
This module enables a simple health check endpoint.
|
2016-04-13 10:19:09 +00:00
|
|
|
By default it will listen on port 8080.
|
2016-04-06 09:21:46 +01:00
|
|
|
|
|
|
|
|
## Syntax
|
|
|
|
|
|
|
|
|
|
~~~
|
2016-10-10 20:13:22 +01:00
|
|
|
health [ADDRESS]
|
2016-04-06 09:21:46 +01:00
|
|
|
~~~
|
|
|
|
|
|
2016-08-22 14:17:21 -07:00
|
|
|
Optionally takes an address; the default is `:8080`. The health path is fixed to `/health`. It
|
2016-10-10 20:13:22 +01:00
|
|
|
will just return "OK" when CoreDNS is healthy, which currently mean: it is up and running.
|
2016-04-06 09:21:46 +01:00
|
|
|
|
|
|
|
|
This middleware only needs to be enabled once.
|
|
|
|
|
|
|
|
|
|
## Examples
|
2016-04-28 10:26:58 +01:00
|
|
|
|
|
|
|
|
~~~
|
|
|
|
|
health localhost:8091
|
|
|
|
|
~~~
|