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

Order-of-magnitude problem with the scaph_process_power_consumption_microwatts in v1.0 #378

Open
malinvaudpaul opened this issue Apr 15, 2024 · 0 comments
Labels
bug Something isn't working
Projects

Comments

@malinvaudpaul
Copy link

Bug description

As those metrics are expressed in microwatts, conversion to Watts is done by divide the value by 1000000 (first figure). By doing this, we recover values for processes (scaph_process_power_consumption_microwatts) returned with v1.0 abnormally low. By only divide this v1.0 metric by 10000 (second figure) only, we see values that are more consistent, not only with the power of the host, but also with what v0.5 returned.

To Reproduce

Run Scaphandre v1.0 and Scaphandre v0.5 in the same time (with prometheus exporter). Get scaph_host_power_microwatts and scaph_process_power_consumption_microwatts metrics. Sum on all processes for v1.0 and v0.5 (I was doing this with the function sum() of Grafana).

Expected behavior

That the second figure is the one obtained without needing to readjust.

Screenshots

issue-ordre-grandeur-initial

issue-ordre-grandeur

Environment

CentOS Linux 7 but same problem on a Fedora 39 laptop.

Thanks,

@malinvaudpaul malinvaudpaul added the bug Something isn't working label Apr 15, 2024
@bpetit bpetit added this to Triage in General Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triage
General
Triage
Development

No branches or pull requests

1 participant