liveBook · Manning

Disk input plugin

As explained in Logs and Telemetry

The disk input plugin is a Fluent Bit input extension that periodically collects disk activity measurements.

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

How Logs and Telemetry covers it

How deep it goes
Defines polling intervals, tags, and output routing, but does not detail disk fields or plugin internals.
Examples
Uses a five-second disk input tagged book_vm_disk within a combined CPU, memory, network, and stdout configuration.
What it assumes
Assumes familiarity with Fluent Bit input and output declarations while demonstrating interval and tag settings directly.
What you can do after
Operate a basic disk-monitoring input and inspect its emitted events through stdout.
How it connects
Connects disk measurements with Fluent Bit input plugins, log events, metrics transformation, tags, and stdout output.

This explainer was generated by Manning's knowledge graph from the text of Logs and Telemetry. The section links point to the parts of the book it draws on.