Browse Source

add physical disk "state" to megaraid_pd_info metric (#1226)

Signed-off-by: Matt Pursley <mpursley@gmail.com>
pull/1248/head
mpursley 6 years ago committed by Ben Kochie
parent
commit
7d150d5782
  1. 5
      text_collector_examples/storcli.py

5
text_collector_examples/storcli.py

@ -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,
slot)
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('Intf')).strip(),
str(physical_drive.get('Med')).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(
slot)

Loading…
Cancel
Save