Merge pull request #1025 from alexwiedermann/mscluster-fix-wrong-metric

fix: remove UpdateDomain (mscluster-resourcegroup)
This commit is contained in:
Ben Reedy
2022-07-23 09:57:03 +10:00
committed by GitHub

View File

@@ -26,7 +26,6 @@ type MSCluster_ResourceGroupCollector struct {
Priority *prometheus.Desc
ResiliencyPeriod *prometheus.Desc
State *prometheus.Desc
UpdateDomain *prometheus.Desc
}
func newMSCluster_ResourceGroupCollector() (Collector, error) {
@@ -132,7 +131,6 @@ type MSCluster_ResourceGroup struct {
Priority uint
ResiliencyPeriod uint
State uint
UpdateDomain uint
}
// Collect sends the metric values for each metric
@@ -237,13 +235,6 @@ func (c *MSCluster_ResourceGroupCollector) Collect(ctx *ScrapeContext, ch chan<-
v.Name,
)
ch <- prometheus.MustNewConstMetric(
c.UpdateDomain,
prometheus.GaugeValue,
float64(v.UpdateDomain),
v.Name,
)
}
return nil