mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user