Memory Metrics
The mem input plugin, gathers the information about the memory and swap usage of the running system every certain interval of time and reports the total amount of memory and the amount of free available.
Configuration Parameters
The plugin supports the following configuration parameters:
Key
Description
Default
Interval_Sec
Polling interval in seconds
1
PID
Specify the ID (PID) of a running process in the system. By default the plugin monitors the whole system but if this option is set, it will only monitor the given process ID.
Getting Started
In order to get memory and swap usage from your system, you can run the plugin from the command line or through the configuration file:
Command Line
Configuration File
In your main configuration file append the following Input & Output sections:
Last updated