|
| 1 | +--- |
| 2 | +title: Troubleshoot Missing Telemetry in Application Insights |
| 3 | +description: Helps troubleshoot telemetry problems with auto-instrumentation in Application Insights. |
| 4 | +ms.service: azure-monitor |
| 5 | +ms.custom: sap:Application Insights |
| 6 | +ms.date: 05/21/2025 |
| 7 | +--- |
| 8 | +# Troubleshoot missing telemetry in Azure Monitor Application Insights |
| 9 | + |
| 10 | +This article provides a step-by-step guide to troubleshoot issues when no data appears in a workspace-based Application Insights resource. |
| 11 | + |
| 12 | +## Prerequisites |
| 13 | + |
| 14 | +Ensure that the Kubernetes command-line tool (`kubectl`) is installed and configured. |
| 15 | + |
| 16 | +## Troubleshooting steps |
| 17 | + |
| 18 | +1. Confirm the pod is in the running state. |
| 19 | + |
| 20 | +2. Verify the deployment is instrumented |
| 21 | + |
| 22 | +3. Check for the monitor.azure.com/instrumentation annotation on the deployment and its latest replica set. |
| 23 | + |
| 24 | + The annotation should be present with proper JSON in the following pattern: |
| 25 | + |
| 26 | + `{"crName": "crName1","crResourceVersion": "20177993","platforms":["Java"]}` |
| 27 | + |
| 28 | +4. If the annotation is present, the deployment is instrumented, and you should proceed to the next step. If the annotation isn't present, then the deployment isn't instrumented. In this case, restart the deployment by following these steps: |
| 29 | + |
| 30 | + 1. [Prepare your cluster](/azure/azure-monitor/app/kubernetes-codeless#prepare-a-cluster). |
| 31 | + 2. Confirm the following things: |
| 32 | + - The *Instrumentation* custom resource is in the correct namespace as the deployment. |
| 33 | + - The *Instrumentation* custom resource contains the correct connection string and instrumentation platform. |
| 34 | + 3. [Restart the deployment](/azure/azure-monitor/app/kubernetes-codeless#restart-deployment). |
| 35 | + |
| 36 | +5. Check for networking errors in the SDK log located in the pod's logs volume: /var/log/applicationinsights. |
| 37 | + |
| 38 | + For example, the following errors indicate a connectivity issue: |
| 39 | + |
| 40 | + - > Ingestion endpoint could not be reached. |
| 41 | + - > Error: getaddrinfo ENOTFOUND eastus2-3.in.applicationinsights.azure.com |
| 42 | + - > getaddrinfo ENOTFOUND eastus2-3.in.applicationinsights.azure.com |
| 43 | +
|
| 44 | + If this type of error exists, sign into the container and test connectivity to the endpoint. |
| 45 | + |
| 46 | + ```console |
| 47 | + kubectl exec -ti customer-java-1-1234567890-abcde -- /bin/bash |
| 48 | + ``` |
| 49 | + |
| 50 | + If connectivity can't be established, troubleshoot the network connectivity issue such as firewall or name resolution issues. |
| 51 | + |
| 52 | +[!INCLUDE [Azure Help Support](../../../../includes/azure-help-support.md)] |
0 commit comments