File tree Expand file tree Collapse file tree 1 file changed +45
-1
lines changed Expand file tree Collapse file tree 1 file changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,51 @@ The OpenTelemetry plugin works with logs and only the metrics collected from one
4646{% tabs %}
4747{% tab title="fluent-bit.yaml" %}
4848
49- insert fluent-bit.yaml
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+ #
56+ service :
57+ flush : 1
58+ log_level : info
59+
60+ pipeline :
61+ inputs :
62+ - name : node_exporter_metrics
63+ tag : node_metrics
64+ scrape_interval : 2
65+
66+ - name : dummy
67+ tag : dummy.log
68+ rate : 3
69+
70+ - name : event_type
71+ type : traces
72+
73+ outputs :
74+ - name : opentelemetry
75+ match : ' *'
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
93+ ` ` `
5094
5195{% endtab %}
5296{% tab title="fluent-bit.conf" %}
You can’t perform that action at this time.
0 commit comments