aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/cache/setup.go')
-rw-r--r--plugin/cache/setup.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/plugin/cache/setup.go b/plugin/cache/setup.go
index 62c5c9d2c..97493eb77 100644
--- a/plugin/cache/setup.go
+++ b/plugin/cache/setup.go
@@ -8,7 +8,6 @@ import (
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
- "github.com/coredns/coredns/plugin/metrics"
"github.com/coredns/coredns/plugin/pkg/cache"
clog "github.com/coredns/coredns/plugin/pkg/log"
@@ -29,13 +28,6 @@ func setup(c *caddy.Controller) error {
return ca
})
- c.OnStartup(func() error {
- metrics.MustRegister(c,
- cacheSize, cacheHits, cacheMisses,
- cachePrefetches, cacheDrops, servedStale)
- return nil
- })
-
return nil
}