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
-95Lines changed: 0 additions & 95 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,98 +42,3 @@ Only HTTP endpoints are supported.
42
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
-
46
-
47
-
{% tabs %}
48
-
{% tab title="fluent-bit.yaml" %}
49
-
50
-
```yaml
51
-
service:
52
-
flush: 1
53
-
log_level: info
54
-
55
-
pipeline:
56
-
inputs:
57
-
- name: node_exporter_metrics
58
-
tag: node_metrics
59
-
scrape_interval: 2
60
-
61
-
- name: dummy
62
-
tag: dummy.log
63
-
rate: 3
64
-
65
-
- name: event_type
66
-
type: traces
67
-
68
-
outputs:
69
-
- name: opentelemetry
70
-
match: '*'
71
-
host: localhost
72
-
port: 443
73
-
metrics_uri: /v1/metrics
74
-
logs_uri: /v1/logs
75
-
traces_uri: /v1/traces
76
-
log_response_payload: true
77
-
tls: on
78
-
tls.verify: off
79
-
logs_body_key: $message
80
-
logs_span_id_message_key: span_id
81
-
logs_trace_id_message_key: trace_id
82
-
logs_severity_text_message_key: loglevel
83
-
logs_severity_number_message_key: lognum
84
-
# add user-defined labels
85
-
add_label:
86
-
- app fluent-bit
87
-
- color blue
88
-
```
89
-
90
-
{% endtab %}
91
-
{% tab title="fluent-bit.conf" %}
92
-
93
-
```text
94
-
# Dummy Logs and traces with Node Exporter Metrics export using OpenTelemetry output plugin
95
-
# -------------------------------------------
96
-
# The following example collects host metrics on Linux and dummy logs and traces and delivers
97
-
# them through the OpenTelemetry plugin to a local collector :
0 commit comments