Skip to content

Commit 2a76ffc

Browse files
Merge pull request #260978 from nzamoralopez/docs-editor/data-ingestion-time-1702396086
Included ingestion latency references specific to Application Insights telemetry
2 parents 0ec82a3 + 885e136 commit 2a76ffc

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

articles/azure-monitor/logs/data-ingestion-time.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Heartbeat
149149

150150
Different data types originating from the agent might have different ingestion latency time, so the previous queries could be used with other types. Use the following query to examine the ingestion time of various Azure services:
151151

152+
152153
``` Kusto
153154
AzureDiagnostics
154155
| where TimeGenerated > ago(8h)
@@ -157,6 +158,40 @@ AzureDiagnostics
157158
| summarize percentiles(E2EIngestionLatency,50,95), percentiles(AgentLatency,50,95) by ResourceProvider
158159
```
159160

161+
Additionally, the same query logic can be used to diagnose latency conditions for Application Insights data:
162+
163+
164+
```kusto
165+
// Classic Application Insights schema
166+
let start=datetime("2023-08-21 05:00:00");
167+
let end=datetime("2023-08-23 05:00:00");
168+
requests
169+
| where timestamp > start and timestamp < end
170+
| extend TimeEventOccurred = timestamp
171+
| extend TimeRequiredtoGettoAzure = _TimeReceived - timestamp
172+
| extend TimeRequiredtoIngest = ingestion_time() - _TimeReceived
173+
| extend EndtoEndTime = ingestion_time() - timestamp
174+
| project timestamp, TimeEventOccurred, _TimeReceived, TimeRequiredtoGettoAzure , ingestion_time(), TimeRequiredtoIngest, EndtoEndTime
175+
| sort by EndtoEndTime desc
176+
```
177+
178+
179+
```kusto
180+
// Workspace-based Application Insights schema
181+
let start=datetime("2023-08-21 05:00:00");
182+
let end=datetime("2023-08-23 05:00:00");
183+
AppRequests
184+
| where TimeGenerated > start and TimeGenerated < end
185+
| extend TimeEventOccurred = TimeGenerated
186+
| extend TimeRequiredtoGettoAzure = _TimeReceived - TimeGenerated
187+
| extend TimeRequiredtoIngest = ingestion_time() - _TimeReceived
188+
| extend EndtoEndTime = ingestion_time() - TimeGenerated
189+
| project TimeGenerated, TimeEventOccurred, _TimeReceived, TimeRequiredtoGettoAzure , ingestion_time(), TimeRequiredtoIngest, EndtoEndTime
190+
| sort by EndtoEndTime desc
191+
```
192+
193+
The two queries above can be paired with any other Application Insights table other than "requests".
194+
160195
### Resources that stop responding
161196
In some cases, a resource could stop sending data. To understand if a resource is sending data or not, look at its most recent record, which can be identified by the standard `TimeGenerated` field.
162197

0 commit comments

Comments
 (0)