mirror of
https://github.com/coredns/coredns.git
synced 2025-11-29 23:24:26 -05:00
mw/health: poll other middleware (#976)
This add the infrastructure to let other middleware report their health status back to the health middleware. A health.Healther interface is introduced and a middleware needs to implement that. A middleware that supports healthchecks is statically configured. Every second each supported middleware is queried and the global health state is updated. Actual tests have been disabled as no other middleware implements this at the moment.
This commit is contained in:
@@ -40,7 +40,8 @@ See a couple of blog posts on how to write and add middleware to CoreDNS:
|
||||
|
||||
When exporting metrics the *Namespace* should be `middleware.Namespace` (="coredns"), and the
|
||||
*Subsystem* should be the name of the middleware. The README.md for the middleware should then
|
||||
also contain a *Metrics* section detailing the metrics.
|
||||
also contain a *Metrics* section detailing the metrics. If the middleware supports dynamic health
|
||||
reporting it should also have *Health* section detailing on its inner workings.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user