Maintaining the systems that run your applications may require that you monitor the performance of your Linux servers, and monitoring memory consumption is an important metric to ensure performance of your systems. Having constant and reliable data on the use of system memory will help you to avoid outages and help with capacity planning.

To learn more about Linux memory consumption and the explanation between the difference of used and actual RAM usage, check out this great site: Linux Ate my Ram.

Why use the Mem Telegraf Plugin?

The Mem Telegraf plugin collects system memory metrics to help you maintain the performance of your Linux servers. It is an important metric which — when paired with other metrics like CPU, Disk usage, DiskIO from Telegraf — enables you to start building a complete picture of your infrastructure.

How to use the Mem Telegraf Plugin

Collecting metrics with the Mem Telegraf Plugin is simple; just install and start collecting the metrics in your InfluxDB instance. There are no special confirmations for this plugin.

Key Mem metrics to use for monitoring

Some of the important Mem metrics that you should proactively monitor include:

  • active (integer, Darwin, FreeBSD, Linux, OpenBSD)
  • available (integer)
  • available_percent (float)
  • buffered (integer, FreeBSD, Linux)
  • cached (integer, FreeBSD, Linux, OpenBSD)
  • commit_limit (integer, Linux)
  • committed_as (integer, Linux)
  • dirty (integer, Linux)
  • free (integer, Darwin, FreeBSD, Linux, OpenBSD)
  • high_free (integer, Linux)
  • high_total (integer, Linux)
  • huge_pages_free (integer, Linux)
  • huge_page_size (integer, Linux)
  • huge_pages_total (integer, Linux)
  • inactive (integer, Darwin, FreeBSD, Linux, OpenBSD)
  • laundry (integer, FreeBSD)
  • low_free (integer, Linux)
  • low_total (integer, Linux)
  • mapped (integer, Linux)
  • page_tables (integer, Linux)
  • shared (integer, Linux)
  • slab (integer, Linux)
  • sreclaimable (integer, Linux)
  • sunreclaim (integer, Linux)
  • swap_cached (integer, Linux)
  • swap_free (integer, Linux)
  • swap_total (integer, Linux)
  • total (integer)
  • used (integer)
  • used_percent (float)
  • vmalloc_chunk (integer, Linux)
  • vmalloc_total (integer, Linux)
  • vmalloc_used (integer, Linux)
  • wired (integer, Darwin, FreeBSD, OpenBSD)
  • write_back (integer, Linux)
  • write_back_tmp (integer, Linux)

For more information, please check out the documentation.

Project URL   Documentation

Related Resources

CPU Telegraf Plugin

The CPU Telegraf Plugin gathers metrics on the system CPU that you can store in InfluxDB.

DiskIO Telegraf Plugin

DiskIO Telegraf Plugin gathers the read/write metrics of a disk to measure the performance of storage devices.

Kernel Telegraf Plugin

The Kernel Telegraf Input Plugin gathers kernel statistics from /proc/stat and stores them in your InfluxDB instance.

Scroll to Top