Skip to content

Added power supply redundancy info to chassis_collector.go#89

Open
be-kate wants to merge 1 commit intojenningsloy318:masterfrom
be-kate:add-power-redundancy
Open

Added power supply redundancy info to chassis_collector.go#89
be-kate wants to merge 1 commit intojenningsloy318:masterfrom
be-kate:add-power-redundancy

Conversation

@be-kate
Copy link

@be-kate be-kate commented Dec 9, 2024

Our project requires to pull information from redfish for Power Supply redundancy.
This feature exists as a part of PowerSupplyInfo group and can be pulled whenever it exists.

I have tested this changes on some HW that has and has not Redundancy info present. There include:
manufacturer="Dell Inc.",model="PowerEdge R640"
manufacturer="HPE",model="ProLiant DL360 Gen10"
manufacturer="Supermicro",model="AS -1114CS-TNR"
...

  • Whenever Redundancy present, result includes:
# HELP redfish_chassis_power_powersupply_redundancy_health powersupply redundancy health of chassis component,1(OK),2(Warning),3(Critical)
# TYPE redfish_chassis_power_powersupply_redundancy_health gauge
redfish_chassis_power_powersupply_redundancy_health{chassis_id="1",power_supply="PowerSupply Redundancy Group 1",redundancy_id="0",resource="power_supply"} 1
# HELP redfish_chassis_power_powersupply_redundancy_state powersupply redundancy state of chassis component,1(Enabled),2(Disabled),3(StandbyOffinline),4(StandbySpare),5(InTest),6(Starting),7(Absent),8(UnavailableOffline),9(Deferring),10(Quiesced),11(Updating)
# TYPE redfish_chassis_power_powersupply_redundancy_state gauge
redfish_chassis_power_powersupply_redundancy_state{chassis_id="1",power_supply="PowerSupply Redundancy Group 1",redundancy_id="0",resource="power_supply"} 1
  • If redundancy was not present, no redundancy was reported among data:
# HELP redfish_chassis_power_powersupply_power_output_watts measured output power, in Watts, of powersupply on this chassis
# TYPE redfish_chassis_power_powersupply_power_output_watts gauge
redfish_chassis_power_powersupply_power_output_watts{chassis_id="System.Embedded.1",power_supply="PS1 Status",power_supply_id="0",resource="power_supply"} 124.625
redfish_chassis_power_powersupply_power_output_watts{chassis_id="System.Embedded.1",power_supply="PS2 Status",power_supply_id="1",resource="power_supply"} 122.25
# HELP redfish_chassis_power_powersupply_state powersupply state of chassis component,1(Enabled),2(Disabled),3(StandbyOffinline),4(StandbySpare),5(InTest),6(Starting),7(Absent),8(UnavailableOffline),9(Deferring),10(Quiesced),11(Updating)
# TYPE redfish_chassis_power_powersupply_state gauge
redfish_chassis_power_powersupply_state{chassis_id="System.Embedded.1",power_supply="PS1 Status",power_supply_id="0",resource="power_supply"} 1
redfish_chassis_power_powersupply_state{chassis_id="System.Embedded.1",power_supply="PS2 Status",power_supply_id="1",resource="power_supply"} 1
# HELP redfish_chassis_power_voltage_state power voltage state of chassis component,1(Enabled),2(Disabled),3(StandbyOffinline),4(StandbySpare),5(InTest),6(Starting),7(Absent),8(UnavailableOffline),9(Deferring),10(Quiesced),11(Updating)
# TYPE redfish_chassis_power_voltage_state gauge
```
`

@be-kate be-kate force-pushed the add-power-redundancy branch from dec627d to 4bc6ed9 Compare December 9, 2024 21:06
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.

1 participant