Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/sources/reference/components/beyla/beyla.ebpf.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,11 @@ beyla.ebpf "default" {

otelcol.processor.batch "default" {
output {
traces = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlphttp.default.input]
}
}

otelcol.exporter.otlp "default" {
otelcol.exporter.otlphttp "default" {
client {
endpoint = sys.env("<OTLP_ENDPOINT>")
}
Expand Down
8 changes: 4 additions & 4 deletions docs/sources/reference/components/faro/faro.receiver.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ faro.receiver "default" {

output {
logs = [loki.write.default.receiver]
traces = [otelcol.exporter.otlp.traces.input]
traces = [otelcol.exporter.otlphttp.traces.input]
}
}

Expand All @@ -277,7 +277,7 @@ loki.write "default" {
}
}

otelcol.exporter.otlp "traces" {
otelcol.exporter.otlphttp "traces" {
client {
endpoint = "<OTLP_ADDRESS>"
}
Expand All @@ -293,10 +293,10 @@ Replace the following:
* `LOKI_ADDRESS`: Address of the Loki server to send logs to.
Refer to [`loki.write`][loki.write] if you want to use authentication to send logs to the Loki server.
* _`<OTLP_ADDRESS>`_: The address of the OTLP-compatible server to send traces to.
Refer to[`otelcol.exporter.otlp`][otelcol.exporter.otlp] if you want to use authentication to send logs to the Loki server.
Refer to[`otelcol.exporter.otlphttp`][otelcol.exporter.otlphttp] if you want to use authentication to send logs to an OTLP server.

[loki.write]: ../../loki/loki.write/
[otelcol.exporter.otlp]: ../../otelcol/otelcol.exporter.otlp/
[otelcol.exporter.otlphttp]: ../../otelcol/otelcol.exporter.otlphttp/

<!-- START GENERATED COMPATIBLE COMPONENTS -->

Expand Down
19 changes: 10 additions & 9 deletions docs/sources/reference/components/otelcol/otelcol.auth.basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ These examples show how to perform basic authentication using the `client_auth`

#### Use client authentication

This example configures [`otelcol.exporter.otlp`][otelcol.exporter.otlp] to use basic authentication with a single username and password combination:
This example configures [`otelcol.exporter.otlphttp`][otelcol.exporter.otlphttp] to use basic authentication with a single username and password combination:

```alloy
otelcol.receiver.otlp "example" {
Expand All @@ -151,23 +151,23 @@ otelcol.receiver.otlp "example" {
}

output {
metrics = [otelcol.exporter.otlp.default.input]
logs = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlp.default.input]
metrics = [otelcol.exporter.otlphttp.default.input]
logs = [otelcol.exporter.otlphttp.default.input]
traces = [otelcol.exporter.otlphttp.default.input]
}
}

otelcol.exporter.otlp "default" {
otelcol.exporter.otlphttp "default" {
client {
endpoint = "my-otlp-grpc-server:4317"
auth = otelcol.auth.basic.creds.handler
endpoint = `https://otlp-gateway-prod-gb-south-0.grafana.net/otlp`
auth = otelcol.auth.basic.creds.handler
}
}

otelcol.auth.basic "creds" {
client_auth {
username = "demo"
password = sys.env("API_KEY")
username = sys.env("OTLP_USERNAME")
password = sys.env("OTLP_API_KEY")
}
}
```
Expand Down Expand Up @@ -267,3 +267,4 @@ otelcol.auth.basic "creds" {

[otelcol.receiver.otlp]: ../otelcol.receiver.otlp/
[otelcol.exporter.otlp]: ../otelcol.exporter.otlp/
[otelcol.exporter.otlphttp]: ../otelcol.exporter.otlphttp/
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ The following fields are exported and can be referenced by other components:

## Example

This example configures [`otelcol.exporter.otlp`][otelcol.exporter.otlp] to use custom headers:
This example configures [`otelcol.exporter.otlphttp`][otelcol.exporter.otlphttp] to use custom headers:

```alloy
otelcol.receiver.otlp "default" {
Expand All @@ -132,9 +132,9 @@ otelcol.processor.batch "default" {
metadata_keys = ["tenant_id"]

output {
metrics = [otelcol.exporter.otlp.production.input]
logs = [otelcol.exporter.otlp.production.input]
traces = [otelcol.exporter.otlp.production.input]
metrics = [otelcol.exporter.otlphttp.production.input]
logs = [otelcol.exporter.otlphttp.production.input]
traces = [otelcol.exporter.otlphttp.production.input]
}
}

Expand All @@ -150,12 +150,12 @@ otelcol.auth.headers "creds" {
}
}

otelcol.exporter.otlp "production" {
otelcol.exporter.otlphttp "production" {
client {
endpoint = sys.env("<OTLP_SERVER_ENDPOINT>")
auth = otelcol.auth.headers.creds.handler
}
}
```

[otelcol.exporter.otlp]: ../otelcol.exporter.otlp/
[otelcol.exporter.otlphttp]: ../otelcol.exporter.otlphttp/
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Use the count connector with minimal configuration to count all telemetry data u
```alloy
otelcol.connector.count "default" {
output {
metrics = [otelcol.exporter.otlp.default.input]
metrics = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down Expand Up @@ -247,7 +247,7 @@ otelcol.connector.count "default" {
}

output {
metrics = [otelcol.exporter.otlp.default.input]
metrics = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ otelcol.receiver.otlp "default" {
}

output {
traces = [otelcol.connector.servicegraph.default.input,otelcol.exporter.otlp.grafana_cloud_traces.input]
traces = [otelcol.connector.servicegraph.default.input,otelcol.exporter.otlphttp.grafana_cloud_traces.input]
}
}

Expand All @@ -223,9 +223,9 @@ prometheus.remote_write "mimir" {
}
}

otelcol.exporter.otlp "grafana_cloud_traces" {
otelcol.exporter.otlphttp "grafana_cloud_traces" {
client {
endpoint = "https://tempo-xxx.grafana.net/tempo"
endpoint = `https://otlp-gateway-prod-gb-south-0.grafana.net/otlp`
auth = otelcol.auth.basic.grafana_cloud_traces.handler
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,11 @@ otelcol.connector.spanmetrics "default" {
namespace = "test.namespace"

output {
metrics = [otelcol.exporter.otlp.production.input]
metrics = [otelcol.exporter.otlphttp.production.input]
}
}

otelcol.exporter.otlp "production" {
otelcol.exporter.otlphttp "production" {
client {
endpoint = sys.env("OTLP_SERVER_ENDPOINT")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ This example forwards metrics and traces received in Datadog format to {{< param
```alloy
otelcol.receiver.datadog "default" {
output {
metrics = [otelcol.exporter.otlp.default.input, otelcol.exporter.datadog.default input]
traces = [otelcol.exporter.otlp.default.input, otelcol.exporter.datadog.default.input]
metrics = [otelcol.exporter.otlphttp.default.input, otelcol.exporter.datadog.default input]
traces = [otelcol.exporter.otlphttp.default.input, otelcol.exporter.datadog.default.input]
}
}

otelcol.exporter.otlp "default" {
otelcol.exporter.otlphttp "default" {
client {
endpoint = "database:4317"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,29 @@ The following fields are exported and can be referenced by other components:

`otelcol.exporter.otlphttp` doesn't expose any component-specific debug information.

## Example
## Examples

### Grafana Cloud

This example creates an exporter which can send OTLP logs, metrics, and traces to Grafana Cloud using basic authentication:

```alloy
otelcol.exporter.otlphttp "default" {
client {
endpoint = `https://otlp-gateway-prod-gb-south-0.grafana.net/otlp`
auth = otelcol.auth.basic.creds.handler
}
}

otelcol.auth.basic "creds" {
client_auth {
username = sys.env("OTLP_USERNAME")
password = sys.env("OTLP_API_KEY")
}
}
```

### Local Tempo database

This example creates an exporter to send data to a locally running Grafana Tempo without TLS:

Expand All @@ -165,6 +187,7 @@ otelcol.exporter.otlphttp "tempo" {
}
}
```

<!-- START GENERATED COMPATIBLE COMPONENTS -->

## Compatible components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@ otelcol.processor.attributes "default" {
}

output {
metrics = [otelcol.exporter.otlp.default.input]
logs = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlp.default.input]
metrics = [otelcol.exporter.otlphttp.default.input]
logs = [otelcol.exporter.otlphttp.default.input]
traces = [otelcol.exporter.otlphttp.default.input]
}
}

otelcol.exporter.otlp "default" {
otelcol.exporter.otlphttp "default" {
client {
endpoint = sys.env("OTLP_ENDPOINT")
}
Expand Down Expand Up @@ -366,7 +366,7 @@ otelcol.processor.attributes "default" {
action = "delete"
}
output {
traces = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down Expand Up @@ -395,8 +395,8 @@ otelcol.processor.attributes "default" {
action = "delete"
}
output {
logs = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlp.default.input]
logs = [otelcol.exporter.otlphttp.default.input]
traces = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down Expand Up @@ -425,8 +425,8 @@ otelcol.processor.attributes "default" {
action = "delete"
}
output {
logs = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlp.default.input]
logs = [otelcol.exporter.otlphttp.default.input]
traces = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down Expand Up @@ -467,7 +467,7 @@ otelcol.processor.attributes "default" {
}

output {
traces = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down Expand Up @@ -499,9 +499,9 @@ otelcol.processor.attributes "default" {
}

output {
metrics = [otelcol.exporter.otlp.default.input]
logs = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlp.default.input]
metrics = [otelcol.exporter.otlphttp.default.input]
logs = [otelcol.exporter.otlphttp.default.input]
traces = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down Expand Up @@ -530,7 +530,7 @@ otelcol.processor.attributes "default" {
}

output {
logs = [otelcol.exporter.otlp.default.input]
logs = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down Expand Up @@ -563,7 +563,7 @@ otelcol.processor.attributes "default" {
}

output {
logs = [otelcol.exporter.otlp.default.input]
logs = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down Expand Up @@ -593,7 +593,7 @@ otelcol.processor.attributes "default" {
}

output {
logs = [otelcol.exporter.otlp.default.input]
logs = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand All @@ -620,7 +620,7 @@ otelcol.processor.attributes "default" {
}

output {
metrics = [otelcol.exporter.otlp.default.input]
metrics = [otelcol.exporter.otlphttp.default.input]
}
}
```
Expand Down
Loading
Loading