Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add MemAvailable, Buffers and Cached from /proc/meminfo to in_mem plugin #467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pipeline/inputs/memory-metrics.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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.
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, buffer and free memory (as reported by [sysinfo](https://man7.org/linux/man-pages/man2/sysinfo.2.html)) and the memory available and cached (as reported by `/proc/meminfo`).

## Getting Started

Expand All @@ -17,10 +17,10 @@ Fluent Bit v1.x.x
* https://fluentbit.io

[2017/03/03 21:12:35] [ info] [engine] started
[0] memory: [1488543156, {"Mem.total"=>1016044, "Mem.used"=>841388, "Mem.free"=>174656, "Swap.total"=>2064380, "Swap.used"=>139888, "Swap.free"=>1924492}]
[1] memory: [1488543157, {"Mem.total"=>1016044, "Mem.used"=>841420, "Mem.free"=>174624, "Swap.total"=>2064380, "Swap.used"=>139888, "Swap.free"=>1924492}]
[2] memory: [1488543158, {"Mem.total"=>1016044, "Mem.used"=>841420, "Mem.free"=>174624, "Swap.total"=>2064380, "Swap.used"=>139888, "Swap.free"=>1924492}]
[3] memory: [1488543159, {"Mem.total"=>1016044, "Mem.used"=>841420, "Mem.free"=>174624, "Swap.total"=>2064380, "Swap.used"=>139888, "Swap.free"=>1924492}]
[0] memory: [1488543156, {"Mem.total"=>2037988, "Mem.used"=>1890616, "Mem.free"=>147372, "Mem.available"=>1236028, "Mem.buffer"=>92020, "Mem.cache"=>1374616}]
[1] memory: [1488543157, {"Mem.total"=>2037988, "Mem.used"=>1890616, "Mem.free"=>147372, "Mem.available"=>1236028, "Mem.buffer"=>92020, "Mem.cache"=>1374616}]
[2] memory: [1488543158, {"Mem.total"=>2037988, "Mem.used"=>1890616, "Mem.free"=>147372, "Mem.available"=>1236028, "Mem.buffer"=>92020, "Mem.cache"=>1374616}]
[3] memory: [1488543159, {"Mem.total"=>2037988, "Mem.used"=>1890616, "Mem.free"=>147372, "Mem.available"=>1236028, "Mem.buffer"=>92020, "Mem.cache"=>1374616}]
```

### Configuration File
Expand Down