Skip to content

Commit 4285f20

Browse files
committed
Pulling stuff a little at a time
Signed-off-by: Lynette Miles <[email protected]>
1 parent d677502 commit 4285f20

File tree

1 file changed

+0
-95
lines changed

1 file changed

+0
-95
lines changed

pipeline/outputs/opentelemetry.md

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -42,98 +42,3 @@ Only HTTP endpoints are supported.
4242
## Get started
4343

4444
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 :
98-
#
99-
[SERVICE]
100-
Flush 1
101-
Log_level info
102-
103-
[INPUT]
104-
Name node_exporter_metrics
105-
Tag node_metrics
106-
Scrape_interval 2
107-
108-
[INPUT]
109-
Name dummy
110-
Tag dummy.log
111-
Rate 3
112-
113-
[INPUT]
114-
Name event_type
115-
Type traces
116-
117-
[OUTPUT]
118-
Name opentelemetry
119-
Match *
120-
Host localhost
121-
Port 443
122-
Metrics_uri /v1/metrics
123-
Logs_uri /v1/logs
124-
Traces_uri /v1/traces
125-
Log_response_payload True
126-
Tls On
127-
Tls.verify Off
128-
logs_body_key $message
129-
logs_span_id_message_key span_id
130-
logs_trace_id_message_key trace_id
131-
logs_severity_text_message_key loglevel
132-
logs_severity_number_message_key lognum
133-
# add user-defined labels
134-
add_label app fluent-bit
135-
add_label color blue
136-
```
137-
138-
{% endtab %}
139-
{% endtabs %}

0 commit comments

Comments
 (0)