Hi,
I am using Prometheus metric "container_memory_working_set_bytes" to display the memory usage graph in %. However, it is showing a higher value than what I can see when I use the linux command "free -h".
The actual usage using linux command:
Based on this, it is actually taking less than 19%.
Now I am using below query to get the % value for memory usage:
sum by (node) (container_memory_working_set_bytes{id="/",node="test-instance-e1"}) / sum by (node) (machine_memory_bytes{node="
test-instance-e1"}) * 100
But, this is showing 41%, which is not correct.
Can someone please guide me if there is any mistake in the Prometheus query or if I can usage some other metrics/query to get the current memory usage?
Thank You,
Anoop