Fix and simplify parsing of raid metrics
Fixes the wrong reporting of active+total disk metrics for inactive raids. Also simplifies the code and removes a couple of redundant comments.
This commit is contained in:
parent
faa7483215
commit
0400e437be
3 changed files with 51 additions and 85 deletions
|
|
@ -798,7 +798,7 @@ node_md_disks{device="md10"} 2
|
|||
node_md_disks{device="md11"} 2
|
||||
node_md_disks{device="md12"} 2
|
||||
node_md_disks{device="md127"} 2
|
||||
node_md_disks{device="md219"} 2
|
||||
node_md_disks{device="md219"} 0
|
||||
node_md_disks{device="md3"} 8
|
||||
node_md_disks{device="md4"} 2
|
||||
node_md_disks{device="md6"} 2
|
||||
|
|
@ -813,7 +813,7 @@ 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="md127"} 2
|
||||
node_md_disks_active{device="md219"} 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="md6"} 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue