Skip to content

Commit

Permalink
in_statsd: add examples for yaml configuration (#1339)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored Apr 17, 2024
1 parent 12fa475 commit 3156b41
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pipeline/inputs/statsd.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ The plugin supports the following configuration parameters:

Here is a configuration example.

{% tabs %}
{% tab title="fluent-bit.conf" %}
```python
[INPUT]
Name statsd
Expand All @@ -30,6 +32,21 @@ Here is a configuration example.
Name stdout
Match *
```
{% endtab %}

{% tab title="fluent-bit.yaml" %}
```yaml
pipeline:
inputs:
- name: statsd
listen: 0.0.0.0
port: 8125
outputs:
- name: stdout
match: '*'
```
{% endtab %}
{% endtabs %}
Now you can input metrics through the UDP port as follows:
Expand Down

0 comments on commit 3156b41

Please sign in to comment.