diff --git a/pipeline/inputs/collectd.md b/pipeline/inputs/collectd.md index d6322ce98..0ddfd82ea 100644 --- a/pipeline/inputs/collectd.md +++ b/pipeline/inputs/collectd.md @@ -17,7 +17,26 @@ The plugin supports the following configuration parameters: Here is a basic configuration example: -```python +{% tabs %} +{% tab title="fluent-bit.yaml" %} + +```yaml +pipeline: + inputs: + - name: collectd + listen: 0.0.0.0 + port: 25826 + typesdb: '/user/share/collectd/types.db,/etc/collectd/custom.db' + + outputs: + - name: stdout + match: '*' +``` + +{% endtab %} +{% tab title="fluent-bit.conf" %} + +```text [INPUT] Name collectd Listen 0.0.0.0 @@ -29,6 +48,9 @@ Here is a basic configuration example: Match * ``` +{% endtab %} +{% endtabs %} + With this configuration, Fluent Bit listens to `0.0.0.0:25826`, and outputs incoming datagram packets to `stdout`. -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. +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. \ No newline at end of file