Description
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
Environment
CentOS Linux 7 but same problem on a Fedora 39 laptop.
Thanks,
Metadata
Assignees
Labels
Type
Projects
Status
Triage