Added DisksRecovering

This commit is contained in:
Finomosec 2024-10-17 00:14:20 +02:00
parent af65f85cb3
commit de82d1a4a4

View file

@ -148,6 +148,13 @@ func (c *mdadmCollector) Update(ch chan<- prometheus.Metric) error {
float64(mdStat.DisksTotal),
mdStat.Name,
)
ch <- prometheus.MustNewConstMetric(
disksDesc,
prometheus.GaugeValue,
float64(mdStat.DisksRecovering),
mdStat.Name,
"recovering",
)
ch <- prometheus.MustNewConstMetric(
disksDesc,
prometheus.GaugeValue,