使用 Kusto 查询语言的具有单个数字的图表

A chart with a single number using Kusto Query Language

我有一个简单的 Kusto 请求,如下所示:

customMetrics
    | where timestamp > ago(10m)
    | where name == "Custom metric number one"
    | summarize sum(value)

很明显,这个查询的结果是一个数字。

我想将此请求固定到仪表板,这样磁贴看起来就像一张卡片,上面有 title/subtitle 和作为 Kusto 请求结果检索的号码。首先,我尝试使用“渲染”运算符,但它可以绘制图表或简单的未格式化 table。我尝试使用“渲染卡”,但 ApplicationInsights 回答说“我们目前不支持 'card' 可视化类型。”

是否有任何其他可能性来创建带有单个数字的所需图块?

为什么不直接固定 table 查询结果:

customMetrics
    | where timestamp > ago(10m)
    | where name == "Custom metric number one"
    | summarize sum(value)

结果

这可能是目前你能做的最接近的一张牌了

还有另一种选择,您可以添加一个 Markdown tile, it can point to a url containing Markdown content so you might be able to create something that periodically updates a certain MD file and show that on the dashboard. You can leverage the Application Insights API 以获得您想要的值,并让 azure 函数生成降价。

另一种选择,如果您有权访问 Power Bi, is to create a Power Bi report that you share with external stakeholders/non developers.When going that direction you can use all the rich visuals Power Bi provides in combination with data from Application Insights, including cards. See the docs