diff options
Diffstat (limited to 'plugin/health/setup.go')
-rw-r--r-- | plugin/health/setup.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/plugin/health/setup.go b/plugin/health/setup.go index 1f72cb245..630b11647 100644 --- a/plugin/health/setup.go +++ b/plugin/health/setup.go @@ -6,7 +6,6 @@ import ( "time" "github.com/coredns/coredns/plugin" - "github.com/coredns/coredns/plugin/metrics" "github.com/caddyserver/caddy" ) @@ -21,11 +20,6 @@ func setup(c *caddy.Controller) error { h := &health{Addr: addr, stop: make(chan bool), lameduck: lame} - c.OnStartup(func() error { - metrics.MustRegister(c, HealthDuration) - return nil - }) - c.OnStartup(h.OnStartup) c.OnRestart(h.OnFinalShutdown) c.OnFinalShutdown(h.OnFinalShutdown) |