Kusto:制作系列在第一天就停止了——没有按预期工作
Kusto: make-series stops with first day - doesnt work as expected
我正在使用 Azure 客户指标来存储应用程序使用指标,我每 5 分钟导出一次统计数据。我正在使用下面的查询创建一个没有任何间隙的聚合系列。
我预计开始时间为 5/10/2020,12:00:00.000 AM,结束时间为 5/14/2020, 12:00:00.000 点。但是在我的结果中,开始很好,但结束是 5/10/2020,10:35:00.000 AM。我是 运行 这个查询 5/13/2020,4:09:07.878 AM。我数据中的最小时间戳是 5/11/2020,12:54:06.489 PM,最大值是 5/12/2020,2:32:47 .459 下午.
我的查询有什么问题?为什么 make-series 不会给出第 1 天之后的行
let start = floor(ago(1d),1d);
let end = floor(now(+1d),1d);
customMetrics
| where timestamp >= start
| where name == "endpoint_access_count_count_view"
| extend customMetric_valueSum = iif(itemType == 'customMetric',valueSum,todouble(''))
| make-series n_req = sum(customMetric_valueSum) on timestamp from start to end step 5m
| mvexpand n_req,timestamp
| extend timestamp=todatetime(timestamp),n_req=toint(n_req)
mvexpand
与 mv-expand
(注意连字符)不同,默认限制为 128 个值,因此您的结果会被截断。
https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/mvexpandoperator
我正在使用 Azure 客户指标来存储应用程序使用指标,我每 5 分钟导出一次统计数据。我正在使用下面的查询创建一个没有任何间隙的聚合系列。
我预计开始时间为 5/10/2020,12:00:00.000 AM,结束时间为 5/14/2020, 12:00:00.000 点。但是在我的结果中,开始很好,但结束是 5/10/2020,10:35:00.000 AM。我是 运行 这个查询 5/13/2020,4:09:07.878 AM。我数据中的最小时间戳是 5/11/2020,12:54:06.489 PM,最大值是 5/12/2020,2:32:47 .459 下午.
我的查询有什么问题?为什么 make-series 不会给出第 1 天之后的行
let start = floor(ago(1d),1d);
let end = floor(now(+1d),1d);
customMetrics
| where timestamp >= start
| where name == "endpoint_access_count_count_view"
| extend customMetric_valueSum = iif(itemType == 'customMetric',valueSum,todouble(''))
| make-series n_req = sum(customMetric_valueSum) on timestamp from start to end step 5m
| mvexpand n_req,timestamp
| extend timestamp=todatetime(timestamp),n_req=toint(n_req)
mvexpand
与 mv-expand
(注意连字符)不同,默认限制为 128 个值,因此您的结果会被截断。
https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/mvexpandoperator