You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am using scaphandre in one of my projects and encountering some problems.
When comparing scaph_host_energy_microjoules and applying prometheus rate() function to scaph_host_power_microwatts, I am getting different results.
My understanding is that when applying the rate() function to scaph_host_energy_microjoules metric, the result is a graph in watt. So, the resulting graph should be the same as scaph_host_power_microwatts, but it is not.
Does this mean one of these metrics is more reliable than the other ? If so, which one should I use to monitor a server power consumption ?
Thanks !
The text was updated successfully, but these errors were encountered:
Without checking the source code, I guess that host_power is the instantaneous power, whereas energy is the amount of energy consumed since the last measurement. The instantaneous power is unprecise, because the actual power varies between two measurements, and that changes the energy consumption. Thus, the energy should be more reliable (even if #280 should be fixed to avoid some small errors in the energy values).
edit: OK so actually the code reads:
/// Returns a Record instance containing the power consumed between/// last and previous measurement, in microwatts.pubfn get_records_diff_power_microwatts(&self) -> Option<Record>{
so it's not the instantaneous power, but rather the average power consumed between now and the previous energy measurement. I'm not sure how that compares to the Grafana's rate function?
In any case, if I want to get the energy consumed by the server across a day, a week, etc. I would use sum(energy_microjoules) and convert it to a more human-friendly unit like kWh.
In our architecture, we use 2 prometheus instances for a better reliability. So having energy between previous measurement can lead to wrong values.
Is there a way to have a counter that gives a cumulative metric value ?
Hello, I am using scaphandre in one of my projects and encountering some problems.
When comparing
scaph_host_energy_microjoules
and applying prometheusrate()
function toscaph_host_power_microwatts
, I am getting different results.My understanding is that when applying the
rate()
function toscaph_host_energy_microjoules
metric, the result is a graph in watt. So, the resulting graph should be the same asscaph_host_power_microwatts
, but it is not.Does this mean one of these metrics is more reliable than the other ? If so, which one should I use to monitor a server power consumption ?
Thanks !
The text was updated successfully, but these errors were encountered: