aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/kubernetes/metrics.go')
-rw-r--r--plugin/kubernetes/metrics.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/kubernetes/metrics.go b/plugin/kubernetes/metrics.go
index 7c6bfa1b0..07fe770c1 100644
--- a/plugin/kubernetes/metrics.go
+++ b/plugin/kubernetes/metrics.go
@@ -5,7 +5,9 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/kubernetes/object"
+
"github.com/prometheus/client_golang/prometheus"
+ "github.com/prometheus/client_golang/prometheus/promauto"
api "k8s.io/api/core/v1"
)
@@ -21,7 +23,7 @@ var (
// * cluster_ip
// * headless_with_selector
// * headless_without_selector
- DnsProgrammingLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{
+ DnsProgrammingLatency = promauto.NewHistogramVec(prometheus.HistogramOpts{
Namespace: plugin.Namespace,
Subsystem: pluginName,
Name: "dns_programming_duration_seconds",