-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[exporter/azuremonitor] collector can't send data to different azure application insights #34188
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. |
We saw the same issue, azuremonitor exporter is not able to send multiple application insights if you use connection_string but somehow it does work if you use the legacy instrumentation_key instead |
Is there any update on this? Microsoft intends to deprecate the use of Instrumentation Keys by the end of March 2025. See announcement |
Currently, azuremonitor exporter doesn't support sending to multiple destinations. Even for instrumentation key solution, if you specify 2 different destination with different endpoints, it'll not work. I've submitted a PR to support sending to multiple application insights to address this issue. #36700 |
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. |
…rter (#36700) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description currently, azuremonitor exporter doesn't support sending to multiple application insights. This PR will add this feature. <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes #34188 <!--Describe what testing was performed and which tests were added.--> #### Testing <!--Describe the documentation added.--> #### Documentation No additional configs. <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: Antoine Toulme <[email protected]> Co-authored-by: Antoine Toulme <[email protected]>
Component(s)
exporter/azuremonitor
Describe the issue you're reporting
Hi team,
We're trying to send the data to different Application insights, use the demo under opentelemetry-collector-contrib/examples/demo/,
and also add
semconv.ServiceNamespaceKey.String("GROUPB")|semconv.ServiceNamespaceKey.String("GROUPA")
for client and serverHere is the config of collector:
docker-compose.yml:
when I start it, Collector shows error as :
"2024-07-22T06:07:36.637Z debug [email protected]/factory.go:139 #78 - 400 Invalid instrumentation key {"kind": "exporter", "data_type": "traces", "name": "azuremonitor/groupb"}
2024-07-22T06:07:36.637Z debug [email protected]/factory.go:139 Telemetry item:
{"ver":1,"name":"Microsoft.ApplicationInsights.Metric","time":"2024-07-22T06:07:34.864590456Z","sampleRate":100,"seq":"","iKey":"","tags":{"ai.cloud.role":"demo-client","ai.internal.sdkVersion":"otelc-v0.96.0-lin-arm64"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"demo_client/line_counts","kind":0,"value":18527,"count":1,"min":0,"max":0,"stdDev":0}],"properties":{"client":"cli","host.name":"4a824b92f1b5","instrumentationlibrary.name":"demo-client-meter","method":"repl","process.command_args":"","process.executable.name":"main","process.executable.path":"/app/main","process.owner":"root","process.pid":"","process.runtime.description":"go version go1.22.5 linux/arm64","process.runtime.name":"go","process.runtime.version":"go1.22.5","service.name":"demo-client","service.namespace":"GROUPB","telemetry.sdk.language":"go","telemetry.sdk.name":"opentelemetry","telemetry.sdk.version":"1.28.0"}}}}"
Could you please take a look at it?
The text was updated successfully, but these errors were encountered: