Commit a131c22d authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

plugin/health: doc updates (#1582)

Fixes #1564
parent 7b93ce2e
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
## Description ## Description
By enabling *health* any plugin that implements it will be queried for it's health. The combined By enabling *health* any plugin that implements
[healt.Healther interface](https://godoc.org/github.com/coredns/coredns/plugin/health#Healther)
will be queried for it's health. The combined
health is exported, by default, on port 8080/health . health is exported, by default, on port 8080/health .
## Syntax ## Syntax
...@@ -42,7 +44,7 @@ If monitoring is enabled (via the *prometheus* directive) then the following met ...@@ -42,7 +44,7 @@ If monitoring is enabled (via the *prometheus* directive) then the following met
* `coredns_health_request_duration_seconds{}` - duration to process a /health query. As this should * `coredns_health_request_duration_seconds{}` - duration to process a /health query. As this should
be a local operation it should be fast. A (large) increases in this duration indicates the be a local operation it should be fast. A (large) increases in this duration indicates the
CoreDNS process is having trouble keeping up. CoreDNS process is having trouble keeping up with its query load.
## Examples ## Examples
......
package health package health
// Healther interface needs to be implemented by each plugin willing to // Healther interface needs to be implemented by each plugin willing to provide
// provide healthhceck information to the health plugin. As a second step // healthhceck information to the health plugin. Note this method should return
// the plugin needs to registered against the health plugin, by addding // quickly, i.e. just checking a boolean status, as it is called every second
// it to healthers map. Note this method should return quickly, i.e. just // from the health plugin.
// checking a boolean status, as it is called every second from the health
// plugin.
type Healther interface { type Healther interface {
// Health returns a boolean indicating the health status of a plugin. // Health returns a boolean indicating the health status of a plugin.
// False indicates unhealthy. // False indicates unhealthy.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment