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

fix(alert): Update ipmi power cosumption threshold to 300 #98

Closed

Conversation

jneo8
Copy link
Contributor

@jneo8 jneo8 commented Nov 14, 2023

Change the ipmi_dcmi_power_cosumption_watts from 200 to 300

Fix #97

Change the ipmi_dcmi_power_cosumption_watts from 200 to 300
@jneo8 jneo8 requested review from a team, Pjack, aieri, agileshaw and rgildein November 14, 2023 07:32
Copy link
Contributor

@aieri aieri left a comment

Choose a reason for hiding this comment

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

300W really isn't much for a server... but establishing a sane default is difficult. Could we figure out the PSU power and alert when above a certain threshold (say 80%)?
For example on a Dell machine I have at least two methods available:

lshw, but the description may be unreliable

# lshw -class power
  *-power:0 UNCLAIMED       
       description: PWR SPLY,550W,RDNT,DELTA
       product: 06V43GA02
       vendor: DELL
       physical id: 1
       serial: CNDED0023E0ZKU
       capacity: 550mWh
  *-power:1 UNCLAIMED
       description: PWR SPLY,550W,RDNT,DELTA
       product: 06V43GA02
       vendor: DELL
       physical id: 2
       serial: CNDED0023E0ZQX
       capacity: 550mWh

or dmidecode, which should be fairly universal:

# dmidecode --type 39
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.

Handle 0x2700, DMI type 39, 22 bytes
System Power Supply
        Location: Not Specified
        Name: PWR SPLY,550W,RDNT,DELTA      
        Manufacturer: DELL
        Serial Number: CNDED0023E0ZKU
        Asset Tag: Not Specified
        Model Part Number: 06V43GA02
        Revision: Not Specified
        Max Power Capacity: 550 W
        Status: Present, Unknown
        Type: Unknown
        Input Voltage Range Switching: Unknown
        Plugged: Yes
        Hot Replaceable: Yes

Handle 0x2701, DMI type 39, 22 bytes
System Power Supply
        Location: Not Specified
        Name: PWR SPLY,550W,RDNT,DELTA      
        Manufacturer: DELL
        Serial Number: CNDED0023E0ZQX
        Asset Tag: Not Specified
        Model Part Number: 06V43GA02
        Revision: Not Specified
        Max Power Capacity: 550 W
        Status: Present, Unknown
        Type: Unknown
        Input Voltage Range Switching: Unknown
        Plugged: Yes
        Hot Replaceable: Yes

Also: is the metric really mispelled "cosumption"?

@jneo8
Copy link
Contributor Author

jneo8 commented Nov 15, 2023

Change to solution to canonical/prometheus-hardware-exporter#45

@jneo8 jneo8 closed this Nov 15, 2023
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.

Make alert ipmi_dcmi_power_cosumption_watts more standard.
2 participants