aboutsummaryrefslogtreecommitdiff
path: root/plugin/autopath/metrics.go
blob: ae25ab79edd441bdd61036d7e0275c5b94fd3fcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package autopath

import (
	"github.com/coredns/coredns/plugin"

	"github.com/prometheus/client_golang/prometheus"
)

var (
	autoPathCount = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: plugin.Namespace,
		Subsystem: "autopath",
		Name:      "success_count_total",
		Help:      "Counter of requests that did autopath.",
	}, []string{"server"})
)