mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
plugin/autopath: Add metrics and remove log line (#1143)
* plugin/autopath: Add namespace selector and metrics Add a namespace, so autopathing only is performed in this namespace. This will make caching work for the cluster again. Also export metrics that we've done a successful autopath * dont shadow * Fix * Back the namespacing changes
This commit is contained in:
@@ -26,6 +26,8 @@ func setup(c *caddy.Controller) error {
|
||||
return plugin.Error("autopath", err)
|
||||
}
|
||||
|
||||
c.OnStartup(OnStartupMetrics)
|
||||
|
||||
// Do this in OnStartup, so all plugin has been initialized.
|
||||
c.OnStartup(func() error {
|
||||
m := dnsserver.GetConfig(c).Handler(mw)
|
||||
|
||||
Reference in New Issue
Block a user