The disk input plugin is a Fluent Bit input extension that periodically collects disk activity measurements and emits them as log events. This approach supports flexible event manipulation, while later processing can transform the data into metrics when required. section 3.2.1
Configure the plugin by choosing:
- interval_sec or interval_nsec to control how often measurements are pulled. section 3.2.1
- An explicit tag, such as book_vm_disk, to support filtering and distinguish disk events. section 3.2.1
- An output destination, such as stdout with match *, for inspecting collected events. section 3.2.1
Basic disk collection
Add an input block with name disk, interval_sec 5, and tag book_vm_disk; pair it with stdout matching all records, then run fluent-bit -c chapter3/fluentbit/os-monitoring-basic.conf. section 3.2.1
Listing 3.1 Performing basic OS monitoring
[INPUT] name disk #1 interval_sec 5 tag book_vm_disk [INPUT] name cpu #2 interval_sec 5 tag book_vm_cpu [INPUT] name mem #3 interval_sec 5 tag book_vm_memory [INPUT] name netif #4 interval_sec 5 #interface eth0 #5 tag book_vm_network [OUTPUT] name stdout match * #6
Inspect the complete configuration alongside CPU, memory, and network-interface inputs to see the disk plugin in a basic OS-monitoring pipeline. section 3.2.1
