diff options
author | 2017-10-15 19:39:24 +0200 | |
---|---|---|
committer | 2017-10-15 19:39:24 +0200 | |
commit | 70ee39844e631fad3d0e28bac1a158a21da5ade5 (patch) | |
tree | f3badd3436cadc0670e99f9b065866f9ef944922 /plugin/autopath/setup.go | |
parent | e34e2c251f236934b0d1928d521c35305dd3f389 (diff) | |
download | coredns-70ee39844e631fad3d0e28bac1a158a21da5ade5.tar.gz coredns-70ee39844e631fad3d0e28bac1a158a21da5ade5.tar.zst coredns-70ee39844e631fad3d0e28bac1a158a21da5ade5.zip |
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
Diffstat (limited to 'plugin/autopath/setup.go')
-rw-r--r-- | plugin/autopath/setup.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/autopath/setup.go b/plugin/autopath/setup.go index c5a39a870..42b4b317a 100644 --- a/plugin/autopath/setup.go +++ b/plugin/autopath/setup.go @@ -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) |