diff --git a/charts/k8s-monitoring/docs/examples/auth/bearer-token/alloy-receiver.alloy b/charts/k8s-monitoring/docs/examples/auth/bearer-token/alloy-receiver.alloy index 2979b4edf..e132e6291 100644 --- a/charts/k8s-monitoring/docs/examples/auth/bearer-token/alloy-receiver.alloy +++ b/charts/k8s-monitoring/docs/examples/auth/bearer-token/alloy-receiver.alloy @@ -88,6 +88,7 @@ otelcol.processor.transform "tempo" { otelcol.exporter.otlp "tempo" { client { endpoint = "http://tempo.tempo.svc:4317" + auth = otelcol.auth.bearer.tempo.handler headers = { "X-Scope-OrgID" = nonsensitive(remote.kubernetes.secret.tempo.data["tenantId"]), } diff --git a/charts/k8s-monitoring/docs/examples/auth/bearer-token/output.yaml b/charts/k8s-monitoring/docs/examples/auth/bearer-token/output.yaml index d2f4da3d0..dae047fe6 100644 --- a/charts/k8s-monitoring/docs/examples/auth/bearer-token/output.yaml +++ b/charts/k8s-monitoring/docs/examples/auth/bearer-token/output.yaml @@ -450,6 +450,7 @@ data: otelcol.exporter.otlp "tempo" { client { endpoint = "http://tempo.tempo.svc:4317" + auth = otelcol.auth.bearer.tempo.handler headers = { "X-Scope-OrgID" = nonsensitive(remote.kubernetes.secret.tempo.data["tenantId"]), } diff --git a/charts/k8s-monitoring/docs/examples/auth/embedded-secrets/alloy-receiver.alloy b/charts/k8s-monitoring/docs/examples/auth/embedded-secrets/alloy-receiver.alloy index 625f0d0fa..c2c417ea5 100644 --- a/charts/k8s-monitoring/docs/examples/auth/embedded-secrets/alloy-receiver.alloy +++ b/charts/k8s-monitoring/docs/examples/auth/embedded-secrets/alloy-receiver.alloy @@ -87,6 +87,7 @@ otelcol.processor.transform "tempo" { otelcol.exporter.otlp "tempo" { client { endpoint = "http://tempo.tempo.svc:4317" + auth = otelcol.auth.basic.tempo.handler headers = { } tls { diff --git a/charts/k8s-monitoring/docs/examples/auth/embedded-secrets/output.yaml b/charts/k8s-monitoring/docs/examples/auth/embedded-secrets/output.yaml index 59c51b1fd..85f606f35 100644 --- a/charts/k8s-monitoring/docs/examples/auth/embedded-secrets/output.yaml +++ b/charts/k8s-monitoring/docs/examples/auth/embedded-secrets/output.yaml @@ -438,6 +438,7 @@ data: otelcol.exporter.otlp "tempo" { client { endpoint = "http://tempo.tempo.svc:4317" + auth = otelcol.auth.basic.tempo.handler headers = { } tls { diff --git a/charts/k8s-monitoring/docs/examples/auth/external-secrets/alloy-receiver.alloy b/charts/k8s-monitoring/docs/examples/auth/external-secrets/alloy-receiver.alloy index 12bc04aef..a69fe0fd7 100644 --- a/charts/k8s-monitoring/docs/examples/auth/external-secrets/alloy-receiver.alloy +++ b/charts/k8s-monitoring/docs/examples/auth/external-secrets/alloy-receiver.alloy @@ -105,6 +105,7 @@ otelcol.processor.transform "tempo" { otelcol.exporter.otlp "tempo" { client { endpoint = "http://tempo.tempo.svc:4317" + auth = otelcol.auth.bearer.tempo.handler headers = { "X-Scope-OrgID" = nonsensitive(remote.kubernetes.secret.tempo.data["tenantId"]), } diff --git a/charts/k8s-monitoring/docs/examples/auth/external-secrets/output.yaml b/charts/k8s-monitoring/docs/examples/auth/external-secrets/output.yaml index b4c6658e5..0b7cd1126 100644 --- a/charts/k8s-monitoring/docs/examples/auth/external-secrets/output.yaml +++ b/charts/k8s-monitoring/docs/examples/auth/external-secrets/output.yaml @@ -473,6 +473,7 @@ data: otelcol.exporter.otlp "tempo" { client { endpoint = "http://tempo.tempo.svc:4317" + auth = otelcol.auth.bearer.tempo.handler headers = { "X-Scope-OrgID" = nonsensitive(remote.kubernetes.secret.tempo.data["tenantId"]), } diff --git a/charts/k8s-monitoring/templates/destinations/_destination_otlp.tpl b/charts/k8s-monitoring/templates/destinations/_destination_otlp.tpl index d1eacd795..6da902a12 100644 --- a/charts/k8s-monitoring/templates/destinations/_destination_otlp.tpl +++ b/charts/k8s-monitoring/templates/destinations/_destination_otlp.tpl @@ -65,9 +65,9 @@ otelcol.exporter.otlphttp {{ include "helper.alloy_name" .name | quote }} { {{- else }} endpoint = {{ .url | quote }} {{- end }} -{{- if eq .authMode "basic" }} +{{- if eq .auth.type "basic" }} auth = otelcol.auth.basic.{{ include "helper.alloy_name" .name }}.handler -{{- else if eq .authMode "bearerToken" }} +{{- else if eq .auth.type "bearerToken" }} auth = otelcol.auth.bearer.{{ include "helper.alloy_name" .name }}.handler {{- end }} headers = {