Skip to content

Commit 3894a34

Browse files
authored
Fixes and standarizing on YAML for docker log based metrics input plugin docs. Fixes #1792. (#1793)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 57097d0 commit 3894a34

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

pipeline/inputs/docker-metrics.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,6 @@ If you set neither `Include` nor `Exclude`, the plugin will try to get metrics f
2121
The following example configuration collects metrics from two docker instances (`6bab19c3a0f9` and `14159be4ca2c`).
2222

2323
{% tabs %}
24-
{% tab title="fluent-bit.conf" %}
25-
26-
```python
27-
[INPUT]
28-
Name docker
29-
Include 6bab19c3a0f9 14159be4ca2c
30-
[OUTPUT]
31-
Name stdout
32-
Match *
33-
```
34-
35-
{% endtab %}
36-
3724
{% tab title="fluent-bit.yaml" %}
3825

3926
```yaml
@@ -47,11 +34,23 @@ pipeline:
4734
match: '*'
4835
```
4936
37+
{% endtab %}
38+
{% tab title="fluent-bit.conf" %}
39+
40+
```text
41+
[INPUT]
42+
Name docker
43+
Include 6bab19c3a0f9 14159be4ca2c
44+
[OUTPUT]
45+
Name stdout
46+
Match *
47+
```
48+
5049
{% endtab %}
5150
{% endtabs %}
5251

5352
This configuration will produce records like the following:
5453

5554
```text
5655
[1] docker.0: [1571994772.00555745, {"id"=>"6bab19c3a0f9", "name"=>"postgresql", "cpu_used"=>172102435, "mem_used"=>5693400, "mem_limit"=>4294963200}]
57-
```
56+
```

0 commit comments

Comments
 (0)