时间图表的KQL查询

KQL query for Time chart

我用过这个查询,但是我无法得到显示CPU趋势的时间图表。似乎只显示当前 cpu。我的objective是显示每台电脑(主机)的趋势

 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

如果我理解正确,请试试这个:

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