Azure应用程序见解查询以监视趋势比较

时间:2020-08-31 20:39:17

标签: azure monitoring azure-application-insights health-monitoring azure-monitoring

我正在寻找比较Azure App Insights中不同趋势的图表,如下图所示

enter image description here

我们可以有任何示例查询来比较同一图表中的多个事件吗?有人可以帮助在Azure Application Insights中获取示例查询或参考文档吗?

1 个答案:

答案 0 :(得分:1)

您可以使用工作簿或在Log Analytics查询窗口中执行以下操作:

customEvents
| summarize count() by name, bin(timestamp, 7d)

enter image description here

enter image description here

对于AppInsights customEvent数据,上述查询将起作用,如果它是更传统的Azure Monitor / Log Analytics事件,则由于表/字段名称不同,您将需要不同的查询。

Log Analytics使用TimeGenerated,而传统的App Insights资源使用Timestamp。