Ted*_*ord 7 azure azure-application-insights azure-data-explorer
我想在时间图上缩放数据系列,以便它与其他系列可见。前两个系列代表成功和失败requests,第三个系列代表customEvent尝试纠正自身的应用程序。所有三个系列都被绘制出来,但由于幅度的相对差异,重启系列本质上是一条在 0 处的线。操作员ysplit选项 的文档render表明这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
Run Code Online (Sandbox Code Playgroud)
这是使用 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)
Run Code Online (Sandbox Code Playgroud)
我无法确定运行您的查询,但我认为也许只需添加with (ysplit=axes)到末尾就足以为您提供所需的行为。
| 归档时间: |
|
| 查看次数: |
2664 次 |
| 最近记录: |