coredns/middleware/health
Miek Gieben de0fa53379 Doc: add package docs (#296)
* Doc: add package docs

Add short package level docs to make godoc looks nicer.
Add some badges to the README.

* correct url
2016-09-25 08:39:20 +01:00
..
health.go Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
health_test.go Golint2 (#280) 2016-09-23 09:14:12 +01:00
README.md Update README.md 2016-08-22 14:17:21 -07:00
setup.go Golint2 (#280) 2016-09-23 09:14:12 +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

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