coredns-ldap/metrics.go
2020-06-04 13:07:07 -05:00

16 lines
442 B
Go

package ldap
import (
"github.com/coredns/coredns/plugin"
"github.com/prometheus/client_golang/prometheus"
)
// requestCount exports a prometheus metric that is incremented every time a query is seen by the ldap plugin.
var requestCount = prometheus.NewCounterVec(prometheus.CounterOpts{
Namespace: plugin.Namespace,
Subsystem: "ldap",
Name: "request_count_total",
Help: "Counter of requests made.",
}, []string{"server"})