azure - 从 KQL 访问仪表板的时间范围和粒度

标签 azure azure-log-analytics kql azure-monitoring

我已使用 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/

相关文章:

azure - 断开 Azure VM 与 loganalytics 工作区的连接

azure - 如何在 Azure Monitor 工作簿中显示请求的折线图?

Azure Log Analytics StackTrace 不完整

azure - Azure 云服务出现 503 错误

angular - 在 Azure 上部署 Angular 2 'Quick Start' 示例

使用 Azure Log Analytics 进行 Python 应用程序日志记录

azure - 如何查找谁在Azure Portal的Keyvault中创建/编辑了 secret ?

regex - 如何编写使用正则表达式过滤 where 子句的 Kusto 查询

azure - 使用 Powershell 完全删除 Azure 订阅

.net - Azure 表存储插入或替换结果