Skip to content

Instantly share code, notes, and snippets.

@jpkrohling
Last active March 25, 2022 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpkrohling/9058110b7ca99f9658a123448084f608 to your computer and use it in GitHub Desktop.
Save jpkrohling/9058110b7ca99f9658a123448084f608 to your computer and use it in GitHub Desktop.
Securing the collector - agent config
extensions:
oauth2client:
client_id: agent
client_secret: Dl76n1p8P2SEdqhcyfcqtmNJi8Kf5LG3
token_url: http://localhost:8080/auth/realms/opentelemetry/protocol/openid-connect/token
receivers:
otlp:
protocols:
grpc:
processors:
exporters:
otlp:
endpoint: https://localhost:4318
tls:
ca_file: /tmp/certs/ca.pem
auth:
authenticator: oauth2client
service:
telemetry:
metrics:
address: :8988
extensions: [oauth2client]
pipelines:
traces/agent:
receivers: [otlp]
processors: []
exporters: [otlp]
@ikumaran29
Copy link

In agents, where should we use this?
Example for java agent, where should we use this...

@jpkrohling
Copy link
Author

This is for the OpenTelemetry Collector deployed as an agent, not for Java Agents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment