File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff 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
123144To send data, this plugin requires ` <http> ` or ` <grpc> ` section.
You can’t perform that action at this time.
0 commit comments