Skip to content

Files

Latest commit

 

History

History

googleclientauthextension

Google Client Auth Extension

Status
Stability alpha
Distributions []
Issues Open issues Closed issues
Code Owners @dashpole, @aabmass, @jsuereth, @punya, @psx95

This extension provides Google OAuth2 Client Credentials and Metadata for gRPC and http based exporters.

Configuration

extensions:
  googleclientauth:

receivers:
  otlp:
    protocols:
      grpc:

exporters:
  otlp/withauth:
    endpoint: 0.0.0.0:5000
    ca_file: /tmp/certs/ca.pem
    auth:
      authenticator: googleclientauth

service:
  extensions: [googleclientauth]
  pipelines:
    metrics:
      receivers: [otlp]
      processors: []
      exporters: [otlp/withauth]

The following optional config fields are available:

  • project - The Google Cloud Project telemetry is sent to if the gcp.project.id resource attribute is not set. If unspecified, this is determined using application default credentials.
  • scopes - The oauth 2.0 scopes requested by the extension.
  • quota_project - The project for quota and billing purposes. The caller must have serviceusage.services.use permission on the project.
  • token_type - The type of generated token. Default: access_token
  • audience - The audience claim used for generating ID token