mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
17
plugin/traffic/xds/metrics.go
Normal file
17
plugin/traffic/xds/metrics.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Namespace: plugin.Namespace,
|
||||
Subsystem: "traffic",
|
||||
Name: "clusters_tracked",
|
||||
Help: "Gauge of tracked clusters.",
|
||||
}, []string{""})
|
||||
)
|
||||
Reference in New Issue
Block a user