mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
@@ -190,7 +190,7 @@ func (c *Client) receive(stream adsStream) error {
|
|||||||
a.SetClusterLoadAssignment(cluster.GetName(), nil)
|
a.SetClusterLoadAssignment(cluster.GetName(), nil)
|
||||||
}
|
}
|
||||||
log.Debugf("Cluster discovery processed with %d resources, version %q and nonce %q", len(resp.GetResources()), c.Version(cdsURL), c.Nonce(cdsURL))
|
log.Debugf("Cluster discovery processed with %d resources, version %q and nonce %q", len(resp.GetResources()), c.Version(cdsURL), c.Nonce(cdsURL))
|
||||||
ClusterGauge.WithLabelValues().Set(float64(len(resp.GetResources())))
|
ClusterGauge.Set(float64(len(resp.GetResources())))
|
||||||
// set our local administration and ack the reply. Empty version would signal NACK.
|
// set our local administration and ack the reply. Empty version would signal NACK.
|
||||||
c.SetNonce(cdsURL, resp.GetNonce())
|
c.SetNonce(cdsURL, resp.GetNonce())
|
||||||
c.SetVersion(cdsURL, resp.GetVersionInfo())
|
c.SetVersion(cdsURL, resp.GetVersionInfo())
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// ClusterGauge is the number of clusters we are currently tracking.
|
// ClusterGauge is the number of clusters we are currently tracking.
|
||||||
ClusterGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
ClusterGauge = prometheus.NewGauge(prometheus.GaugeOpts{
|
||||||
Namespace: plugin.Namespace,
|
Namespace: plugin.Namespace,
|
||||||
Subsystem: "traffic",
|
Subsystem: "traffic",
|
||||||
Name: "clusters_tracked",
|
Name: "clusters_tracked",
|
||||||
Help: "Gauge of tracked clusters.",
|
Help: "Gauge of tracked clusters.",
|
||||||
}, []string{""})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user