【问题标题】:Azure application Insights query for monitoring trend comparison用于监控趋势比较的 Azure 应用程序 Insights 查询
【发布时间】:2020-08-31 20:39:17
【问题描述】:

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

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

【问题讨论】:

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


    【解决方案1】:

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

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

    对于 AppInsights customEvent 数据,上述查询可以工作,如果它是更传统的 Azure Monitor/Log Analytics 事件,那么您将需要不同的查询,因为表/字段名称不同。

    Log Analytics 使用 TimeGenerated,而经典 App Insights 资源使用 Timestamp。

    【讨论】:

      猜你喜欢
      • 2011-07-29
      • 1970-01-01
      • 1970-01-01
      • 2019-07-17
      • 1970-01-01
      • 1970-01-01
      • 2022-01-16
      • 1970-01-01
      • 2020-08-15
      相关资源
      最近更新 更多