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
Copy file name to clipboardExpand all lines: pipeline/outputs/opentelemetry.md
+79-15Lines changed: 79 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Only HTTP endpoints are supported.
28
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
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
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_|
31
+
|`compress`| Set payload compression mechanism. Allowed value: `gzip`. |_none_|
32
32
|`logs_observed_timestamp_metadata_key`| Specify an `ObservedTimestamp` key to look up in the metadata. |`$ObservedKey`|
33
33
|`logs_timestamp_metadata_key`| Specify a `Timestamp` key to look up in the metadata. |`$Timestamp`|
34
34
|`logs_severity_key_metadata_key`| Specify a `SeverityText` key to look up in the metadata. |`$SeverityText`|
@@ -47,34 +47,98 @@ The OpenTelemetry plugin works with logs and only the metrics collected from one
47
47
{% tab title="fluent-bit.yaml" %}
48
48
49
49
```yaml
50
+
51
+
# Dummy Logs and traces with Node Exporter Metrics export using OpenTelemetry output plugin
52
+
# -------------------------------------------
53
+
# The following example collects host metrics on Linux and dummy logs and traces and delivers
54
+
# them through the OpenTelemetry plugin to a local collector :
55
+
#
50
56
service:
57
+
flush: 1
51
58
log_level: info
52
59
53
60
pipeline:
54
61
inputs:
55
-
- name: mem
56
-
tag: mem
62
+
- name: node_exporter_metrics
63
+
tag: node_metrics
64
+
scrape_interval: 2
57
65
58
-
filters:
59
-
- name: aws
60
-
match: '*'
66
+
- name: dummy
67
+
tag: dummy.log
68
+
rate: 3
69
+
70
+
- name: event_type
71
+
type: traces
61
72
62
73
outputs:
63
-
- name: cloudwatch_logs
74
+
- name: opentelemetry
64
75
match: '*'
65
-
region: us-west-2
66
-
log_stream_name: fluent-bit-cloudwatch
67
-
log_group_name: fluent-bit-cloudwatch
68
-
log_format: json/emf
69
-
metric_namespace: fluent-bit-metrics
70
-
metric_dimensions: ec2_instance_id
71
-
auto_create_group: true
76
+
host: localhost
77
+
port: 443
78
+
metrics_uri: /v1/metrics
79
+
logs_uri: /v1/logs
80
+
traces_uri: /v1/traces
81
+
log_response_payload: true
82
+
tls: on
83
+
tls.verify: off
84
+
logs_body_key: $message
85
+
logs_span_id_message_key: span_id
86
+
logs_trace_id_message_key: trace_id
87
+
logs_severity_text_message_key: loglevel
88
+
logs_severity_number_message_key: lognum
89
+
# add user-defined labels
90
+
add_label:
91
+
- app fluent-bit
92
+
- color blue
72
93
```
73
94
74
95
{% endtab %}
75
96
{% tab title="fluent-bit.conf" %}
76
97
77
-
insert fluent-bit.conf
98
+
```text
99
+
# Dummy Logs and traces with Node Exporter Metrics export using OpenTelemetry output plugin
100
+
# -------------------------------------------
101
+
# The following example collects host metrics on Linux and dummy logs and traces and delivers
102
+
# them through the OpenTelemetry plugin to a local collector :
0 commit comments