【问题标题】:kusto percentile converstionkusto 百分位转换
【发布时间】:2023-03-10 06:56:01
【问题描述】:

我在 KUSTO 上进行了此搜索,但在转换为百分位数时遇到问题。我可以转换为 Gig/sec,但不能转换为百分位数。当我这样做时,我只得到总数的百分位数,而不是每个百分位数。任何帮助都非常感谢。

AzureMetrics
             | where ResourceId contains "route"
             | where MetricName == "BitsInPerSecond"
             | where TimeGenerated > (now() - 60m) and TimeGenerated <= now()
             | summarize by Resource, inGigabitPersec=Maximum/100000000
             | summarize percentiles(inGigabitPersec, 100)

谢谢

【问题讨论】:

    标签: azure azure-data-explorer kql


    【解决方案1】:

    percentiles() 是一个聚合函数(如 count()、sum()),如果您想为“资源”的每个值计算它。下一个示例计算每个资源的 P90、P95 和 P100:

    AzureMetrics
    | where ResourceId contains "route"
    | where MetricName == "BitsInPerSecond"
    | where TimeGenerated > (now() - 60m) and TimeGenerated <= now()
    | extend inGigabitPersec=Maximum/100000000
    | summarize percentiles(inGigabitPersec, 90, 95, 100) by Resource
    

    【讨论】:

      猜你喜欢
      • 2021-11-17
      • 2017-11-20
      • 1970-01-01
      • 2016-10-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多