coredns/middleware/health
Miek Gieben 2dd8a687b3 Startup notification (#250)
Stop the caddy message and start our own init notifications.
Log the version of CoreDNS when starting up.
Fix all middleware's setup functions so that return the error prefixed
with *which* middleware was failing; leads to better debuggable errors
when starting up.
2016-09-10 09:16:25 +01:00
..
health.go Make CoreDNS a server type plugin for Caddy (#220) 2016-08-19 17:14:17 -07:00
health_test.go Add a test for health middleware (#246) 2016-09-07 10:01:27 +01:00
README.md Update README.md 2016-08-22 14:17:21 -07:00
setup.go Startup notification (#250) 2016-09-10 09:16:25 +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