mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-21 12:16:36 +00:00
Merge pull request #1025 from alexwiedermann/mscluster-fix-wrong-metric
fix: remove UpdateDomain (mscluster-resourcegroup)
This commit is contained in:
@@ -26,7 +26,6 @@ type MSCluster_ResourceGroupCollector struct {
|
|||||||
Priority *prometheus.Desc
|
Priority *prometheus.Desc
|
||||||
ResiliencyPeriod *prometheus.Desc
|
ResiliencyPeriod *prometheus.Desc
|
||||||
State *prometheus.Desc
|
State *prometheus.Desc
|
||||||
UpdateDomain *prometheus.Desc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func newMSCluster_ResourceGroupCollector() (Collector, error) {
|
func newMSCluster_ResourceGroupCollector() (Collector, error) {
|
||||||
@@ -132,7 +131,6 @@ type MSCluster_ResourceGroup struct {
|
|||||||
Priority uint
|
Priority uint
|
||||||
ResiliencyPeriod uint
|
ResiliencyPeriod uint
|
||||||
State uint
|
State uint
|
||||||
UpdateDomain uint
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Collect sends the metric values for each metric
|
// Collect sends the metric values for each metric
|
||||||
@@ -237,13 +235,6 @@ func (c *MSCluster_ResourceGroupCollector) Collect(ctx *ScrapeContext, ch chan<-
|
|||||||
v.Name,
|
v.Name,
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
|
||||||
c.UpdateDomain,
|
|
||||||
prometheus.GaugeValue,
|
|
||||||
float64(v.UpdateDomain),
|
|
||||||
v.Name,
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user