mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -04:00
plugin/autopath: per server metrics (#1730)
Implement per server metrics in autopath; also don't export the metric. Updated readme as well.
This commit is contained in:
committed by
Chris O'Haver
parent
d3f2d4a291
commit
5c3e436d71
@@ -8,14 +8,13 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
// Metrics for autopath.
|
||||
var (
|
||||
AutoPathCount = prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
autoPathCount = prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: plugin.Namespace,
|
||||
Subsystem: "autopath",
|
||||
Name: "success_count_total",
|
||||
Help: "Counter of requests that did autopath.",
|
||||
}, []string{})
|
||||
}, []string{"server"})
|
||||
)
|
||||
|
||||
var once sync.Once
|
||||
|
||||
Reference in New Issue
Block a user