【问题标题】:Kusto: Adding additional columns from specific dataKusto:从特定数据添加其他列
【发布时间】:2020-01-08 12:36:28
【问题描述】:

使用 Azure Log Analytics 中的 Kusto,我试图完成对特定时间段内处理器活动的概览。像这样的:

Perf 
| where TimeGenerated between ((startofday(now())) .. (endofday(now())))
| where Computer == "servername.domain.local"
| where ObjectName == "Processor Information" and CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize avg(CounterValue) by bin(TimeGenerated, 1m)
| render timechart 

我想添加的是来自处理器内核的数据,而不是总处理时间,并将其显示在时间表中。我已经搞砸了一天,但我似乎无法让它工作。所以基本上它归结为执行多个 where 语句并将结果放在单独的列中(我认为)

谁能分享一些见解?

【问题讨论】:

    标签: performance processor azure-data-explorer


    【解决方案1】:

    您似乎需要将“InstanceName”列添加到汇总运算符的“by”子句中,例如:

    Perf 
    | where TimeGenerated between ((startofday(now())) .. (endofday(now())))
    | where Computer == "servername.domain.local"
    | where ObjectName == "Processor Information" and CounterName == "% Processor Time" 
    | summarize avg(CounterValue) by bin(TimeGenerated, 1m), InstanceName
    | render timechart 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-25
      • 2019-04-04
      相关资源
      最近更新 更多