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:
Polling interval in seconds
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

$ fluent-bit -i mem -t memory -o stdout -m '*'
Fluent Bit v1.x.x
* Copyright (C) 2019-2020 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
[2017/03/03 21:12:35] [ info] [engine] started
[0] memory: [1488543156, {""=>1016044, "Mem.used"=>841388, ""=>174656, ""=>2064380, "Swap.used"=>139888, ""=>1924492}]
[1] memory: [1488543157, {""=>1016044, "Mem.used"=>841420, ""=>174624, ""=>2064380, "Swap.used"=>139888, ""=>1924492}]
[2] memory: [1488543158, {""=>1016044, "Mem.used"=>841420, ""=>174624, ""=>2064380, "Swap.used"=>139888, ""=>1924492}]
[3] memory: [1488543159, {""=>1016044, "Mem.used"=>841420, ""=>174624, ""=>2064380, "Swap.used"=>139888, ""=>1924492}]

Configuration File

In your main configuration file append the following Input & Output sections:
Name mem
Tag memory
Name stdout
Match *
Last modified 1yr ago
Export as PDF
Copy link
Configuration Parameters
Getting Started
Command Line
Configuration File