Skip to content

Commit 5171fb2

Browse files
authored
Fixing layout order and standardizing disk io metrics docs. Fixes #1788. (#1789)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 73c3b43 commit 5171fb2

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

pipeline/inputs/disk-io-metrics.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ In order to get disk usage from your system, you can run the plugin from the com
2323

2424
You can run the plugin from the command line:
2525

26-
```bash
27-
fluent-bit -i disk -o stdout
26+
```shell
27+
$ fluent-bit -i disk -o stdout
2828
```
2929

3030
Which returns information like the following:
@@ -45,24 +45,9 @@ Fluent Bit v1.x.x
4545

4646
### Configuration file
4747

48-
In your main configuration file append the following `Input` and `Output` sections:
48+
In your main configuration file append the following:
4949

5050
{% tabs %}
51-
{% tab title="fluent-bit.conf" %}
52-
53-
```python
54-
[INPUT]
55-
Name disk
56-
Tag disk
57-
Interval_Sec 1
58-
Interval_NSec 0
59-
[OUTPUT]
60-
Name stdout
61-
Match *
62-
```
63-
64-
{% endtab %}
65-
6651
{% tab title="fluent-bit.yaml" %}
6752

6853
```yaml
@@ -72,14 +57,30 @@ pipeline:
7257
tag: disk
7358
interval_sec: 1
7459
interval_nsec: 0
60+
7561
outputs:
7662
- name: stdout
7763
match: '*'
7864
```
7965
66+
{% endtab %}
67+
{% tab title="fluent-bit.conf" %}
68+
69+
```text
70+
[INPUT]
71+
Name disk
72+
Tag disk
73+
Interval_Sec 1
74+
Interval_NSec 0
75+
76+
[OUTPUT]
77+
Name stdout
78+
Match *
79+
```
80+
8081
{% endtab %}
8182
{% endtabs %}
8283

8384
Total interval (sec) = `Interval_Sec` + `(Interval_Nsec` / 1000000000)
8485

85-
For example: `1.5s` = `1s` + `500000000ns`
86+
For example: `1.5s` = `1s` + `500000000ns`

0 commit comments

Comments
 (0)