Skip to content

Commit a4741cf

Browse files
authored
in_opentelemetry: add examples for yaml configuration (fluent#1331)
Signed-off-by: Takahiro Yamashita <nokute78@gmail.com>
1 parent ca9faa1 commit a4741cf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pipeline/inputs/opentelemetry.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ The OpenTelemetry plugin currently supports the following telemetry data types:
3333

3434
A sample config file to get started will look something like the following:
3535

36+
37+
{% tabs %}
38+
{% tab title="fluent-bit.conf" %}
3639
```
3740
[INPUT]
3841
name opentelemetry
@@ -43,6 +46,21 @@ A sample config file to get started will look something like the following:
4346
name stdout
4447
match *
4548
```
49+
{% endtab %}
50+
51+
{% tab title="fluent-bit.yaml" %}
52+
```yaml
53+
pipeline:
54+
inputs:
55+
- name: opentelemetry
56+
listen: 127.0.0.1
57+
port: 4318
58+
outputs:
59+
- name: stdout
60+
match: '*'
61+
```
62+
{% endtab %}
63+
{% endtabs %}
4664
4765
With the above configuration, Fluent Bit will listen on port `4318` for data. You can now send telemetry data to the endpoints `/v1/metrics`, `/v1/traces`, and `/v1/logs` for metrics, traces, and logs respectively.
4866

0 commit comments

Comments
 (0)