Join Slack
Powered by
hi <#C01HWQ1R0BC|support> - I am trying to add aut...
# support
k
Kumaran Ilangovan
03/25/2022, 3:54 PM
hi
#support
- I am trying to add auth for my collector - and adding the credentials for my agent. This is a reference for agent config.
https://gist.github.com/jpkrohling/9058110b7ca99f9658a123448084f608#file-agent-with-oauth2client-yaml-L5
In opentelemetry agents - can we provide all these extension fields as environment variables? Something like, For yaml, extensions: oauth2client: client_id: agent client_secret: Dl76n1p8P2SEdqhcyfcqtmNJi8Kf5LG3 token_url:
http://localhost:8080/auth/realms/opentelemetry/protocol/openid-connect/token
Can i add these in envi like, OTEL_EXTENSIONS_OAUTH2CLIENT_CLIENT_ID and so on?
s
Srikanth Chekuri
03/25/2022, 4:01 PM
No, you can't do that (as of today).
k
Kumaran Ilangovan
03/25/2022, 4:13 PM
Thanks
@User
Also, how can i provide this agent yaml for java and javascript agent instrumentation?
s
Srikanth Chekuri
03/25/2022, 4:19 PM
I am not aware of client sdks/libraries doing anything with collector config yaml.
k
Kumaran Ilangovan
03/25/2022, 4:46 PM
sure
@User
- thanks
4
Views
Open in Slack
Previous
Next