-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Azure Monitor Exporter: Telemetry is not exported to Azure Monitor #36704
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I can't reproduce and can send data to app insight in the latest main branch. Is there any log? |
@hgaol I don't get any errors in the logs. When I'm switching to the 0.99.0 version it works fine. Did you try using an OTel Collector configuration similar to mine? Did you use the Instrumentation Key to connecto to the Azure App Insights? Thanks. |
@akakarikos could you try connection string? For instrumentation key, if you didn't provide endpoint, it'll use a default one, which may not be the correct one. While connection string has endpoint info and azuremonitorexporter will parse and use the endpoint in it. BTW, you can enable debug log to see if any abnormal logs. service:
pipelines:
metrics/1:
receivers: [otlp]
exporters: [azuremonitor/3]
telemetry:
logs:
level: debug When I use similar config as yours, I found below error.
|
@hgaol you're right, the connection string worked fine. Also, thanks for the tip with the debug logs. It's a bit weird though because when downgrading to version 0.99.0 it works fine with the instrumentation key. Maybe something has changed in the newer versions and works only with the connection string? If so, I think it should be documented. |
Hi @akakarikos , I found it's truly a bug. I've created a PR to fix it and have validated locally. After PR merged, you can try again with |
That makes sense. Thanks for the investigation. |
Component(s)
exporter/azuremonitor
What happened?
Description
After upgrading to otel-contrib image version 0.115.1 no telemetry is exported to Azure Monitor (Application Insights).
Steps to Reproduce
Upgrade otel-contrib image version to 0.115.1 and add the exporters/azuremonitor to the logs and traces pipelines.
Expected Result
All telemetry (logs,traces) should be exported to Azure Monitor (Application Insights).
Actual Result
No telemetry is exported/shown in Azure Monitor.
Collector version
0.115.0
Environment information
Environment
OTel Version: 0.115.0.
OTel Contrib Image version: 0.115.1
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: