首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >时间图的KQL查询

时间图的KQL查询
EN

Stack Overflow用户
提问于 2022-05-17 14:57:52
回答 1查看 307关注 0票数 1

我使用了这个查询,但是我无法获得显示CPU趋势的时间图。似乎只显示当前cpu。我的目标是显示每台计算机(主机)的趋势。

代码语言:javascript
复制
 Telemetry_system
 | where hostname_s contains "computer-A"
 | where TimeGenerated > ago(5m)
 | summarize
  by
 hostname,
 callBackUrl,
 cpu_d
 | summarize Aggregatedcpu= avg(cpu_d) by hostname, callBackUrl
 | render timechart
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-05-17 15:16:38

如果我正确理解您的意图,请尝试如下:

代码语言:javascript
复制
Telemetry_system
| where hostname_s contains "computer-A"
| where TimeGenerated > ago(5m)
| summarize Aggregatedcpu = avg(cpu_d) by strcat(hostname, "_", callBackUrl), bin(TimeGenerated, 1s)
| render timechart
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72276287

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档