Fix mdadm collector issues (#985)
* Send "Personality unknown" to debug, not info, remove unnecessary newline. * Add support for "linear" personality. * Always set number of active disks to 0 when a device is inactive. * Add total disks calculation to unknown personalites. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
55c32fcf02
commit
107e5dfecc
5 changed files with 29 additions and 10 deletions
|
|
@ -1022,6 +1022,7 @@ node_md_blocks{device="md00"} 4.186624e+06
|
|||
node_md_blocks{device="md10"} 3.14159265e+08
|
||||
node_md_blocks{device="md11"} 4.190208e+06
|
||||
node_md_blocks{device="md12"} 3.886394368e+09
|
||||
node_md_blocks{device="md120"} 2.095104e+06
|
||||
node_md_blocks{device="md126"} 1.855870976e+09
|
||||
node_md_blocks{device="md127"} 3.12319552e+08
|
||||
node_md_blocks{device="md219"} 7932
|
||||
|
|
@ -1038,6 +1039,7 @@ node_md_blocks_synced{device="md00"} 4.186624e+06
|
|||
node_md_blocks_synced{device="md10"} 3.14159265e+08
|
||||
node_md_blocks_synced{device="md11"} 4.190208e+06
|
||||
node_md_blocks_synced{device="md12"} 3.886394368e+09
|
||||
node_md_blocks_synced{device="md120"} 2.095104e+06
|
||||
node_md_blocks_synced{device="md126"} 1.855870976e+09
|
||||
node_md_blocks_synced{device="md127"} 3.12319552e+08
|
||||
node_md_blocks_synced{device="md219"} 7932
|
||||
|
|
@ -1054,9 +1056,10 @@ node_md_disks{device="md00"} 1
|
|||
node_md_disks{device="md10"} 2
|
||||
node_md_disks{device="md11"} 2
|
||||
node_md_disks{device="md12"} 2
|
||||
node_md_disks{device="md120"} 2
|
||||
node_md_disks{device="md126"} 2
|
||||
node_md_disks{device="md127"} 2
|
||||
node_md_disks{device="md219"} 0
|
||||
node_md_disks{device="md219"} 3
|
||||
node_md_disks{device="md3"} 8
|
||||
node_md_disks{device="md4"} 2
|
||||
node_md_disks{device="md6"} 2
|
||||
|
|
@ -1070,11 +1073,12 @@ node_md_disks_active{device="md00"} 1
|
|||
node_md_disks_active{device="md10"} 2
|
||||
node_md_disks_active{device="md11"} 2
|
||||
node_md_disks_active{device="md12"} 2
|
||||
node_md_disks_active{device="md120"} 2
|
||||
node_md_disks_active{device="md126"} 2
|
||||
node_md_disks_active{device="md127"} 2
|
||||
node_md_disks_active{device="md219"} 0
|
||||
node_md_disks_active{device="md3"} 8
|
||||
node_md_disks_active{device="md4"} 2
|
||||
node_md_disks_active{device="md4"} 0
|
||||
node_md_disks_active{device="md6"} 1
|
||||
node_md_disks_active{device="md7"} 3
|
||||
node_md_disks_active{device="md8"} 2
|
||||
|
|
@ -1086,6 +1090,7 @@ node_md_is_active{device="md00"} 1
|
|||
node_md_is_active{device="md10"} 1
|
||||
node_md_is_active{device="md11"} 1
|
||||
node_md_is_active{device="md12"} 1
|
||||
node_md_is_active{device="md120"} 1
|
||||
node_md_is_active{device="md126"} 1
|
||||
node_md_is_active{device="md127"} 1
|
||||
node_md_is_active{device="md219"} 0
|
||||
|
|
|
|||
|
|
@ -1022,6 +1022,7 @@ node_md_blocks{device="md00"} 4.186624e+06
|
|||
node_md_blocks{device="md10"} 3.14159265e+08
|
||||
node_md_blocks{device="md11"} 4.190208e+06
|
||||
node_md_blocks{device="md12"} 3.886394368e+09
|
||||
node_md_blocks{device="md120"} 2.095104e+06
|
||||
node_md_blocks{device="md126"} 1.855870976e+09
|
||||
node_md_blocks{device="md127"} 3.12319552e+08
|
||||
node_md_blocks{device="md219"} 7932
|
||||
|
|
@ -1038,6 +1039,7 @@ node_md_blocks_synced{device="md00"} 4.186624e+06
|
|||
node_md_blocks_synced{device="md10"} 3.14159265e+08
|
||||
node_md_blocks_synced{device="md11"} 4.190208e+06
|
||||
node_md_blocks_synced{device="md12"} 3.886394368e+09
|
||||
node_md_blocks_synced{device="md120"} 2.095104e+06
|
||||
node_md_blocks_synced{device="md126"} 1.855870976e+09
|
||||
node_md_blocks_synced{device="md127"} 3.12319552e+08
|
||||
node_md_blocks_synced{device="md219"} 7932
|
||||
|
|
@ -1054,9 +1056,10 @@ node_md_disks{device="md00"} 1
|
|||
node_md_disks{device="md10"} 2
|
||||
node_md_disks{device="md11"} 2
|
||||
node_md_disks{device="md12"} 2
|
||||
node_md_disks{device="md120"} 2
|
||||
node_md_disks{device="md126"} 2
|
||||
node_md_disks{device="md127"} 2
|
||||
node_md_disks{device="md219"} 0
|
||||
node_md_disks{device="md219"} 3
|
||||
node_md_disks{device="md3"} 8
|
||||
node_md_disks{device="md4"} 2
|
||||
node_md_disks{device="md6"} 2
|
||||
|
|
@ -1070,11 +1073,12 @@ node_md_disks_active{device="md00"} 1
|
|||
node_md_disks_active{device="md10"} 2
|
||||
node_md_disks_active{device="md11"} 2
|
||||
node_md_disks_active{device="md12"} 2
|
||||
node_md_disks_active{device="md120"} 2
|
||||
node_md_disks_active{device="md126"} 2
|
||||
node_md_disks_active{device="md127"} 2
|
||||
node_md_disks_active{device="md219"} 0
|
||||
node_md_disks_active{device="md3"} 8
|
||||
node_md_disks_active{device="md4"} 2
|
||||
node_md_disks_active{device="md4"} 0
|
||||
node_md_disks_active{device="md6"} 1
|
||||
node_md_disks_active{device="md7"} 3
|
||||
node_md_disks_active{device="md8"} 2
|
||||
|
|
@ -1086,6 +1090,7 @@ node_md_is_active{device="md00"} 1
|
|||
node_md_is_active{device="md10"} 1
|
||||
node_md_is_active{device="md11"} 1
|
||||
node_md_is_active{device="md12"} 1
|
||||
node_md_is_active{device="md120"} 1
|
||||
node_md_is_active{device="md126"} 1
|
||||
node_md_is_active{device="md127"} 1
|
||||
node_md_is_active{device="md219"} 0
|
||||
|
|
|
|||
|
|
@ -46,4 +46,7 @@ md219 : inactive sdb[2](S) sdc[1](S) sda[0](S)
|
|||
md00 : active raid0 xvdb[0]
|
||||
4186624 blocks super 1.2 256k chunks
|
||||
|
||||
md120 : active linear sda1[1] sdb1[0]
|
||||
2095104 blocks super 1.2 0k rounding
|
||||
|
||||
unused devices: <none>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue