<p>I want to query the total memory usage per node in the last week.</p>
<p>Here's the query I am using:</p>
<pre><code>sum(container_memory_working_set_bytes{container_name!=&quot;POD&quot;}) by (node)
</code></pre>
<p>Interestingly, the numbers returned are larger than the physical memory of the nodes.</p>
<p>I am using m5.large EC2 instances(2core, 8GB ram) for all my kubernetes nodes.</p>
<p>What would be the correct query to get total memory per node?</p>

laocius
<p>You are already using the best approximation for example according to <a href="https://www.bwplotka.dev/2019/golang-memory-monitoring/" rel="nofollow noreferrer">this blogpost</a>. The issue is that even depending on the software the respective container is running (Python, Golang, etc.) the way to measure the &quot;real&quot; memory usage differs.</p>
<p>But from what I understand <code>container_memory_working_set_bytes</code> is the best choice for getting data about individual containers.</p>
