我想在时间表上缩放数据系列,以便它与其他系列一起可见。前两个系列代表成功和失败的请求
,第三个系列代表应用程序尝试纠正自身的customEvent
。所有三个系列均已绘制,但由于幅度的相对差异,重新启动系列本质上是一条 0 线。 render
的 ysplit
选项的文档运算符建议 axes
将提供我正在寻找的内容,但所有值似乎都不会影响图表。
requests
| where timestamp > ago(3d) and name has "POST /v1/validation"
| union customEvents | where timestamp > ago(3d)
| extend Event=case(itemType == 'request' and success == "True", "Succeeded", itemType == "request" and success == "False", "Failed", "Restarted")
| summarize Count=count() by Event, bin(timestamp, 1h)
| render timechart
这是使用“重新启动”系列渲染的时间图,但存储桶中的最高数字是 2,因此它本质上是原点处的一条平线。
更新5/3
UX 客户端是 Azure 门户的 Application Insights Analytics 小部件。
最佳答案
下面是如何使用 ysplit 为每个系列创建自定义 y 轴的示例:
range timestamp from ago(3d) to now() step 1m
| extend Event = rand(100)
| extend EventCategory = case(
Event < 80, 1,
Event < 99, 2,
3)
| summarize Count=count() by tostring(EventCategory), bin(timestamp, 1h)
| render timechart with (ysplit=axes)
我无法确定运行您的查询,但我认为也许只需在末尾添加 with (ysplit=axes)
就足以为您提供所需的行为。
关于azure - 如何缩放 Kusto 时间表上的数据系列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55944174/