如何在 Kusto 时间表上缩放数据系列
How to scale a data series on a Kusto timechart
我想在时间图表上缩放数据系列,以便它与其他系列一起可见。前两个系列代表成功和失败 requests
,第三个系列代表 customEvent
应用程序试图自我纠正。所有三个系列都被绘制出来,但由于幅度的相对差异,重启系列本质上是一条 0 点的线。 render
运算符的 ysplit
选项的文档表明 axes
会提供我正在寻找的内容,但 none 的值似乎会影响图表。
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
这是使用 Restarted 系列渲染的时间图,但桶中的最高数字是 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)
就足以为您提供所需的行为。
我想在时间图表上缩放数据系列,以便它与其他系列一起可见。前两个系列代表成功和失败 requests
,第三个系列代表 customEvent
应用程序试图自我纠正。所有三个系列都被绘制出来,但由于幅度的相对差异,重启系列本质上是一条 0 点的线。 render
运算符的 ysplit
选项的文档表明 axes
会提供我正在寻找的内容,但 none 的值似乎会影响图表。
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
这是使用 Restarted 系列渲染的时间图,但桶中的最高数字是 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)
就足以为您提供所需的行为。