Investigate Root Cause for Latency with Azure App Insights

In this article, I will demonstrate how to pinpoint the root cause when end users experience general latency. Azure Monitor - Application Insights will be instrumental in this process.

Firstly, we need to navigate to the Performance blade of the Application Insights instance.

Operation Performance

Following that, it's better to apply filters to refine the dataset.

Server

As we aim to identify the lowest performance, it is advisable to conduct the investigation using the 99th percentile.

Operations

There is a distinct outlier present. Let's delve deeper into the investigation by narrowing down the time range to examine specific instances of the failure.

Distinct Outlier present

The DELTA indicates the extent to which the selected data points differ from the rest of the transactions within the chosen timeframe.

The Insights tile lets you identify the specific method, representing the best possible cause, that contributes to the majority of the latency, as illustrated below.

Identify the specific method

Utilize the Distribution of Durations tile to narrow down and select the incidents with the least performance. Check samples for further analysis.

Distribution of Duration tile

This analysis is very important in pinpointing the root cause of latency and facilitating the implementation of necessary corrective actions.