Skip to content

Commit 73c3b43

Browse files
authored
Cleaned up layout to standardize file formating and shell usage. Fixes #1786. (#1787)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 439d57a commit 73c3b43

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

pipeline/inputs/cpu-metrics.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ In order to get the statistics of the CPU usage of your system, you can run the
3939

4040
You can run this filter from the command line using a command like the following:
4141

42-
```bash
43-
build/bin/fluent-bit -i cpu -t my_cpu -o stdout -m '*'
42+
```shell
43+
$ build/bin/fluent-bit -i cpu -t my_cpu -o stdout -m '*'
4444
```
4545

4646
The command returns results similar to the following:
@@ -63,23 +63,9 @@ As described previously, the CPU input plugin gathers the overall usage every on
6363

6464
### Configuration file
6565

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

6868
{% tabs %}
69-
{% tab title="fluent-bit.conf" %}
70-
71-
```python
72-
[INPUT]
73-
Name cpu
74-
Tag my_cpu
75-
76-
[OUTPUT]
77-
Name stdout
78-
Match *
79-
```
80-
81-
{% endtab %}
82-
8369
{% tab title="fluent-bit.yaml" %}
8470

8571
```yaml
@@ -95,4 +81,17 @@ pipeline:
9581
```
9682
9783
{% endtab %}
98-
{% endtabs %}
84+
{% tab title="fluent-bit.conf" %}
85+
86+
```shell
87+
[INPUT]
88+
Name cpu
89+
Tag my_cpu
90+
91+
[OUTPUT]
92+
Name stdout
93+
Match *
94+
```
95+
96+
{% endtab %}
97+
{% endtabs %}

0 commit comments

Comments
 (0)