From 4c1584dd5cd527cb20d8ec86146010474c6124db Mon Sep 17 00:00:00 2001 From: naiba Date: Mon, 16 Feb 2026 02:18:57 +0800 Subject: [PATCH] feat(tsdb): increase 1d downsample resolution from 5min to 30s --- pkg/tsdb/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tsdb/query.go b/pkg/tsdb/query.go index e5b7379..6f4d8ff 100644 --- a/pkg/tsdb/query.go +++ b/pkg/tsdb/query.go @@ -48,7 +48,7 @@ func (p QueryPeriod) Duration() time.Duration { } // DownsampleInterval 返回降采样间隔 -// 1d: 5分钟一个点 (288个点) +// 1d: 30秒一个点 (2880个点) // 7d: 30分钟一个点 (336个点) // 30d: 2小时一个点 (360个点) func (p QueryPeriod) DownsampleInterval() time.Duration { @@ -58,7 +58,7 @@ func (p QueryPeriod) DownsampleInterval() time.Duration { case Period30Days: return 2 * time.Hour default: - return 5 * time.Minute + return 30 * time.Second } }