diff --git a/docs/sources/reference/components/beyla/beyla.ebpf.md b/docs/sources/reference/components/beyla/beyla.ebpf.md index 8af63b3f11a..6d3c904834a 100644 --- a/docs/sources/reference/components/beyla/beyla.ebpf.md +++ b/docs/sources/reference/components/beyla/beyla.ebpf.md @@ -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("") } diff --git a/docs/sources/reference/components/faro/faro.receiver.md b/docs/sources/reference/components/faro/faro.receiver.md index 20e94799314..805dcd08b68 100644 --- a/docs/sources/reference/components/faro/faro.receiver.md +++ b/docs/sources/reference/components/faro/faro.receiver.md @@ -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] } } @@ -277,7 +277,7 @@ loki.write "default" { } } -otelcol.exporter.otlp "traces" { +otelcol.exporter.otlphttp "traces" { client { endpoint = "" } @@ -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. * _``_: 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/ diff --git a/docs/sources/reference/components/otelcol/otelcol.auth.basic.md b/docs/sources/reference/components/otelcol/otelcol.auth.basic.md index 3bc0cbc22f3..a7b1fcf86dc 100644 --- a/docs/sources/reference/components/otelcol/otelcol.auth.basic.md +++ b/docs/sources/reference/components/otelcol/otelcol.auth.basic.md @@ -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" { @@ -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") } } ``` @@ -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/ diff --git a/docs/sources/reference/components/otelcol/otelcol.auth.headers.md b/docs/sources/reference/components/otelcol/otelcol.auth.headers.md index e7a05ac0d45..ae8a5904c60 100644 --- a/docs/sources/reference/components/otelcol/otelcol.auth.headers.md +++ b/docs/sources/reference/components/otelcol/otelcol.auth.headers.md @@ -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" { @@ -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] } } @@ -150,7 +150,7 @@ otelcol.auth.headers "creds" { } } -otelcol.exporter.otlp "production" { +otelcol.exporter.otlphttp "production" { client { endpoint = sys.env("") auth = otelcol.auth.headers.creds.handler @@ -158,4 +158,4 @@ otelcol.exporter.otlp "production" { } ``` -[otelcol.exporter.otlp]: ../otelcol.exporter.otlp/ +[otelcol.exporter.otlphttp]: ../otelcol.exporter.otlphttp/ diff --git a/docs/sources/reference/components/otelcol/otelcol.connector.count.md b/docs/sources/reference/components/otelcol/otelcol.connector.count.md index 465d11e8234..eb72f32e499 100644 --- a/docs/sources/reference/components/otelcol/otelcol.connector.count.md +++ b/docs/sources/reference/components/otelcol/otelcol.connector.count.md @@ -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] } } ``` @@ -247,7 +247,7 @@ otelcol.connector.count "default" { } output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.connector.servicegraph.md b/docs/sources/reference/components/otelcol/otelcol.connector.servicegraph.md index d4d42086391..355557e38c1 100644 --- a/docs/sources/reference/components/otelcol/otelcol.connector.servicegraph.md +++ b/docs/sources/reference/components/otelcol/otelcol.connector.servicegraph.md @@ -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] } } @@ -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 } } diff --git a/docs/sources/reference/components/otelcol/otelcol.connector.spanmetrics.md b/docs/sources/reference/components/otelcol/otelcol.connector.spanmetrics.md index f99d873f910..8ccb5cb5ad2 100644 --- a/docs/sources/reference/components/otelcol/otelcol.connector.spanmetrics.md +++ b/docs/sources/reference/components/otelcol/otelcol.connector.spanmetrics.md @@ -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") } diff --git a/docs/sources/reference/components/otelcol/otelcol.exporter.datadog.md b/docs/sources/reference/components/otelcol/otelcol.exporter.datadog.md index 04f43d40cfa..d655461baac 100644 --- a/docs/sources/reference/components/otelcol/otelcol.exporter.datadog.md +++ b/docs/sources/reference/components/otelcol/otelcol.exporter.datadog.md @@ -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" } diff --git a/docs/sources/reference/components/otelcol/otelcol.exporter.otlphttp.md b/docs/sources/reference/components/otelcol/otelcol.exporter.otlphttp.md index d03727bbe2e..72fc9226b75 100644 --- a/docs/sources/reference/components/otelcol/otelcol.exporter.otlphttp.md +++ b/docs/sources/reference/components/otelcol/otelcol.exporter.otlphttp.md @@ -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: @@ -165,6 +187,7 @@ otelcol.exporter.otlphttp "tempo" { } } ``` + ## Compatible components diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.attributes.md b/docs/sources/reference/components/otelcol/otelcol.processor.attributes.md index 4c036209ba7..4d1b8f35869 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.attributes.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.attributes.md @@ -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") } @@ -366,7 +366,7 @@ otelcol.processor.attributes "default" { action = "delete" } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -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] } } ``` @@ -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] } } ``` @@ -467,7 +467,7 @@ otelcol.processor.attributes "default" { } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -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] } } ``` @@ -530,7 +530,7 @@ otelcol.processor.attributes "default" { } output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -563,7 +563,7 @@ otelcol.processor.attributes "default" { } output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -593,7 +593,7 @@ otelcol.processor.attributes "default" { } output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -620,7 +620,7 @@ otelcol.processor.attributes "default" { } output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.batch.md b/docs/sources/reference/components/otelcol/otelcol.processor.batch.md index a9964d13cad..db2f2d842a7 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.batch.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.batch.md @@ -142,18 +142,18 @@ The following fields are exported and can be referenced by other components: ### Basic usage -This example batches telemetry data before sending it to [`otelcol.exporter.otlp`][otelcol.exporter.otlp] for further processing: +This example batches telemetry data before sending it to [`otelcol.exporter.otlphttp`][otelcol.exporter.otlphttp] for further processing: ```alloy otelcol.processor.batch "default" { 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] } } -otelcol.exporter.otlp "production" { +otelcol.exporter.otlphttp "production" { client { endpoint = sys.env("OTLP_SERVER_ENDPOINT") } @@ -172,13 +172,13 @@ otelcol.processor.batch "default" { send_batch_max_size = 0 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] } } -otelcol.exporter.otlp "production" { +otelcol.exporter.otlphttp "production" { client { endpoint = sys.env("OTLP_SERVER_ENDPOINT") } @@ -212,18 +212,18 @@ otelcol.processor.batch "default" { metadata_cardinality_limit = 123 output { - traces = [otelcol.exporter.otlp.production.input] + traces = [otelcol.exporter.otlphttp.production.input] } } -otelcol.exporter.otlp "production" { +otelcol.exporter.otlphttp "production" { client { endpoint = sys.env("OTLP_SERVER_ENDPOINT") } } ``` -[otelcol.exporter.otlp]: ../otelcol.exporter.otlp/ +[otelcol.exporter.otlphttp]: ../otelcol.exporter.otlphttp/ diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.cumulativetodelta.md b/docs/sources/reference/components/otelcol/otelcol.processor.cumulativetodelta.md index aae8b6fb24d..12826710555 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.cumulativetodelta.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.cumulativetodelta.md @@ -143,23 +143,23 @@ The following fields are exported and can be referenced by other components: ## Example -This example converts cumulative temporality metrics to delta before sending it to [`otelcol.exporter.otlp`][otelcol.exporter.otlp] for further processing. +This example converts cumulative temporality metrics to delta before sending it to [`otelcol.exporter.otlphttp`][otelcol.exporter.otlphttp] for further processing. ```alloy otelcol.processor.cumulativetodelta "default" { 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") } } ``` -[otelcol.exporter.otlp]: ../otelcol.exporter.otlp/ +[otelcol.exporter.otlphttp]: ../otelcol.exporter.otlphttp/ diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.deltatocumulative.md b/docs/sources/reference/components/otelcol/otelcol.processor.deltatocumulative.md index b73538e791b..a3f20b9380f 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.deltatocumulative.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.deltatocumulative.md @@ -103,23 +103,23 @@ The following fields are exported and can be referenced by other components: ### Basic usage -This example converts delta temporality metrics to cumulative before sending it to [otelcol.exporter.otlp][] for further processing: +This example converts delta temporality metrics to cumulative before sending it to [otelcol.exporter.otlphttp][] for further processing: ```alloy otelcol.processor.deltatocumulative "default" { 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("") } } ``` -[otelcol.exporter.otlp]: ../otelcol.exporter.otlp/ +[otelcol.exporter.otlphttp]: ../otelcol.exporter.otlphttp/ ### Export Prometheus data diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.discovery.md b/docs/sources/reference/components/otelcol/otelcol.processor.discovery.md index 9e3853c82e6..efceb7280d6 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.discovery.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.discovery.md @@ -134,7 +134,7 @@ otelcol.processor.discovery "default" { targets = discovery.http.dynamic_targets.targets output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -158,7 +158,7 @@ otelcol.processor.discovery "default" { targets = array.concat(discovery.http.dynamic_targets.targets, discovery.kubelet.k8s_pods.targets) output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -178,7 +178,7 @@ otelcol.processor.discovery "default" { "test.label.with.dots" = "test.val2.with.dots"}] output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.filter.md b/docs/sources/reference/components/otelcol/otelcol.processor.filter.md index 7c5fe270d45..aef02f3e76c 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.filter.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.filter.md @@ -221,9 +221,9 @@ otelcol.processor.filter "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] } } ``` @@ -247,9 +247,9 @@ otelcol.processor.filter "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] } } ``` @@ -274,9 +274,9 @@ otelcol.processor.filter "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] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.groupbyattrs.md b/docs/sources/reference/components/otelcol/otelcol.processor.groupbyattrs.md index b057eeed403..20d93d7952e 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.groupbyattrs.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.groupbyattrs.md @@ -124,7 +124,7 @@ With the following configuration, the groupbyattrs will re-associate the metrics otelcol.processor.groupbyattrs "default" { keys = [ "host.name" ] output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -202,7 +202,7 @@ You can use `otelcol.processor.groupbyattrs` with its default configuration to c ```alloy otelcol.processor.groupbyattrs "default" { output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.k8sattributes.md b/docs/sources/reference/components/otelcol/otelcol.processor.k8sattributes.md index b13ce19032d..9ad28f2a01c 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.k8sattributes.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.k8sattributes.md @@ -343,13 +343,13 @@ otelcol.receiver.otlp "default" { otelcol.processor.k8sattributes "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("") } @@ -395,13 +395,13 @@ otelcol.processor.k8sattributes "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("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.metric_start_time.md b/docs/sources/reference/components/otelcol/otelcol.processor.metric_start_time.md index 06501864ed1..356e13fb141 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.metric_start_time.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.metric_start_time.md @@ -179,11 +179,11 @@ otelcol.receiver.prometheus "default" { otelcol.processor.metric_start_time "default" { 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") } @@ -205,11 +205,11 @@ otelcol.processor.metric_start_time "default" { strategy = "subtract_initial_point" 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") } @@ -233,11 +233,11 @@ otelcol.processor.metric_start_time "default" { start_time_metric_regex = "^.+_start_time$" 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") } diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.probabilistic_sampler.md b/docs/sources/reference/components/otelcol/otelcol.processor.probabilistic_sampler.md index 55196bcc693..ebf44415b0b 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.probabilistic_sampler.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.probabilistic_sampler.md @@ -144,7 +144,7 @@ otelcol.processor.probabilistic_sampler "default" { sampling_percentage = 15.3 output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -156,7 +156,7 @@ otelcol.processor.probabilistic_sampler "default" { sampling_percentage = 15 output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -170,7 +170,7 @@ otelcol.processor.probabilistic_sampler "default" { from_attribute = "logID" output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -183,7 +183,7 @@ otelcol.processor.probabilistic_sampler "default" { sampling_priority = "priority" output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.resourcedetection.md b/docs/sources/reference/components/otelcol/otelcol.processor.resourcedetection.md index e3a61aeb0c5..ea73750c9ff 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.resourcedetection.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.resourcedetection.md @@ -1198,9 +1198,9 @@ otelcol.processor.resourcedetection "default" { detectors = ["env"] output { - logs = [otelcol.exporter.otlp.default.input] - metrics = [otelcol.exporter.otlp.default.input] - traces = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -1215,9 +1215,9 @@ otelcol.processor.resourcedetection "default" { detectors = ["env", "ec2"] output { - logs = [otelcol.exporter.otlp.default.input] - metrics = [otelcol.exporter.otlp.default.input] - traces = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -1232,9 +1232,9 @@ otelcol.processor.resourcedetection "default" { detectors = ["ec2"] output { - logs = [otelcol.exporter.otlp.default.input] - metrics = [otelcol.exporter.otlp.default.input] - traces = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -1260,9 +1260,9 @@ otelcol.processor.resourcedetection "default" { } output { - logs = [otelcol.exporter.otlp.default.input] - metrics = [otelcol.exporter.otlp.default.input] - traces = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -1279,9 +1279,9 @@ otelcol.processor.resourcedetection "default" { detectors = ["kubernetes_node"] output { - logs = [otelcol.exporter.otlp.default.input] - metrics = [otelcol.exporter.otlp.default.input] - traces = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -1308,9 +1308,9 @@ otelcol.processor.resourcedetection "default" { } output { - logs = [otelcol.exporter.otlp.default.input] - metrics = [otelcol.exporter.otlp.default.input] - traces = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.span.md b/docs/sources/reference/components/otelcol/otelcol.processor.span.md index 91d1654fd96..5805ba6381e 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.span.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.span.md @@ -246,7 +246,7 @@ otelcol.processor.span "default" { } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -280,7 +280,7 @@ otelcol.processor.span "default" { } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -312,7 +312,7 @@ otelcol.processor.span "default" { } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -332,7 +332,7 @@ otelcol.processor.span "keep_original_name" { } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -365,7 +365,7 @@ otelcol.processor.span "default" { } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -382,7 +382,7 @@ otelcol.processor.span "default" { } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` @@ -405,7 +405,7 @@ otelcol.processor.span "default" { } output { - traces = [otelcol.exporter.otlp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.tail_sampling.md b/docs/sources/reference/components/otelcol/otelcol.processor.tail_sampling.md index af04981d75a..2955a4ec1f0 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.tail_sampling.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.tail_sampling.md @@ -131,7 +131,7 @@ You can use the following blocks with `otelcol.processor.tail_sampling`: [composite]: #composite [composite_sub_policy]: #composite_sub_policy [output]: #output -[otelcol.exporter.otlp]: ../otelcol.exporter.otlp/ +[otelcol.exporter.otlphttp]: ../otelcol.exporter.otlphttp/ [debug_metrics]: #debug_metrics ### `output` @@ -376,7 +376,7 @@ The following fields are exported and can be referenced by other components: ## Example -This example batches trace data from {{< param "PRODUCT_NAME" >}} before sending it to [otelcol.exporter.otlp][] for further processing. +This example batches trace data from {{< param "PRODUCT_NAME" >}} before sending it to [otelcol.exporter.otlphttp][] for further processing. This example shows an impractical number of policies for the purpose of demonstrating how to set up each type. ```alloy @@ -590,11 +590,11 @@ otelcol.processor.tail_sampling "default" { } output { - traces = [otelcol.exporter.otlp.production.input] + traces = [otelcol.exporter.otlphttp.production.input] } } -otelcol.exporter.otlp "production" { +otelcol.exporter.otlphttp "production" { client { endpoint = sys.env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.processor.transform.md b/docs/sources/reference/components/otelcol/otelcol.processor.transform.md index 0245d0e2c39..2c53b67f519 100644 --- a/docs/sources/reference/components/otelcol/otelcol.processor.transform.md +++ b/docs/sources/reference/components/otelcol/otelcol.processor.transform.md @@ -394,9 +394,9 @@ otelcol.processor.transform "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] } } ``` @@ -419,9 +419,9 @@ otelcol.processor.transform "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] } } ``` @@ -440,9 +440,9 @@ otelcol.processor.transform "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] } } ``` @@ -463,9 +463,9 @@ otelcol.processor.transform "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] } } ``` @@ -487,9 +487,9 @@ otelcol.processor.transform "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] } } ``` @@ -535,9 +535,9 @@ otelcol.processor.transform "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] } } ``` @@ -626,13 +626,13 @@ otelcol.processor.transform "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") } @@ -668,9 +668,9 @@ otelcol.processor.transform "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] } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.awscloudwatch.md b/docs/sources/reference/components/otelcol/otelcol.receiver.awscloudwatch.md index a2581e4b90e..8c27bd85b8b 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.awscloudwatch.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.awscloudwatch.md @@ -184,11 +184,11 @@ otelcol.receiver.awscloudwatch "default" { otelcol.processor.batch "default" { output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.awsecscontainermetrics.md b/docs/sources/reference/components/otelcol/otelcol.receiver.awsecscontainermetrics.md index 73f23bcada2..90316395892 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.awsecscontainermetrics.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.awsecscontainermetrics.md @@ -111,11 +111,11 @@ otelcol.processor.filter "default" { } output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.awss3.md b/docs/sources/reference/components/otelcol/otelcol.receiver.awss3.md index a08d6380b8a..7ec0f6964fa 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.awss3.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.awss3.md @@ -193,13 +193,13 @@ otelcol.receiver.awss3 "sqs_traces" { otelcol.processor.batch "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("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.cloudflare.md b/docs/sources/reference/components/otelcol/otelcol.receiver.cloudflare.md index 66e47c06157..b67be078012 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.cloudflare.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.cloudflare.md @@ -116,11 +116,11 @@ otelcol.receiver.cloudflare "default" { otelcol.processor.batch "default" { output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.datadog.md b/docs/sources/reference/components/otelcol/otelcol.receiver.datadog.md index 6c28382bd71..827885ec7fd 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.datadog.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.datadog.md @@ -147,12 +147,12 @@ otelcol.receiver.datadog "default" { otelcol.processor.batch "default" { output { - metrics = [otelcol.exporter.otlp.default.input] - traces = [otelcol.exporter.otlp.default.input] + metrics = [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") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.file_stats.md b/docs/sources/reference/components/otelcol/otelcol.receiver.file_stats.md index 3c1f0bb4dc1..3f062df9b67 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.file_stats.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.file_stats.md @@ -251,11 +251,11 @@ otelcol.receiver.file_stats "default" { otelcol.processor.batch "default" { output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = sys.env("OTLP_ENDPOINT") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.googlecloudpubsub.md b/docs/sources/reference/components/otelcol/otelcol.receiver.googlecloudpubsub.md index 9f4c38be2cb..a5de0abbf89 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.googlecloudpubsub.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.googlecloudpubsub.md @@ -105,11 +105,11 @@ otelcol.receiver.googlecloudpubsub "default" { otelcol.processor.batch "default" { output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.influxdb.md b/docs/sources/reference/components/otelcol/otelcol.receiver.influxdb.md index 06eda06c90b..45a36e58719 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.influxdb.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.influxdb.md @@ -140,11 +140,11 @@ otelcol.receiver.influxdb "influxdb_metrics" { otelcol.processor.batch "default" { output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = sys.env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.jaeger.md b/docs/sources/reference/components/otelcol/otelcol.receiver.jaeger.md index 881b18d46a6..82d7d181100 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.jaeger.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.jaeger.md @@ -268,13 +268,21 @@ otelcol.receiver.jaeger "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 = "my-otlp-server:4317" + 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") } } ``` diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.kafka.md b/docs/sources/reference/components/otelcol/otelcol.receiver.kafka.md index 3f52a2818f7..563804be6ba 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.kafka.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.kafka.md @@ -381,13 +381,13 @@ otelcol.receiver.kafka "default" { otelcol.processor.batch "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") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.loki.md b/docs/sources/reference/components/otelcol/otelcol.receiver.loki.md index 2f2351e7033..5f06676fbe4 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.loki.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.loki.md @@ -70,7 +70,7 @@ The following fields are exported and can be referenced by other components: This example uses the `otelcol.receiver.loki` component as a bridge between the Loki and OpenTelemetry ecosystems. The component exposes a receiver which the `loki.source.file` component uses to send Loki log entries to. -The logs are converted to the OTLP format before they're forwarded to the `otelcol.exporter.otlp` component to be sent to an OTLP-capable endpoint: +The logs are converted to the OTLP format before they're forwarded to the `otelcol.exporter.otlphttp` component to be sent to an OTLP-capable endpoint: ```alloy loki.source.file "default" { @@ -83,11 +83,11 @@ loki.source.file "default" { otelcol.receiver.loki "default" { output { - logs = [otelcol.exporter.otlp.default.input] + logs = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = sys.env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.otlp.md b/docs/sources/reference/components/otelcol/otelcol.receiver.otlp.md index a452cd18026..7f53eed088b 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.otlp.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.otlp.md @@ -236,13 +236,13 @@ otelcol.receiver.otlp "default" { otelcol.processor.batch "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("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.prometheus.md b/docs/sources/reference/components/otelcol/otelcol.receiver.prometheus.md index 7d9bf209c01..4591c79d385 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.prometheus.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.prometheus.md @@ -83,7 +83,7 @@ This component exports the following fields that other components can reference: This example uses the `otelcol.receiver.prometheus` component as a bridge between the Prometheus and OpenTelemetry ecosystems. The component exposes a receiver which the `prometheus.scrape` component uses to send Prometheus metric data to. -The receiver converts the metrics to OTLP format and forwards them to the `otelcol.exporter.otlp` component, which sends them to an OTLP-capable endpoint: +The receiver converts the metrics to OTLP format and forwards them to the `otelcol.exporter.otlphttp` component, which sends them to an OTLP-capable endpoint: ```alloy prometheus.scrape "default" { @@ -95,11 +95,11 @@ prometheus.scrape "default" { otelcol.receiver.prometheus "default" { output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = sys.env("OTLP_ENDPOINT") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.solace.md b/docs/sources/reference/components/otelcol/otelcol.receiver.solace.md index 9a40ce8ef67..dee98c8b6d1 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.solace.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.solace.md @@ -196,11 +196,11 @@ otelcol.receiver.solace "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("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.splunkhec.md b/docs/sources/reference/components/otelcol/otelcol.receiver.splunkhec.md index dd0d163e009..0622409228c 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.splunkhec.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.splunkhec.md @@ -174,12 +174,12 @@ otelcol.receiver.splunkhec "default" { otelcol.processor.batch "default" { output { - metrics = [otelcol.exporter.otlp.default.input] - traces = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] + traces = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = sys.env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.vcenter.md b/docs/sources/reference/components/otelcol/otelcol.receiver.vcenter.md index 9baf4ace24f..5c7c58206ea 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.vcenter.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.vcenter.md @@ -251,11 +251,11 @@ otelcol.receiver.vcenter "default" { otelcol.processor.batch "default" { output { - metrics = [otelcol.exporter.otlp.default.input] + metrics = [otelcol.exporter.otlphttp.default.input] } } -otelcol.exporter.otlp "default" { +otelcol.exporter.otlphttp "default" { client { endpoint = sys.env("") } diff --git a/docs/sources/reference/components/otelcol/otelcol.receiver.zipkin.md b/docs/sources/reference/components/otelcol/otelcol.receiver.zipkin.md index a214bc95ef9..be58fb1c114 100644 --- a/docs/sources/reference/components/otelcol/otelcol.receiver.zipkin.md +++ b/docs/sources/reference/components/otelcol/otelcol.receiver.zipkin.md @@ -142,13 +142,13 @@ otelcol.receiver.zipkin "default" { otelcol.processor.batch "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("") } diff --git a/docs/sources/shared/reference/components/otelcol-tls-tpm-block.md b/docs/sources/shared/reference/components/otelcol-tls-tpm-block.md index 10ebfac2e54..79898e14b9c 100644 --- a/docs/sources/shared/reference/components/otelcol-tls-tpm-block.md +++ b/docs/sources/shared/reference/components/otelcol-tls-tpm-block.md @@ -17,7 +17,7 @@ The [trusted platform module][tpm] (TPM) configuration can be used for loading T The `path` attribute is not supported on Windows. -### Example +In the following example, the private key `my-tss2-key.key` in TSS2 format is loaded from the TPM device `/dev/tmprm0`: ```alloy otelcol.example.component "