在 application insights 中,如何找到某个时间点的 Web 服务的 servers/instances 数量?

in application insights, how to find the number of servers/instances for a web service at a point in time?

如果您在 AI 中查看 Web 服务的实时指标,它会显示当前活动的服务器数量(这是动态的,它会根据负载上下波动)。

我们有一些周期性的重大站点问题,我们认为这可能是当 Azure 销售增加并添加新实例时,但无法找到 recording/tracking/graphic/querying 这个问题的任何方法。

服务器数量显示在“实时指标”中。现在我可以看到我们有 5 个。

它们也显示在 Performance->roles 中,但这现在只显示服务器(又名角色)的数量,不幸的是我看不到任何历史记录。

关于如何查看 if/when 新实例已创建 and/or 已销毁的任何想法?

实际上,由于应用服务计划不支持diagnostics settings.

,因此很难在历史记录中找出新实例何时创建/销毁

最相似的方法是查询请求日志,然后您可能会发现更改。如下查询(在 Azure 门户中编写查询 -> 您的应用程序见解 -> 日志):

requests 
| project timestamp, cloud_RoleName, cloud_RoleInstance
| order by timestamp desc