title: How to measure the power consumption in a virtual machine on a cloud environment?
body: <p>I'm running a few Blockchain related containers in a cloud environment (Google Compute Engine). I want to measure the power/energy consumption of the containers or the instance that I'm running.</p>
  
  <p>There are tools like <a href="http://powerapi.org/" rel="nofollow noreferrer">powerapi</a> which is possible to do this in real infrastructure where it has access to real CPU counters. This should be possible by doing an estimation based on the CPU, Memory, and Network usage. There's one such model proposed in the <a href="https://www.researchgate.net/publication/254463770_Runtime_Monitoring_of_Software_Energy_Hotspots" rel="nofollow noreferrer">literature</a>. </p>
  
  <p>Is it theoretically possible to do this? If so is there already existing tools for this task.</p>