mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
Start http handler on port 8080 and return OK. Also add some documentation fixes for the prometheus middleware.
health
This module enables a simple health check.
By default it will listen on port 9180.
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.