* introduce metric naming test Signed-off-by: zounengren <zounengren@cmss.chinamobile.com> * Update metrics.go Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
17 lines
423 B
Go
17 lines
423 B
Go
package autopath
|
|
|
|
import (
|
|
"github.com/coredns/coredns/plugin"
|
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
)
|
|
|
|
var (
|
|
// autoPathCount is counter of successfully autopath-ed queries.
|
|
autoPathCount = prometheus.NewCounterVec(prometheus.CounterOpts{
|
|
Namespace: plugin.Namespace,
|
|
Subsystem: "autopath",
|
|
Name: "success_total",
|
|
Help: "Counter of requests that did autopath.",
|
|
}, []string{"server"})
|
|
)
|