Node exporter doesn't report amount of failed disks in mdadm, probably the most useful metric for this collector.
mdstat:
Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]
md5 : active raid5 sda1[5] sdc1[0] sdb1[4](F) sdd1[1]
8790400512 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [UUU_]
md1 : active raid1 sde1[0] sdf1[1]
58581824 blocks super 1.2 [2/2] [UU]
unused devices: <none>
current metrics:
# HELP node_md_blocks Total number of blocks on device.
# TYPE node_md_blocks gauge
node_md_blocks{device="md1"} 5.8581824e+07
node_md_blocks{device="md5"} 8.790400512e+09
# HELP node_md_blocks_synced Number of blocks synced on device.
# TYPE node_md_blocks_synced gauge
node_md_blocks_synced{device="md1"} 5.8581824e+07
node_md_blocks_synced{device="md5"} 8.790400512e+09
# HELP node_md_disks Total number of disks of device.
# TYPE node_md_disks gauge
node_md_disks{device="md1"} 2
node_md_disks{device="md5"} 4
# HELP node_md_disks_active Number of active disks of device.
# TYPE node_md_disks_active gauge
node_md_disks_active{device="md1"} 2
node_md_disks_active{device="md5"} 3
# HELP node_md_is_active Indicator whether the md-device is active or not.
# TYPE node_md_is_active gauge
node_md_is_active{device="md1"} 1
node_md_is_active{device="md5"} 1
P.S.: I do see the node_md_disks - node_md_disks_active calculation but not sure how should it work with hot spares.
Node exporter doesn't report amount of failed disks in mdadm, probably the most useful metric for this collector.
mdstat:
current metrics:
P.S.: I do see the
node_md_disks - node_md_disks_activecalculation but not sure how should it work with hot spares.