We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9572e7a commit 8a2e622Copy full SHA for 8a2e622
1 file changed
collector/mdadm_linux.go
@@ -131,7 +131,13 @@ func (c *mdadmCollector) Update(ch chan<- prometheus.Metric) error {
131
float64(mdStat.DisksTotal),
132
mdStat.Name,
133
)
134
-
+ ch <- prometheus.MustNewConstMetric(
135
+ disksDesc,
136
+ prometheus.GaugeValue,
137
+ float64(mdStat.DisksDown),
138
+ mdStat.Name,
139
+ "down",
140
+ )
141
ch <- prometheus.MustNewConstMetric(
142
disksDesc,
143
prometheus.GaugeValue,
0 commit comments