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:
Miek Gieben
2018-04-25 16:43:57 +01:00
committed by Chris O'Haver
parent d3f2d4a291
commit 5c3e436d71
4 changed files with 8 additions and 6 deletions

View File

@@ -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