diff options
Diffstat (limited to 'plugin/autopath/metrics.go')
-rw-r--r-- | plugin/autopath/metrics.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/autopath/metrics.go b/plugin/autopath/metrics.go index a74a94f27..65a6cbd89 100644 --- a/plugin/autopath/metrics.go +++ b/plugin/autopath/metrics.go @@ -4,11 +4,12 @@ import ( "github.com/coredns/coredns/plugin" "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/promauto" ) var ( // autoPathCount is counter of successfully autopath-ed queries. - autoPathCount = prometheus.NewCounterVec(prometheus.CounterOpts{ + autoPathCount = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "autopath", Name: "success_total", |