【问题标题】:Application Insights Analytics - Chart X axisApplication Insights Analytics - 图表 X 轴
【发布时间】:2017-06-16 13:18:30
【问题描述】:

如何为查询呈现图表

performanceCounters
| where name == "% Processor Time" 
| summarize avg(value) by bin(timestamp, 5s),cloud_RoleInstance 

我每 5 秒而不是每 1 分钟得一分?

【问题讨论】:

    标签: azure-application-insights ms-app-analytics aiql


    【解决方案1】:

    按固定间隔(大约 1 分钟)收集性能计数器,bin 函数的效果会将时间戳移动到最接近的 5 秒间隔。您所看到的是由于计数器收集间隔,您不会获得那种粒度。您需要实现自己的模块才能做到这一点。

    https://github.com/Microsoft/ApplicationInsights-dotnet-server/blob/v2.3.0/Src/PerformanceCollector/Shared/PerformanceCollectorModule.cs#L49

    【讨论】:

      猜你喜欢
      • 2018-10-29
      • 1970-01-01
      • 1970-01-01
      • 2022-12-19
      • 1970-01-01
      • 2017-07-24
      • 2019-01-13
      • 2022-01-08
      • 1970-01-01
      相关资源
      最近更新 更多