我已使用 KQL 将图表和日志从 Azure Log Analytics 添加到仪表板。我正在使用 make-series ,效果很好,但问题如下:
我收到的日志可能不会扩展到仪表板规定的整个时间范围。所以基本上我需要访问开始时间/结束时间(和时间粒度)以使 make-series
覆盖整个时间范围。
例如
logs
| make-series
P90 = percentile(Elapsed, 90) default = 0,
Average = avg(Elapsed) default = 0
// ??? need start/end time to use in from/to
on TimeGenerated step 1m
最佳答案
目前不支持。关于此功能有一些反馈:Support for time granularity selected in Azure Portal Dashboard ,和Retrieve the portal time span and use it inside the kusto query .
有些人在 the first feedback 中提供了解决方法,你可以尝试一下。
关于azure - 从 KQL 访问仪表板的时间范围和粒度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66846671/