fixed disk status - renamed from recovering to replacing

This commit is contained in:
Frederic Leitenberger 2025-07-13 19:33:59 +02:00
parent 55864873d7
commit 847e8ca954
2 changed files with 5 additions and 1 deletions

View file

@ -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: <none>

View file

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