mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
add physical disk "state" to megaraid_pd_info metric (#1226)
Signed-off-by: Matt Pursley <mpursley@gmail.com>
This commit is contained in:
parent
40dce45d8d
commit
7d150d5782
|
@ -148,12 +148,13 @@ def create_metrcis_of_physical_drive(physical_drive, detailed_info_array, contro
|
||||||
pd_baselabel = 'controller="{}",enclosure="{}",slot="{}"'.format(controller_index, enclosure,
|
pd_baselabel = 'controller="{}",enclosure="{}",slot="{}"'.format(controller_index, enclosure,
|
||||||
slot)
|
slot)
|
||||||
pd_info_label = pd_baselabel + \
|
pd_info_label = pd_baselabel + \
|
||||||
',disk_id="{}",interface="{}",media="{}",model="{}",DG="{}"'.format(
|
',disk_id="{}",interface="{}",media="{}",model="{}",DG="{}",state="{}"'.format(
|
||||||
str(physical_drive.get('DID')).strip(),
|
str(physical_drive.get('DID')).strip(),
|
||||||
str(physical_drive.get('Intf')).strip(),
|
str(physical_drive.get('Intf')).strip(),
|
||||||
str(physical_drive.get('Med')).strip(),
|
str(physical_drive.get('Med')).strip(),
|
||||||
str(physical_drive.get('Model')).strip(),
|
str(physical_drive.get('Model')).strip(),
|
||||||
str(physical_drive.get('DG')).strip())
|
str(physical_drive.get('DG')).strip(),
|
||||||
|
str(physical_drive.get('State')).strip())
|
||||||
|
|
||||||
drive_identifier = 'Drive /c' + str(controller_index) + '/e' + str(enclosure) + '/s' + str(
|
drive_identifier = 'Drive /c' + str(controller_index) + '/e' + str(enclosure) + '/s' + str(
|
||||||
slot)
|
slot)
|
||||||
|
|
Loading…
Reference in a new issue