Skip to content

Commit 110f7ab

Browse files
committed
WIP
1 parent e2d7900 commit 110f7ab

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ Refer [Config: Transport Section](https://docs.fluentd.org/configuration/transpo
108108

109109
### Input `opentelemetry_metrics` plugin
110110

111-
This plugin provides Fluentd's metrics that conforms to the OpenTelemetry Protocol.
111+
This plugin emits Fluentd's metric data that conforms to the OpenTelemetry Protocol.
112+
To output the data, it requires to use output `opentelemetry` plugin.
112113

113114
#### Root section
114115

@@ -118,6 +119,26 @@ This plugin provides Fluentd's metrics that conforms to the OpenTelemetry Protoc
118119
| emit_interval | time | Determine the rate to emit internal metrics as events | `60` |
119120
| metric_name_prefix | string | The prefix of metric name | `fluentd_` |
120121

122+
#### Example
123+
124+
```
125+
# Emit Fluentd metrics
126+
<source>
127+
@type opentelemetry_metrics
128+
tag opentelemetry.fluentd.metrics
129+
emit_interval 300s
130+
</source>
131+
132+
# Send Fluentd metrics to opentelemetry collector
133+
<match opentelemetry.fluentd.metrics>
134+
@type opentelemetry
135+
136+
<http>
137+
endpoint "https://127.0.0.1:4318"
138+
</http>
139+
</match>
140+
```
141+
121142
### Output `opentelemetry` plugin
122143

123144
To send data, this plugin requires `<http>` or `<grpc>` section.

0 commit comments

Comments
 (0)