Skip to content

Commit 077936e

Browse files
authored
AB#5828: AKS Autoinstrumentation Troubleshooting
1 parent 7719d24 commit 077936e

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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)]

support/azure/azure-monitor/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ items:
2323
href: app-insights/telemetry/investigate-missing-telemetry.md
2424
- name: Troubleshoot auto-instrumentation issues
2525
href: app-insights/telemetry/auto-instrumentation-troubleshoot.md
26+
- name: Troubleshoot missing telemetry
27+
href: app-insights/telemetry/troubleshoot-missing-telemetry.md
2628
- name: Troubleshoot high data ingestion
2729
href: app-insights/telemetry/troubleshoot-high-data-ingestion.md
2830
- name: Application Insights classic SDK troubleshooting

0 commit comments

Comments
 (0)