Files
coredns/plugin/traffic/xds/metrics.go
Miek Gieben 503e0dc47a more fixes
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-02-03 20:45:26 +01:00

24 lines
584 B
Go

package xds
import (
"github.com/coredns/coredns/plugin"
"github.com/prometheus/client_golang/prometheus"
)
var (
// ClusterGauge is the number of clusters we are currently tracking.
ClusterGauge = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: plugin.Namespace,
Subsystem: "traffic",
Name: "clusters_tracked",
Help: "Gauge of tracked clusters.",
})
EndpointGauge = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: plugin.Namespace,
Subsystem: "traffic",
Name: "endpoints_tracked",
Help: "Gauge of all tracked endpoints.",
})
)