Skip to content

Commit 8a2e622

Browse files
committed
added md disks in down state
1 parent 9572e7a commit 8a2e622

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

collector/mdadm_linux.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@ func (c *mdadmCollector) Update(ch chan<- prometheus.Metric) error {
131131
float64(mdStat.DisksTotal),
132132
mdStat.Name,
133133
)
134-
134+
ch <- prometheus.MustNewConstMetric(
135+
disksDesc,
136+
prometheus.GaugeValue,
137+
float64(mdStat.DisksDown),
138+
mdStat.Name,
139+
"down",
140+
)
135141
ch <- prometheus.MustNewConstMetric(
136142
disksDesc,
137143
prometheus.GaugeValue,

0 commit comments

Comments
 (0)