Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support for alternative ways to collect the power usage data #140

Closed
arthurzenika opened this issue Nov 25, 2021 · 3 comments
Closed

Support for alternative ways to collect the power usage data #140

arthurzenika opened this issue Nov 25, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@arthurzenika
Copy link
Contributor

Problem

It seems that scaphandre is focused on one way of collecting the power consumption right now through the Powercap_rapl kernel capabilities.

Could there be a way to collect though other commands and maybe have some approximations of which process is consuming power through custom code ?

In our use case, we have a bunch of "old" poweredge dell servers, and I know that we can extract some wattage indicators through some omreport (proprietary?) command (see https://serverfault.com/questions/736068/how-do-i-get-the-power-consumption-of-a-dell-poweredge-server-on-the-cli). We used to graph these using a munin plugin, and then at some point we also had a proof-of-concept grafana dashboard working with metrics collected using that same plugin but that would send the metric to graphite using saltstack as an orchestrator. I'm sure we could have a prometheus exporter that does something similar ?

Would this be in the scope of the project ? I think we could even extend the collecting to network devices that might have some power indicators in SNMP for example.

Solution

see above

@bpetit
Copy link
Contributor

bpetit commented Jul 20, 2022

Hi @arthurzenika ,

Thanks for starting this thread. Here is an overview of what has been started or imagined so far, apart from Powercap+RAPL as a source :

What we could imagine :

  • new sensor : querying omreport if it is available/installed on the machine (this kind of project makes me think this is possible)
  • new sensor : querying SNMP, but this needs some thinking as scaphandre is first intended to give metrics about the machine where it runs

Does one of those items ring a bell ? What do you think ?

@arthurzenika
Copy link
Contributor Author

@bpetit thanks for taking a look at this. Yes these approaches seem to correspond to what I initially imagined. Indeed getting stats from other tools might have a "degraded" approach or just "you can see the global consumption but not the details by process/container/etc".

@bpetit
Copy link
Contributor

bpetit commented May 18, 2023

linking this issue with #289 and #24 as well.

Latest developments on hardware inventory may help for further work on power estimation models for other components than cpu/ram, especially hard drives.

@hubblo-org hubblo-org locked and limited conversation to collaborators Mar 6, 2024
@bpetit bpetit converted this issue into discussion #371 Mar 6, 2024
@bpetit bpetit added this to General Jun 19, 2024
@bpetit bpetit moved this to Done in General Jun 19, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants