Skip to content

Commit 7724fc1

Browse files
authored
Adding YAML examples to input plugin collectd doc page. Fixes #1778. (#1779)
* Adding YAML exmaples to input plugin collectd doc page. Fixes #1778. Signed-off-by: Eric D. Schabell <[email protected]> * Added missing close code tabs. Signed-off-by: Eric D. Schabell <[email protected]> --------- Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 121c1f7 commit 7724fc1

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

pipeline/inputs/collectd.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,26 @@ The plugin supports the following configuration parameters:
1717

1818
Here is a basic configuration example:
1919

20-
```python
20+
{% tabs %}
21+
{% tab title="fluent-bit.yaml" %}
22+
23+
```yaml
24+
pipeline:
25+
inputs:
26+
- name: collectd
27+
listen: 0.0.0.0
28+
port: 25826
29+
typesdb: '/user/share/collectd/types.db,/etc/collectd/custom.db'
30+
31+
outputs:
32+
- name: stdout
33+
match: '*'
34+
```
35+
36+
{% endtab %}
37+
{% tab title="fluent-bit.conf" %}
38+
39+
```text
2140
[INPUT]
2241
Name collectd
2342
Listen 0.0.0.0
@@ -29,6 +48,9 @@ Here is a basic configuration example:
2948
Match *
3049
```
3150

51+
{% endtab %}
52+
{% endtabs %}
53+
3254
With this configuration, Fluent Bit listens to `0.0.0.0:25826`, and outputs incoming datagram packets to `stdout`.
3355

34-
You must set the same `types.db` files that your `collectd` server uses. Otherwise, Fluent Bit might not be able to interpret the payload properly.
56+
You must set the same `types.db` files that your `collectd` server uses. Otherwise, Fluent Bit might not be able to interpret the payload properly.

0 commit comments

Comments
 (0)