mirror of
https://github.com/coredns/coredns.git
synced 2025-12-09 11:55:13 -05:00
Overloaded (#1364)
* plugin/health: add 'overloaded metrics' Query our on health endpoint and record (and export as a metric) the time it takes. The Get has a 5s timeout, that, when reached, will set the metric duration to 5s. The actually call "I'm I overloaded" is left to an external entity. * README * golint and govet * and the tests
This commit is contained in:
@@ -25,6 +25,14 @@ supports health checks has a section "Health" in their README.
|
||||
|
||||
Any plugin that implements the Healther interface will be used to report health.
|
||||
|
||||
## Metrics
|
||||
|
||||
If monitoring is enabled (via the *prometheus* directive) then the following metric is exported:
|
||||
|
||||
* `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
|
||||
CoreDNS process is having trouble keeping up.
|
||||
|
||||
## Examples
|
||||
|
||||
Run another health endpoint on http://localhost:8091.
|
||||
|
||||
Reference in New Issue
Block a user