mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
Instead of hardcoding plugin lists in autopath/health, use interfaces. (#1306)
Switched health and autopath plugin to allow any plugins to be used instead of a hardcoded list. I did not switch federation over since it wasn't obvious that anything other than kubernetes could be used with it. Fixes #1291
This commit is contained in:
committed by
Miek Gieben
parent
99e163c375
commit
a469a17cdf
@@ -19,15 +19,12 @@ autopath [ZONE...] RESOLV-CONF
|
||||
plugin. For instance `@kubernetes`, will call out to the kubernetes plugin (for each
|
||||
query) to retrieve the search list it should use.
|
||||
|
||||
Currently the following set of plugin has implemented *autopath*:
|
||||
|
||||
* *kubernetes*
|
||||
* *erratic*
|
||||
If a plugin implements the `AutoPather` interface then it can be used.
|
||||
|
||||
## Metrics
|
||||
|
||||
|
||||
If monitoring is enabled (via the *prometheus* directive) then the following metric is exported:
|
||||
|
||||
|
||||
* `coredns_autopath_success_count_total{}` - counter of successfully autopath-ed queries.
|
||||
|
||||
## Examples
|
||||
|
||||
Reference in New Issue
Block a user