Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何为查询呈现图表
performanceCounters | where name == "% Processor Time" | summarize avg(value) by bin(timestamp, 5s),cloud_RoleInstance
我在哪里每 5 秒而不是每 1 分钟得一分?
Perf 计数器以固定间隔(大约 1 分钟)收集,bin 函数的效果会将时间戳移动到最接近的 5 秒间隔。您看到的是由于计数器收集间隔,您不会获得那种粒度。您需要实现自己的模块才能做到这一点。
https://github.com/Microsoft/ApplicationInsights-dotnet-server/blob/v2.3.0/Src/PerformanceCollector/Shared/PerformanceCollectorModule.cs#L49