aboutsummaryrefslogtreecommitdiff
path: root/plugin/dnssec/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/dnssec/metrics.go')
-rw-r--r--plugin/dnssec/metrics.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin/dnssec/metrics.go b/plugin/dnssec/metrics.go
index 20da38f36..e69dbf5c3 100644
--- a/plugin/dnssec/metrics.go
+++ b/plugin/dnssec/metrics.go
@@ -4,25 +4,26 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/prometheus/client_golang/prometheus"
+ "github.com/prometheus/client_golang/prometheus/promauto"
)
var (
// cacheSize is the number of elements in the dnssec cache.
- cacheSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
+ cacheSize = promauto.NewGaugeVec(prometheus.GaugeOpts{
Namespace: plugin.Namespace,
Subsystem: "dnssec",
Name: "cache_entries",
Help: "The number of elements in the dnssec cache.",
}, []string{"server", "type"})
// cacheHits is the count of cache hits.
- cacheHits = prometheus.NewCounterVec(prometheus.CounterOpts{
+ cacheHits = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: plugin.Namespace,
Subsystem: "dnssec",
Name: "cache_hits_total",
Help: "The count of cache hits.",
}, []string{"server"})
// cacheMisses is the count of cache misses.
- cacheMisses = prometheus.NewCounterVec(prometheus.CounterOpts{
+ cacheMisses = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: plugin.Namespace,
Subsystem: "dnssec",
Name: "cache_misses_total",