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

[Feature Request] ipmitool dcmi power reading #1566

Closed
virtuallynathan opened this issue Aug 1, 2016 · 5 comments · Fixed by #15495
Closed

[Feature Request] ipmitool dcmi power reading #1566

virtuallynathan opened this issue Aug 1, 2016 · 5 comments · Fixed by #15495
Labels
feature request Requests for new plugin and for new features to existing plugins waiting for response waiting for response from contributor

Comments

@virtuallynathan
Copy link

virtuallynathan commented Aug 1, 2016

Feature Request

Add support for parsing ' ipmitool dcmi power reading'

Proposal:

add support for parsing ipmitool dcmi power reading in the IPMI plugin

Current behavior:

ipmitool dcmi power reading is not parsed or reported

Desired behavior:

parse and report ipmitool dcmi power reading

Use case:

gather server power usage from the server its self

Example output:

Instantaneous power reading:                   167 Watts
Minimum during sampling period:                124 Watts
Maximum during sampling period:                422 Watts
Average power reading over sample period:      156 Watts
IPMI timestamp:                           Mon Aug  1 21:22:51 2016
Sampling period:                          00699043 Seconds.
Power reading state is:                   activated
@victorhooi
Copy link

I would love to see this as well!

Any word on if this is on the roadmap?

@danielnelson danielnelson added the feature request Requests for new plugin and for new features to existing plugins label Mar 5, 2020
@danielnelson
Copy link
Contributor

It's not on the roadmap right now, but we would accept a pull request or you could do this with the exec input.

@brainrecall
Copy link

I would love to have this as well, as my system does not report power usage on the standard "sdr" output.

@psxde
Copy link

psxde commented Jan 10, 2023

I have used the exec input to parse dcmi output from supermicro server:

[[inputs.exec]]
  timeout = "5s"
  data_format = "influx"
  environment = [
    "server=x.x.x.x",
    "username=admin",
    "password=password",
    "interface=lan"
  ]
  commands = ['/bin/bash -c "ipmitool -I $interface -H $server -U $username -P $password -c dcmi power reading | grep -Po \"(\d+)(?=\sWatts)\" -m1 | sed \"s/.*/ipmi_sensor,server=${server},name=psu_power,unit=watts value=&/\""']

powersj added a commit to powersj/telegraf that referenced this issue Jun 12, 2024
Introduces the ability to specify some additional sensor paths to
collect. Specifically, dcmi power reading and chassis power status.

fixes: influxdata#1566
@powersj
Copy link
Contributor

powersj commented Jun 12, 2024

Hi,

Can one of you grab one of the artifacts from this PR: #15495 (comment)

You will need to update your IPMI sensor plugin config as follows:

[[inputs.ipmi_sensor]]
  sensors = ["sdr", "dcmi_power_reading"]

And let me know if that provides the new metrics?

Thanks

@powersj powersj added the waiting for response waiting for response from contributor label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins waiting for response waiting for response from contributor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants