Skip to content

Commit

Permalink
added md disks in down state
Browse files Browse the repository at this point in the history
Signed-off-by: Finomosec <github@meinebasis.de>
  • Loading branch information
Finomosec committed Apr 30, 2024
1 parent 9572e7a commit 21be960
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion collector/mdadm_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,13 @@ func (c *mdadmCollector) Update(ch chan<- prometheus.Metric) error {
float64(mdStat.DisksTotal),
mdStat.Name,
)

ch <- prometheus.MustNewConstMetric(
disksDesc,
prometheus.GaugeValue,
float64(mdStat.DisksDown),
mdStat.Name,
"down",
)
ch <- prometheus.MustNewConstMetric(
disksDesc,
prometheus.GaugeValue,
Expand Down

0 comments on commit 21be960

Please sign in to comment.