Skip to content

Commit 28eae0d

Browse files
authored
in_netif: add examples for yaml configuration (#1327)
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent a4296c1 commit 28eae0d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pipeline/inputs/network-io-metrics.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Fluent Bit v1.x.x
4141

4242
In your main configuration file append the following _Input_ & _Output_ sections:
4343

44+
{% tabs %}
45+
{% tab title="fluent-bit.conf" %}
4446
```python
4547
[INPUT]
4648
Name netif
@@ -52,6 +54,23 @@ In your main configuration file append the following _Input_ & _Output_ sections
5254
Name stdout
5355
Match *
5456
```
57+
{% endtab %}
58+
59+
{% tab title="fluent-bit.yaml" %}
60+
```yaml
61+
pipeline:
62+
inputs:
63+
- name: netif
64+
tag: netif
65+
interval_sec: 1
66+
interval_nsec: 0
67+
interface: eth0
68+
outputs:
69+
- name: stdout
70+
match: '*'
71+
```
72+
{% endtab %}
73+
{% endtabs %}
5574
5675
Note: Total interval \(sec\) = Interval\_Sec + \(Interval\_Nsec / 1000000000\).
5776

0 commit comments

Comments
 (0)