Add metrics

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-01-18 08:39:02 +01:00
parent 272823932f
commit b371eb679d
4 changed files with 27 additions and 1 deletions

View 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{""})
)