From 847e8ca95431d0ef23bf2d3ab04f787d59037be5 Mon Sep 17 00:00:00 2001 From: Frederic Leitenberger Date: Sun, 13 Jul 2025 19:33:59 +0200 Subject: [PATCH] fixed disk status - renamed from recovering to replacing --- collector/fixtures/proc/mdstat | 4 ++++ collector/mdadm_linux.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/collector/fixtures/proc/mdstat b/collector/fixtures/proc/mdstat index a19bf5e3..6058e7bf 100644 --- a/collector/fixtures/proc/mdstat +++ b/collector/fixtures/proc/mdstat @@ -57,4 +57,8 @@ md120 : active linear sda1[1] sdb1[0] md101 : active (read-only) raid0 sdb[2] sdd[1] sdc[0] 322560 blocks super 1.2 512k chunks +md42 : active raid1 sdb2[2](R) sdc[1] sda2[0] + 195310144 blocks [2/2] [UU] + [=>...................] recovery = 8.5% (16775552/195310144) finish=17.0min speed=259783K/sec + unused devices: diff --git a/collector/mdadm_linux.go b/collector/mdadm_linux.go index 6b92ab72..5a51acdb 100644 --- a/collector/mdadm_linux.go +++ b/collector/mdadm_linux.go @@ -153,7 +153,7 @@ func (c *mdadmCollector) Update(ch chan<- prometheus.Metric) error { prometheus.GaugeValue, float64(mdStat.DisksRecovering), mdStat.Name, - "recovering", + "replacing", ) ch <- prometheus.MustNewConstMetric( disksDesc,