Azure Application Insights 如何确定流量峰值的来源

Azure Application Insights how to determine where traffic spikes are coming from

我们有一个应用程序服务(网站)每 15 分钟就会收到一些请求,使其启动 5 个服务来处理流量。

我们如何确定命中率最高的请求的地理位置和 ips?

首先,对于ips,Application insights默认不存储真实ips(它将ip存储为0.0.0.0)。并且如果你想收集ips,请关注this article.

How do we determine the geolocation and ips of the requests that are hitting it the most?

最简单的方法,你可以写Kusto query in azure portal(assume you can collect the ips / locations like city or country), and add some where clauses to filter / use summarize operator and sort operateor来查看结果。这是一个简单的查询: