You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| host| IP address or hostname of the target HTTP Server |127.0.0.1|
14
-
| http_user| Basic Auth Username ||
15
-
| http_passwd| Basic Auth Password. Requires HTTP_user to be set||
16
-
| port| TCP port of the target HTTP Server | 80 |
17
-
| proxy| Specify an HTTP Proxy. The expected format of this value is `http://HOST:PORT`. Note that HTTPS is **not** currently supported. It is recommended not to set this and to configure the [HTTP proxy environment variables](https://docs.fluentbit.io/manual/administration/http-proxy) instead as they support both HTTP and HTTPS. ||
18
-
| http2| Defines whether HTTP/2 protocol is enabled. This setting also supports the `force` option, which forces HTTP/2 over a plaintext connection. | On |
19
-
| grpc| Enables gRPC over an HTTP/2 connection. This setting applies to HTTP/2 only. |off|
20
-
| metrics_uri| Specify an optional HTTP URI for the target web server listening for metrics, e.g: /v1/metrics| / |
21
-
| logs_uri| Specify an optional HTTP URI for the target web server listening for logs, e.g: /v1/logs| / |
22
-
| traces_uri| Specify an optional HTTP URI for the target web server listening for traces, e.g: /v1/traces| / |
23
-
| header| Add a HTTP header key/value pair. Multiple headers can be set. ||
24
-
| log_response_payload| Log the response payload within the Fluent Bit log|false|
25
-
| logs_body_key| The log body key to look up in the log events body/message. Sets the Body field of the opentelemtry logs data model. |message|
26
-
| logs_trace_id_message_key| The trace id key to look up in the log events body/message. Sets the TraceId field of the opentelemtry logs data model. |traceId|
27
-
| logs_span_id_message_key| The span id key to look up in the log events body/message. Sets the SpanId field of the opentelemtry logs data model. |spanId|
28
-
| logs_severity_text_message_key| The severity text id key to look up in the log events body/message. Sets the SeverityText field of the opentelemtry logs data model. |severityText|
29
-
| logs_severity_number_message_key| The severity number id key to look up in the log events body/message. Sets the SeverityNumber field of the opentelemtry logs data model. |severityNumber|
30
-
| add_label| This allows you to add custom labels to all metrics exposed through the OpenTelemetry exporter. You may have multiple of these fields||
31
-
| compress| Set payload compression mechanism. Option available is 'gzip'||
32
-
| logs_observed_timestamp_metadata_key | Specify an ObservedTimestamp key to look up in the metadata. |$ObservedKey|
33
-
| logs_timestamp_metadata_key| Specify a Timestamp key to look up in the metadata. |$Timestamp |
34
-
| logs_severity_key_metadata_key | Specify a SeverityText key to look up in the metadata. |$SeverityText |
35
-
| logs_severity_number_metadata_key | Specify a SeverityNumber key to look up in the metadata. |$SeverityNumber |
36
-
| logs_trace_flags_metadata_key | Specify a Flags key to look up in the metadata. |$Flags |
37
-
| logs_span_id_metadata_key | Specify a SpanId key to look up in the metadata. |$SpanId |
38
-
| logs_trace_id_metadata_key | Specify a TraceId key to look up in the metadata. |$TraceId |
39
-
| logs_attributes_metadata_key | Specify an Attributes key to look up in the metadata. |$Attributes |
40
-
| workers| The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. |`0`|
41
-
42
-
## Getting Started
7
+
The OpenTelemetry plugin lets you take logs, metrics, and traces from Fluent Bit and submit them to an OpenTelemetry HTTP endpoint.
8
+
9
+
Only HTTP endpoints are supported.
10
+
11
+
| Key | Description | Default |
12
+
|-----|-------------|---------|
13
+
|`host`| IP address or hostname of the target HTTP server. |`127.0.0.1`|
14
+
|`http_user`| Basic Auth username. |_none_|
15
+
|`http_passwd`| Basic Auth password. Requires `HTTP_user` to be set. |_none_|
16
+
|`port`| TCP port of the target HTTP server. |`80`|
17
+
|`proxy`| Specify an HTTP Proxy. The expected format value is `http://HOST:PORT`. HTTPS isn't supported. It's recommended to configure the [HTTP proxy environment variables](https://docs.fluentbit.io/manual/administration/http-proxy) instead as they support both HTTP and HTTPS. |_none_|
18
+
|`http2`| Defines whether HTTP/2 protocol is enabled. This setting also supports the `force` option, which forces HTTP/2 over a plain text connection. |`On`|
19
+
|`grpc`| Enables gRPC over an HTTP/2 connection. This setting applies to HTTP/2 only. |`off`|
20
+
|`metrics_uri`| Specify an optional HTTP URI for the target web server listening for metrics. For example, `/v1/metrics`. |`/`|
21
+
|`logs_uri`| Specify an optional HTTP URI for the target web server listening for logs, For example, `/v1/logs`. |`/`|
22
+
|`traces_uri`| Specify an optional HTTP URI for the target web server listening for traces, For example, `/v1/traces`. |`/`|
23
+
|`header`| Add a HTTP header key/value pair. Multiple headers can be set. |_none_|
24
+
|`log_response_payload`| Log the response payload within the Fluent Bit log. |`false`|
25
+
|`logs_body_key`| The log body key to look up in the log events body/message. Sets the `Body` field of the OpenTelemetry logs data model. |`message`|
26
+
|`logs_trace_id_message_key`| The trace id key to look up in the log events body/message. Sets the `TraceId` field of the OpenTelemetry logs data model. |`traceId`|
27
+
|`logs_span_id_message_key`| The span id key to look up in the log events body/message. Sets the `SpanId` field of the OpenTelemetry logs data model. |`spanId`|
28
+
|`logs_severity_text_message_key`| The severity text id key to look up in the log events body/message. Sets the `SeverityText` field of the OpenTelemetry logs data model. |`severityText`|
29
+
|`logs_severity_number_message_key`| The severity number id key to look up in the log events body/message. Sets the `SeverityNumber` field of the OpenTelemetry logs data model. |`severityNumber`|
30
+
|`add_label`| Lets you add custom labels to all metrics exposed through the OpenTelemetry exporter. You can have multiple of these fields. |_none_|
31
+
|`compress`| Set payload compression mechanism. Allowed value: 'gzip'. |_none_|
32
+
|`logs_observed_timestamp_metadata_key`| Specify an `ObservedTimestamp` key to look up in the metadata. |`$ObservedKey`|
33
+
|`logs_timestamp_metadata_key`| Specify a `Timestamp` key to look up in the metadata. |`$Timestamp`|
34
+
|`logs_severity_key_metadata_key`| Specify a `SeverityText` key to look up in the metadata. |`$SeverityText`|
35
+
|`logs_severity_number_metadata_key`| Specify a `SeverityNumber` key to look up in the metadata. |`$SeverityNumber`|
36
+
|`logs_trace_flags_metadata_key`| Specify a `Flags` key to look up in the metadata. |`$Flags`|
37
+
|`logs_span_id_metadata_key`| Specify a `SpanId` key` to look up in the metadata. |`$SpanId`|
38
+
|`logs_trace_id_metadata_key`| Specify a `TraceId` key to look up in the metadata. |`$TraceId`|
39
+
|`logs_attributes_metadata_key`| Specify an `Attributes` key to look up in the metadata. |`$Attributes`|
40
+
|`workers`| The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. |`0`|
41
+
42
+
## Get started
43
43
44
44
The OpenTelemetry plugin works with logs and only the metrics collected from one of the metric input plugins. In the following example, log records generated by the dummy plugin and the host metrics collected by the node exporter metrics plugin are exported by the OpenTelemetry output plugin.
45
45
@@ -55,17 +55,17 @@ The OpenTelemetry plugin works with logs and only the metrics collected from one
0 commit comments