Skip to content

Commit 68be52a

Browse files
authored
Merge pull request #1713 from fluent/lynettemiles/sc-136169/update-fluent-bit-docs-pipeline-inputs-disk
2 parents fa14b2b + a3ec4dd commit 68be52a

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

pipeline/inputs/disk-io-metrics.md

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
1-
# Disk I/O Metrics
1+
# Disk I/O metrics
22

3-
The **disk** input plugin, gathers the information about the disk throughput of the running system every certain interval of time and reports them.
3+
The _Disk_ input plugin gathers the information about the disk throughput of the running system every certain interval of time and reports them.
44

5-
The Disk I/O metrics plugin creates metrics that are log-based, such as JSON payload.
6-
For Prometheus-based metrics, see the Node Exporter Metrics input plugin.
5+
The _Disk I/O metrics_ plugin creates metrics that are log-based, such as JSON payload. For Prometheus-based metrics, see the Node Exporter Metrics input plugin.
76

8-
## Configuration Parameters
7+
## Configuration parameters
98

109
The plugin supports the following configuration parameters:
1110

1211
| Key | Description | Default |
1312
| :--- | :--- | :--- |
14-
| Interval\_Sec | Polling interval \(seconds\). | 1 |
15-
| Interval\_NSec | Polling interval \(nanosecond\). | 0 |
16-
| Dev\_Name | Device name to limit the target. \(e.g. sda\). If not set, _in\_disk_ gathers information from all of disks and partitions. | all disks |
17-
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
13+
| `Interval_Sec` | Polling interval (seconds). | `1` |
14+
| `Interval_NSec` | Polling interval (nanosecond). | `0` |
15+
| `Dev_Name` | Device name to limit the target (for example, `sda`). If not set, `in_disk` gathers information from all of disks and partitions. | all disks |
16+
| `Threaded` | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1817

19-
## Getting Started
18+
## Get started
2019

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

23-
### Command Line
22+
### Command line
23+
24+
You can run the plugin from the command line:
2425

2526
```bash
26-
$ fluent-bit -i disk -o stdout
27+
fluent-bit -i disk -o stdout
28+
```
29+
30+
Which returns information like the following:
31+
32+
```text
2733
Fluent Bit v1.x.x
2834
* Copyright (C) 2019-2020 The Fluent Bit Authors
2935
* Copyright (C) 2015-2018 Treasure Data
@@ -37,12 +43,13 @@ Fluent Bit v1.x.x
3743
[3] disk.0: [1485590300, {"read_size"=>0, "write_size"=>11997184}]
3844
```
3945

40-
### Configuration File
46+
### Configuration file
4147

42-
In your main configuration file append the following _Input_ & _Output_ sections:
48+
In your main configuration file append the following `Input` and `Output` sections:
4349

4450
{% tabs %}
4551
{% tab title="fluent-bit.conf" %}
52+
4653
```python
4754
[INPUT]
4855
Name disk
@@ -53,9 +60,11 @@ In your main configuration file append the following _Input_ & _Output_ sections
5360
Name stdout
5461
Match *
5562
```
63+
5664
{% endtab %}
5765

5866
{% tab title="fluent-bit.yaml" %}
67+
5968
```yaml
6069
pipeline:
6170
inputs:
@@ -67,10 +76,10 @@ pipeline:
6776
- name: stdout
6877
match: '*'
6978
```
79+
7080
{% endtab %}
7181
{% endtabs %}
7282
83+
Total interval (sec) = `Interval_Sec` + `(Interval_Nsec` / 1000000000)
7384

74-
Note: Total interval \(sec\) = Interval\_Sec + \(Interval\_Nsec / 1000000000\).
75-
76-
e.g. 1.5s = 1s + 500000000ns
85+
For example: `1.5s` = `1s` + `500000000ns`

0 commit comments

Comments
 (0)