How to query the total memory available to kubernetes nodes How to query the total memory available to kubernetes nodes kubernetes kubernetes

How to query the total memory available to kubernetes nodes


After a little more resarch I found (Kubernetes 1.19) kube_node_status_allocatable_memory_bytes suitable for the job.

Additionally the kube_node_status_capacity_cpu_cores could be used for the calculation of the CPU utlilisation.


Check out the official list of node metricsHere is example usage:

CPU: kube_node_status_capacity{resource="cpu", unit="core"}Memory: kube_node_status_capacity{resource="memory", unit="byte"}