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

set generic metric names from moonshot exporter #107

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

ibrahimkk-moideen
Copy link
Collaborator

Update metric names from moonshot exporter to generic names as seen in other models.

Results:

# HELP redfish_moonshot_switch_power_supply_output Power supply output in watts
# TYPE redfish_moonshot_switch_power_supply_output gauge
redfish_moonshot_switch_power_supply_output{name="switch-a-PowerMetrics"} 54
redfish_moonshot_switch_power_supply_output{name="switch-b-PowerMetrics"} 53
# HELP redfish_moonshot_switch_status Current Moonshot switch status 1 = OK, 0 = BAD
# TYPE redfish_moonshot_switch_status gauge
redfish_moonshot_switch_status{name="Switch A",serialNumber="##redacted##"} 1
redfish_moonshot_switch_status{name="Switch B",serialNumber="##redacted##"} 1
# HELP redfish_moonshot_switch_thermal_sensor_status Current sensor status 1 = OK, 0 = BAD
# TYPE redfish_moonshot_switch_thermal_sensor_status gauge
redfish_moonshot_switch_thermal_sensor_status{name="switch-a-ThermalMetrics"} 1
redfish_moonshot_switch_thermal_sensor_status{name="switch-b-ThermalMetrics"} 1
# HELP redfish_moonshot_switch_thermal_sensor_temperature Current sensor temperature reading in Celsius
# TYPE redfish_moonshot_switch_thermal_sensor_temperature gauge
redfish_moonshot_switch_thermal_sensor_temperature{name="switch-a-ThermalMetrics"} 33
redfish_moonshot_switch_thermal_sensor_temperature{name="switch-b-ThermalMetrics"} 32
# HELP redfish_power_supply_output Power supply output in watts
# TYPE redfish_power_supply_output gauge
redfish_power_supply_output{name="Power Supply 1",sparePartNumber="794734-001"} 566
redfish_power_supply_output{name="Power Supply 2",sparePartNumber="794734-001"} 546
redfish_power_supply_output{name="Power Supply 3",sparePartNumber="794734-001"} 563
redfish_power_supply_output{name="Power Supply 4",sparePartNumber="794734-001"} 546
# HELP redfish_power_supply_status Current power supply status 1 = OK, 0 = BAD
# TYPE redfish_power_supply_status gauge
redfish_power_supply_status{name="Power Supply 1",sparePartNumber="794734-001"} 1
redfish_power_supply_status{name="Power Supply 2",sparePartNumber="794734-001"} 1
redfish_power_supply_status{name="Power Supply 3",sparePartNumber="794734-001"} 1
redfish_power_supply_status{name="Power Supply 4",sparePartNumber="794734-001"} 1
# HELP redfish_power_supply_total_capacity Total output capacity of all the power supplies
# TYPE redfish_power_supply_total_capacity gauge
redfish_power_supply_total_capacity 5752
# HELP redfish_power_supply_total_consumed Total output of all power supplies in watts
# TYPE redfish_power_supply_total_consumed gauge
redfish_power_supply_total_consumed 2221
# HELP redfish_thermal_fan_speed Current fan speed in the unit of percentage, possible values are 0 - 100
# TYPE redfish_thermal_fan_speed gauge
redfish_thermal_fan_speed{name="Fan 1"} 74
redfish_thermal_fan_speed{name="Fan 2"} 74
redfish_thermal_fan_speed{name="Fan 3"} 74
redfish_thermal_fan_speed{name="Fan 4"} 74
redfish_thermal_fan_speed{name="Fan 5"} 74
# HELP redfish_thermal_fan_status Current fan status 1 = OK, 0 = BAD
# TYPE redfish_thermal_fan_status gauge
redfish_thermal_fan_status{name="Fan 1"} 1
redfish_thermal_fan_status{name="Fan 2"} 1
redfish_thermal_fan_status{name="Fan 3"} 1
redfish_thermal_fan_status{name="Fan 4"} 1
redfish_thermal_fan_status{name="Fan 5"} 1
# HELP redfish_thermal_sensor_status Current sensor status 1 = OK, 0 = BAD
# TYPE redfish_thermal_sensor_status gauge
redfish_thermal_sensor_status{name="Inlet Temp"} 1
redfish_thermal_sensor_status{name="Net Brd In"} 1
redfish_thermal_sensor_status{name="Net Brd L Exh"} 1
redfish_thermal_sensor_status{name="Net Brd R Exh"} 1
redfish_thermal_sensor_status{name="Network Zone"} 1
redfish_thermal_sensor_status{name="Power Supply 1"} 1
redfish_thermal_sensor_status{name="Power Supply 2"} 1
redfish_thermal_sensor_status{name="Power Supply 3"} 1
redfish_thermal_sensor_status{name="Power Supply 4"} 1
redfish_thermal_sensor_status{name="Sys Board Exh"} 1
redfish_thermal_sensor_status{name="iLO Board Exh"} 1
redfish_thermal_sensor_status{name="iLO Board L In"} 1
redfish_thermal_sensor_status{name="iLO Board R In"} 1
redfish_thermal_sensor_status{name="iLO Zone"} 1
# HELP redfish_thermal_sensor_temperature Current sensor temperature reading in Celsius
# TYPE redfish_thermal_sensor_temperature gauge
redfish_thermal_sensor_temperature{name="Inlet Temp"} 19
redfish_thermal_sensor_temperature{name="Net Brd In"} 30
redfish_thermal_sensor_temperature{name="Net Brd L Exh"} 34
redfish_thermal_sensor_temperature{name="Net Brd R Exh"} 35
redfish_thermal_sensor_temperature{name="Network Zone"} 38
redfish_thermal_sensor_temperature{name="Power Supply 1"} 26
redfish_thermal_sensor_temperature{name="Power Supply 2"} 26
redfish_thermal_sensor_temperature{name="Power Supply 3"} 28
redfish_thermal_sensor_temperature{name="Power Supply 4"} 30
redfish_thermal_sensor_temperature{name="Sys Board Exh"} 27
redfish_thermal_sensor_temperature{name="iLO Board Exh"} 33
redfish_thermal_sensor_temperature{name="iLO Board L In"} 32
redfish_thermal_sensor_temperature{name="iLO Board R In"} 32
redfish_thermal_sensor_temperature{name="iLO Zone"} 36
# HELP up was the last scrape of fishymetrics successful.
# TYPE up gauge
up 1

Copy link
Collaborator

@scriptinperl scriptinperl left a comment

Choose a reason for hiding this comment

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

Confirmed the changed metrics names on my local environment. LGTM!

@ibrahimkk-moideen ibrahimkk-moideen merged commit 1334ca7 into main Nov 13, 2024
3 checks passed
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.

Moonshot exporter to set metric names similar to other hardwares
2 participants