-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[exporter/azuremonitor] Unable to use APPLICATIONINSIGHTS_CONNECTION_STRING #36319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi @audunsolemdal , I can't reproduce and can use |
I was hoping it was possible to set it at the pod which is sending data to the collector, not the collector itself. I guess that was wishful thinking when reading the docs. Is there a way to send data from the OTEL collector to one or more target application insights without specifying the connection strings at the OTEL collector level? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Looks you want to set the env to a pod, which is not running collector. Thus, how does collector know this value from env? TBH, I don't think it could work if collector doesn't know the env. Same for other collector components that needs to read data from env. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
exporter/azuremonitor
What happened?
Description
According to the docs
this should be possible according to the docs, but my otel-collector crashes when doing this.
Steps to Reproduce
Create an otel-collector with the following exporter config
container crashes
Expected Result
Able to use APPLICATION_INSIGHTS_CONNECTION_STRING as an environment variable on the pod sending data to the otel collector to simplify configuration overhead.
Actual Result
OTEL collector crashes if connection string is not set
Collector version
otel/opentelemetry-collector-k8s:0.111.0
Environment information
Environment
otel-collector helm chart
OpenTelemetry Collector configuration
Log output
Additional context
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/azuremonitorexporter/README.md#configuration-options
Relates to #34188
The text was updated successfully, but these errors were encountered: