From bac75ea8a2b80cf3a5ebb9ebd80ad21e4165ed0b Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 31 May 2022 12:15:12 +0300 Subject: [PATCH] lib/storage: do not take into account series from the next day when `match[]` filter is passed to /api/v1/status/tsdb --- lib/storage/index_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index 6c0dd55f0..a9fc26900 100644 --- a/lib/storage/index_db.go +++ b/lib/storage/index_db.go @@ -1345,7 +1345,7 @@ func (is *indexSearch) getTSDBStatusWithFiltersForDate(tfss []*TagFilters, date if len(tfss) > 0 { tr := TimeRange{ MinTimestamp: int64(date) * msecPerDay, - MaxTimestamp: int64(date+1) * msecPerDay, + MaxTimestamp: int64(date+1) * msecPerDay - 1, } metricIDs, err := is.searchMetricIDsInternal(tfss, tr, maxMetrics) if err != nil {