Memory | Kafka Documentation

The Memory metric group contains a single per-node metric; Memory Available.

Memory Available

This metric shows the amount of useable memory available for a node. As multiple services can run on a single node, low memory available may indicate an inappropriate node size.

You can also get this metric through the Monitoring API  with the query param metrics=n::memAvailable