aboutsummaryrefslogtreecommitdiff
path: root/plugin/autopath/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/autopath/metrics.go')
-rw-r--r--plugin/autopath/metrics.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugin/autopath/metrics.go b/plugin/autopath/metrics.go
index 3901fde3a..2d32793bf 100644
--- a/plugin/autopath/metrics.go
+++ b/plugin/autopath/metrics.go
@@ -18,12 +18,4 @@ var (
}, []string{})
)
-// OnStartupMetrics sets up the metrics on startup.
-func OnStartupMetrics() error {
- metricsOnce.Do(func() {
- prometheus.MustRegister(AutoPathCount)
- })
- return nil
-}
-
-var metricsOnce sync.Once
+var once sync.Once