Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proliant xl420 #35

Merged
merged 7 commits into from
Mar 8, 2024
Merged

Add proliant xl420 #35

merged 7 commits into from
Mar 8, 2024

Conversation

ibrahimkk-moideen
Copy link
Collaborator

Adding support for HP Proliant XL420 Server model #33

Test results:

# HELP up Was the last scrape of chassis monitor successful.
# TYPE up gauge
up 1
# HELP xl420_memory_status Current memory status 1 = OK, 0 = BAD
# TYPE xl420_memory_status gauge
xl420_memory_status{totalSystemMemoryGiB="128"} 1
# HELP xl420_physical_drive_status Current physical drive status 1 = OK, 0 = BAD, -1 = DISABLED
# TYPE xl420_physical_drive_status gauge
xl420_physical_drive_status{id="16",location="Redacted",name="HpSmartStorageDiskDrive",serialnumber="Redacted"} 1
xl420_physical_drive_status{id="16",location="Redacted",name="HpSmartStorageDiskDrive",serialnumber="Redacted"} 1
[***output truncated***]
xl420_physical_drive_status{id="27",location="Redacted",name="HpSmartStorageDiskDrive",serialnumber="Redacted"} 1
xl420_physical_drive_status{id="27",location="Redacted",name="HpSmartStorageDiskDrive",serialnumber="Redacted"} 1
# HELP xl420_power_supply_output Power supply output in watts
# TYPE xl420_power_supply_output gauge
xl420_power_supply_output{memberId="1",sparePartNumber="754381-001"} 172
xl420_power_supply_output{memberId="2",sparePartNumber="754381-001"} 238
# HELP xl420_power_supply_status Current power supply status 1 = OK, 0 = BAD
# TYPE xl420_power_supply_status gauge
xl420_power_supply_status{memberId="1",sparePartNumber="754381-001"} 1
xl420_power_supply_status{memberId="2",sparePartNumber="754381-001"} 1
# HELP xl420_power_supply_total_capacity Total output capacity of all the power supplies
# TYPE xl420_power_supply_total_capacity gauge
xl420_power_supply_total_capacity{memberId="0"} 1600
# HELP xl420_power_supply_total_consumed Total output of all power supplies in watts
# TYPE xl420_power_supply_total_consumed gauge
xl420_power_supply_total_consumed{memberId="0"} 410
# HELP xl420_thermal_fan_speed Current fan speed in the unit of percentage, possible values are 0 - 100
# TYPE xl420_thermal_fan_speed gauge
xl420_thermal_fan_speed{name="Fan 1"} 39
xl420_thermal_fan_speed{name="Fan 10"} 51
xl420_thermal_fan_speed{name="Fan 2"} 64
xl420_thermal_fan_speed{name="Fan 3"} 64
xl420_thermal_fan_speed{name="Fan 4"} 61
xl420_thermal_fan_speed{name="Fan 5"} 51
xl420_thermal_fan_speed{name="Fan 6"} 39
xl420_thermal_fan_speed{name="Fan 7"} 64
xl420_thermal_fan_speed{name="Fan 8"} 64
xl420_thermal_fan_speed{name="Fan 9"} 61
# HELP xl420_thermal_fan_status Current fan status 1 = OK, 0 = BAD
# TYPE xl420_thermal_fan_status gauge
xl420_thermal_fan_status{name="Fan 1"} 1
xl420_thermal_fan_status{name="Fan 10"} 1
xl420_thermal_fan_status{name="Fan 2"} 1
xl420_thermal_fan_status{name="Fan 3"} 1
xl420_thermal_fan_status{name="Fan 4"} 1
xl420_thermal_fan_status{name="Fan 5"} 1
xl420_thermal_fan_status{name="Fan 6"} 1
xl420_thermal_fan_status{name="Fan 7"} 1
xl420_thermal_fan_status{name="Fan 8"} 1
xl420_thermal_fan_status{name="Fan 9"} 1
# HELP xl420_thermal_sensor_status Current sensor status 1 = OK, 0 = BAD
# TYPE xl420_thermal_sensor_status gauge
xl420_thermal_sensor_status{name="01-Front Ambient"} 1
xl420_thermal_sensor_status{name="02-CPU 1"} 1
[***output truncated***]
xl420_thermal_sensor_status{name="46-HD Board"} 1
xl420_thermal_sensor_status{name="48-HD Board"} 1
# HELP xl420_thermal_sensor_temperature Current sensor temperature reading in Celsius
# TYPE xl420_thermal_sensor_temperature gauge
xl420_thermal_sensor_temperature{name="01-Front Ambient"} 19
xl420_thermal_sensor_temperature{name="02-CPU 1"} 40
[***output truncated***]
xl420_thermal_sensor_temperature{name="46-HD Board"} 32
xl420_thermal_sensor_temperature{name="48-HD Board"} 29

Adding support for HP DL360 Redfish responses from iLO4. #34

Test results:

# HELP dl360_disk_drive_status Current Disk Drive status 1 = OK, 0 = BAD
# TYPE dl360_disk_drive_status gauge
dl360_disk_drive_status{Id="0",location="Redacted",name="HpSmartStorageDiskDrive"} 1
dl360_disk_drive_status{Id="1",location="Redacted",name="HpSmartStorageDiskDrive"} 1
dl360_disk_drive_status{Id="2",location="Redacted",name="HpSmartStorageDiskDrive"} 1
dl360_disk_drive_status{Id="3",location="Redacted",name="HpSmartStorageDiskDrive"} 1
dl360_disk_drive_status{Id="4",location="Redacted",name="HpSmartStorageDiskDrive"} 1
dl360_disk_drive_status{Id="5",location="Redacted",name="HpSmartStorageDiskDrive"} 1
dl360_disk_drive_status{Id="6",location="Redacted",name="HpSmartStorageDiskDrive"} 1
dl360_disk_drive_status{Id="7",location="Redacted",name="HpSmartStorageDiskDrive"} 1
# HELP dl360_logical_drive_raid Current Logical Drive Raid
# TYPE dl360_logical_drive_raid gauge
dl360_logical_drive_raid{logicaldrivename="Redacted",name="HpSmartStorageLogicalDrive",raid="0",volumeuniqueidentifier="Redacted"} 1
# HELP dl360_power_supply_output Power supply output in watts
# TYPE dl360_power_supply_output gauge
dl360_power_supply_output{memberId="1",sparePartNumber="754377-001"} 116
dl360_power_supply_output{memberId="2",sparePartNumber="754377-001"} 0
# HELP dl360_power_supply_status Current power supply status 1 = OK, 0 = BAD
# TYPE dl360_power_supply_status gauge
dl360_power_supply_status{memberId="1",sparePartNumber="754377-001"} 1
dl360_power_supply_status{memberId="2",sparePartNumber="754377-001"} 1
# HELP dl360_power_supply_total_capacity Total output capacity of all the power supplies
# TYPE dl360_power_supply_total_capacity gauge
dl360_power_supply_total_capacity{memberId="0"} 500
# HELP dl360_power_supply_total_consumed Total output of all power supplies in watts
# TYPE dl360_power_supply_total_consumed gauge
dl360_power_supply_total_consumed{memberId="0"} 116
# HELP dl360_thermal_fan_speed Current fan speed in the unit of percentage, possible values are 0 - 100
# TYPE dl360_thermal_fan_speed gauge
dl360_thermal_fan_speed{name="Fan 1"} 19
dl360_thermal_fan_speed{name="Fan 2"} 15
dl360_thermal_fan_speed{name="Fan 3"} 19
dl360_thermal_fan_speed{name="Fan 4"} 19
dl360_thermal_fan_speed{name="Fan 5"} 21
dl360_thermal_fan_speed{name="Fan 6"} 27
dl360_thermal_fan_speed{name="Fan 7"} 27
# HELP dl360_thermal_fan_status Current fan status 1 = OK, 0 = BAD
# TYPE dl360_thermal_fan_status gauge
dl360_thermal_fan_status{name="Fan 1"} 1
dl360_thermal_fan_status{name="Fan 2"} 1
dl360_thermal_fan_status{name="Fan 3"} 1
dl360_thermal_fan_status{name="Fan 4"} 1
dl360_thermal_fan_status{name="Fan 5"} 1
dl360_thermal_fan_status{name="Fan 6"} 1
dl360_thermal_fan_status{name="Fan 7"} 1

@ibrahimkk-moideen ibrahimkk-moideen changed the title Add proliant xl420g9 Add proliant xl420 Mar 6, 2024
hpe/dl360/power.go Outdated Show resolved Hide resolved
hpe/xl420/drive.go Outdated Show resolved Hide resolved
hpe/dl360/exporter.go Outdated Show resolved Hide resolved
hpe/dl360/exporter.go Outdated Show resolved Hide resolved
hpe/xl420/exporter.go Outdated Show resolved Hide resolved
hpe/xl420/exporter.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@derrick-dacosta derrick-dacosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ibrahimkk-moideen ibrahimkk-moideen merged commit 3f9cc56 into main Mar 8, 2024
3 checks passed
@ibrahimkk-moideen ibrahimkk-moideen deleted the add_proliant_xl420g9 branch March 8, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DL360 Power & Drive metrics - Include support for iLO4 Add support for HP Proliant XL420 Gen9 Server model
2 participants