hubblo-org / scaphandre

⚡ Energy consumption metrology agent. Let "scaph" dive and bring back the metrics that will help you make your systems and applications more sustainable !
Apache License 2.0
1.57k stars 104 forks source link

Get server consumption since boot up #266

Open Louan-Robert opened 1 year ago

Louan-Robert commented 1 year ago

Problem

Hi,

I am working with scaphandre and prometheus and was wondering if there was a way to get a server power consumption since boot up with a query like scaph_process_power_consumption_microwatts that would give me details about processes consumption. If I'm correct, microwatts queries only return the server's power consumption at the instant of the query.

Thanks for the help !

Louan-Robert commented 1 year ago

Update

I found a metric that fits my needs, scaph_host_energy_microjoules gives a counter that represents a server's consumption in microjoules.