Azure 日志分析简单饼图

标签 azure azure-log-analytics azure-data-explorer

我有一个查询,例如;

示例_CL |其中 field1 ==“名称” |按时间生成的前 1 名描述

给我最新的一行,其中包含“name”的最新值,例如;

name        quota   used
samplename  100     75 

我正在尝试制作一个显示 75/100 的圆环图。

最佳答案

这行得通吗?

datatable(field1:string, quota:int, used:int)
[
    "somename", 100, 75
]
| project used, unsued = quota - used
| evaluate narrow()
| project Column, toint(Value)
| render piechart

enter image description here

关于Azure 日志分析简单饼图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54223325/

相关文章:

azure - 应用程序洞察 : Analytics - how to extract string at specific position

azure - 如何从 Azure AD 查找重复用户?

azure - azure容器组中的多个容器部署

django - aadsts50011 : the reply url specified in the request does not match the reply urls configured for the application: 'App id' . 本地主机配置

azure - 新添加的列的数据永远不会写入 Log Analytics 工作区中的现有自定义表中

azure - 无法将存储帐户链接到日志分析工作区

azure - 如何在 Kusto 中使用 Materialize?

Azure DevOps 集合级别自定义组

Azure Log Analytics - 更新/添加 FunctioAlias 到 SavedSearch 查询

azure - 有没有办法可以在 Kusto 查询中执行 "for loop"?