I am considering using Metricbeat to track my server capacity, but I'm confused by the memory reports.
My test server has this output:
root@sandbox:/etc/metricbeat# free -m
total used free shared buff/cache available
Mem: 3947 1599 1508 6 840 2095
Swap: 765 0 765
Metricbeat shows my "Used Memory" as "2.364GB" I can't figure out where that number is coming from. It doesn't seem to correspond to anything reported by the "free" command.
What I'm interested in seeing is the amount of memory is available for use by my application. As shown above that is 2095MB aka 2.044GB.
So my questions are:
What is Metricbeat putting into the "system.memory.used.bytes" field?
How can I get the available memory, which should exclude memory used for Buffers and Cache?
See also http://www.linuxatemyram.com/