Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions pipeline/outputs/opentelemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,14 @@ Only HTTP endpoints are supported.
| `tls.windows.use_enterprise_store` | Sets whether using enterprise certstore or not on an output (Windows). | _none_ |
| `traces_uri` | Specify an optional HTTP URI for the target OTel endpoint. | `/v1/traces` |

== Get started
## Get started

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.

{% tabs %}
{% tab title="fluent-bit.yaml" %}

[source,yaml]
----
```yaml
# Dummy Logs and traces with Node Exporter Metrics export using OpenTelemetry output plugin
# -------------------------------------------
# The following example collects host metrics on Linux and dummy logs and traces and delivers
Expand Down Expand Up @@ -144,13 +143,12 @@ pipeline:
add_label:
- app fluent-bit
- color blue
----
```

{% endtab %}
{% tab title="fluent-bit.conf" %}

[source,text]
----
```text
# Dummy Logs and traces with Node Exporter Metrics export using OpenTelemetry output plugin
# -------------------------------------------
# The following example collects host metrics on Linux and dummy logs and traces and delivers
Expand Down Expand Up @@ -193,7 +191,7 @@ pipeline:
# add user-defined labels
add_label app fluent-bit
add_label color blue
----
```

{% endtab %}
{% endtabs %}