Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions pipeline/inputs/cpu-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ In order to get the statistics of the CPU usage of your system, you can run the

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

```bash
build/bin/fluent-bit -i cpu -t my_cpu -o stdout -m '*'
```shell
$ build/bin/fluent-bit -i cpu -t my_cpu -o stdout -m '*'
```

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

### Configuration file

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

{% tabs %}
{% tab title="fluent-bit.conf" %}

```python
[INPUT]
Name cpu
Tag my_cpu

[OUTPUT]
Name stdout
Match *
```

{% endtab %}

{% tab title="fluent-bit.yaml" %}

```yaml
Expand All @@ -95,4 +81,17 @@ pipeline:
```

{% endtab %}
{% endtabs %}
{% tab title="fluent-bit.conf" %}

```shell
[INPUT]
Name cpu
Tag my_cpu

[OUTPUT]
Name stdout
Match *
```

{% endtab %}
{% endtabs %}