added md disks in down state

Signed-off-by: Finomosec <github@meinebasis.de>
This commit is contained in:
Finomosec 2024-04-30 01:57:41 +02:00
parent 9572e7a07b
commit 21be96076a

View file

@ -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,