Disk Usage

The disk input plugin, gathers the information about the disk usage of the running system every certain interval of time and reports them.

Configuration Parameters

The plugin supports the following configuration parameters:

Key Description
Interval_Sec Polling interval (seconds). default: 1
Interval_NSec Polling interval (nanosecond). default: 0
Dev_Name Device name to limit the target. (e.g. sda). If not set, in_disk gathers information from all of disks and partitions.

Getting Started

In order to get disk usage from your system, you can run the plugin from the command line or through the configuration file:

Command Line

  1. $ fluent-bit -i disk -o stdout
  2. Fluent-Bit v0.11.0
  3. Copyright (C) Treasure Data
  4. [2017/01/28 16:58:16] [ info] [engine] started
  5. [0] disk.0: [1485590297, {"read_size"=>0, "write_size"=>0}]
  6. [1] disk.0: [1485590298, {"read_size"=>0, "write_size"=>0}]
  7. [2] disk.0: [1485590299, {"read_size"=>0, "write_size"=>0}]
  8. [3] disk.0: [1485590300, {"read_size"=>0, "write_size"=>11997184}]

Configuration File

In your main configuration file append the following Input & Output sections:

  1. [INPUT]
  2. Name disk
  3. Tag disk
  4. Interval_Sec 1
  5. Interval_NSec 0
  6. [OUTPUT]
  7. Name stdout
  8. Match *

Note: Total interval (sec) = Interval_Sec + (Interval_Nsec / 1000000000).

e.g. 1.5s = 1s + 500000000ns