diff --git a/.github/ISSUE_TEMPLATE/blank.yaml b/.github/ISSUE_TEMPLATE/blank.yaml index 3560f736c83..5186fb931f3 100644 --- a/.github/ISSUE_TEMPLATE/blank.yaml +++ b/.github/ISSUE_TEMPLATE/blank.yaml @@ -82,6 +82,7 @@ body: - mimir.rules.kubernetes - otelcol.auth.basic - otelcol.auth.bearer + - otelcol.auth.google - otelcol.auth.headers - otelcol.auth.oauth2 - otelcol.auth.sigv4 diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 4b416afef53..0525c228972 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -82,6 +82,7 @@ body: - mimir.rules.kubernetes - otelcol.auth.basic - otelcol.auth.bearer + - otelcol.auth.google - otelcol.auth.headers - otelcol.auth.oauth2 - otelcol.auth.sigv4 diff --git a/.github/ISSUE_TEMPLATE/docs.yaml b/.github/ISSUE_TEMPLATE/docs.yaml index 49edbb49d58..6d9e749085c 100644 --- a/.github/ISSUE_TEMPLATE/docs.yaml +++ b/.github/ISSUE_TEMPLATE/docs.yaml @@ -85,6 +85,7 @@ body: - mimir.rules.kubernetes - otelcol.auth.basic - otelcol.auth.bearer + - otelcol.auth.google - otelcol.auth.headers - otelcol.auth.oauth2 - otelcol.auth.sigv4 diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index 4bab64a6bd6..7507309976c 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -82,6 +82,7 @@ body: - mimir.rules.kubernetes - otelcol.auth.basic - otelcol.auth.bearer + - otelcol.auth.google - otelcol.auth.headers - otelcol.auth.oauth2 - otelcol.auth.sigv4 diff --git a/.github/ISSUE_TEMPLATE/proposal.yaml b/.github/ISSUE_TEMPLATE/proposal.yaml index df4e4506521..c75421d50ea 100644 --- a/.github/ISSUE_TEMPLATE/proposal.yaml +++ b/.github/ISSUE_TEMPLATE/proposal.yaml @@ -82,6 +82,7 @@ body: - mimir.rules.kubernetes - otelcol.auth.basic - otelcol.auth.bearer + - otelcol.auth.google - otelcol.auth.headers - otelcol.auth.oauth2 - otelcol.auth.sigv4 diff --git a/collector/go.mod b/collector/go.mod index 66d9c283cb2..dd2a1c4fc6b 100644 --- a/collector/go.mod +++ b/collector/go.mod @@ -268,6 +268,7 @@ require ( github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector v0.55.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.54.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.31.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension v0.55.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.55.0 // indirect github.com/IBM/sarama v1.46.3 // indirect github.com/KimMachineGun/automemlimit v0.7.5 // indirect @@ -710,6 +711,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter v0.147.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/extension/ackextension v0.147.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.147.0 // indirect + github.com/open-telemetry/opentelemetry-collector-contrib/extension/googleclientauthextension v0.147.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/extension/internal/credentialsfile v0.147.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/extension/k8sleaderelector v0.147.0 // indirect github.com/open-telemetry/opentelemetry-collector-contrib/extension/opampcustommessages v0.147.0 // indirect diff --git a/collector/go.sum b/collector/go.sum index 9ac54d2494c..7b4d8b0ef78 100644 --- a/collector/go.sum +++ b/collector/go.sum @@ -419,6 +419,8 @@ github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.54 github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.54.0/go.mod h1:l9rva3ApbBpEJxSNYnwT9N4CDLrWgtq3u8736C5hyJw= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.31.0 h1:xQMhkBXPOKe/GzC6TctwlK2aNF+9k5VwFgdE83rBK2Y= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.31.0/go.mod h1:VLoD5cAsRQXsAFXpOZrrTGzbuMsntlspIZno4xor5Zg= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension v0.55.0 h1:rKcEaxSnVUpmhFNVjRuls5w/6KZrVZNw4kWbYeK3xH4= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension v0.55.0/go.mod h1:K8wtUZ/GzRhA21Dy6XDQJZTbpcMF0Kb6FSaJN+rBLJ0= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.55.0 h1:7t/qx5Ost0s0wbA/VDrByOooURhp+ikYwv20i9Y07TQ= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.55.0/go.mod h1:vB2GH9GAYYJTO3mEn8oYwzEdhlayZIdQz6zdzgUIRvA= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.55.0 h1:0s6TxfCu2KHkkZPnBfsQ2y5qia0jl3MMrmBhu3nCOYk= @@ -1845,6 +1847,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0. github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.147.0/go.mod h1:iCPJltPdOSvckw3kgl3DifMvYasNdOYvDvsJ4fi8lOU= github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/otlpencodingextension v0.147.0 h1:Cx7WcJQKLO/BFaHCwnpH/bbbt8paLQTMxq1fGu5Skzk= github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/otlpencodingextension v0.147.0/go.mod h1:utV5S9gEUzWqIuyPYoecuW346TM/52t6xes7YEQWLCY= +github.com/open-telemetry/opentelemetry-collector-contrib/extension/googleclientauthextension v0.147.0 h1:FmzmUcx/wn8zlKgPfmSaIp8zrom9FCTcLlqZJiZgcb8= +github.com/open-telemetry/opentelemetry-collector-contrib/extension/googleclientauthextension v0.147.0/go.mod h1:UUgldOqz0qDW8xgULBjQLOiKdYuOgDSu6wS/t+eLlvg= github.com/open-telemetry/opentelemetry-collector-contrib/extension/headerssetterextension v0.147.0 h1:jqYiMiW3Eg9kLnKvKgRbWxGcLEWU9PsfyXqTkD1wo9c= github.com/open-telemetry/opentelemetry-collector-contrib/extension/headerssetterextension v0.147.0/go.mod h1:vxTpEw1jQEzx3wjEtXU+p0cfOv5s3f/ULsYRKzu5vYI= github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension v0.147.0 h1:pfSn3AhNXu+YWDPidCVWRAZcjAk0rPImioBF9P/Uv7M= diff --git a/docs/sources/reference/components/otelcol/otelcol.auth.google.md b/docs/sources/reference/components/otelcol/otelcol.auth.google.md new file mode 100644 index 00000000000..ef2c3fa4117 --- /dev/null +++ b/docs/sources/reference/components/otelcol/otelcol.auth.google.md @@ -0,0 +1,101 @@ +--- +canonical: https://grafana.com/docs/alloy/latest/reference/components/otelcol/otelcol.auth.google/ +description: Learn about otelcol.auth.google +labels: + stage: public-preview + products: + - oss +title: otelcol.auth.google +--- + +# `otelcol.auth.google` + +{{< docs/shared lookup="stability/public_preview.md" source="alloy" version="" >}} + +`otelcol.auth.google` exposes a `handler` that other `otelcol` components can use to authenticate requests using Google Application Default Credentials. + +This component only supports client authentication. + +The authorization tokens can be used by HTTP and gRPC based OpenTelemetry exporters. +This component can fetch and refresh expired tokens automatically. +Refer to the [Google Cloud Documentation](https://docs.cloud.google.com/docs/authentication/application-default-credentials) for more information about Application Default Credentials. + +{{< admonition type="note" >}} +`otelcol.auth.google` is a wrapper over the upstream OpenTelemetry Collector [`googleclientauth`][] extension. +Bug reports or feature requests will be redirected to the upstream repository, if necessary. + +[`googleclientauth`]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/{{< param "OTEL_VERSION" >}}/extension/googleclientauthextension +{{< /admonition >}} + +You can specify multiple `otelcol.auth.google` components by giving them different labels. + +## Usage + +```alloy +otelcol.auth.google "