You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Include | A space-separated list of containers to include ||
17
-
| Exclude | A space-separated list of containers to exclude ||
18
-
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
19
-
| path.containers | Used to specify the container directory if Docker is configured with a custom "data-root" directory. |`/var/lib/docker/containers`|
11
+
|`Interval_Sec`| Polling interval in seconds |`1`|
12
+
|`Include`| A space-separated list of containers to include.|_none_|
13
+
|`Exclude`| A space-separated list of containers to exclude.|_none_|
14
+
|`Threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
15
+
|`path.containers`| Used to specify the container directory if Docker is configured with a custom `data-root` directory. |`/var/lib/docker/containers`|
20
16
21
-
If you set neither `Include` nor `Exclude`, the plugin will try to get metrics from _all_ the running containers.
17
+
If you set neither `Include` nor `Exclude`, the plugin will try to get metrics from all running containers.
22
18
23
-
## Configuration File
19
+
## Configuration file
24
20
25
-
Here is an example configuration that collects metrics from two docker instances (`6bab19c3a0f9` and `14159be4ca2c`).
21
+
The following example configuration collects metrics from two docker instances (`6bab19c3a0f9` and `14159be4ca2c`).
26
22
27
23
{% tabs %}
28
24
{% tab title="fluent-bit.conf" %}
25
+
29
26
```python
30
27
[INPUT]
31
28
Name docker
@@ -34,9 +31,11 @@ Here is an example configuration that collects metrics from two docker instances
34
31
Name stdout
35
32
Match *
36
33
```
34
+
37
35
{% endtab %}
38
36
39
37
{% tab title="fluent-bit.yaml" %}
38
+
40
39
```yaml
41
40
pipeline:
42
41
inputs:
@@ -47,11 +46,12 @@ pipeline:
47
46
- name: stdout
48
47
match: '*'
49
48
```
49
+
50
50
{% endtab %}
51
51
{% endtabs %}
52
52
53
-
This configuration will produce records like below.
53
+
This configuration will produce records like the following:
0 commit comments