lib/storage: do not take into account series from the next day when match[] filter is passed to /api/v1/status/tsdb

This commit is contained in:
Aliaksandr Valialkin 2022-05-31 12:15:12 +03:00
parent cd1fa2e4cd
commit 727cc119b6
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -1368,7 +1368,7 @@ func (is *indexSearch) getTSDBStatusWithFiltersForDate(tfss []*TagFilters, date
if len(tfss) > 0 { if len(tfss) > 0 {
tr := TimeRange{ tr := TimeRange{
MinTimestamp: int64(date) * msecPerDay, MinTimestamp: int64(date) * msecPerDay,
MaxTimestamp: int64(date+1) * msecPerDay, MaxTimestamp: int64(date+1) * msecPerDay - 1,
} }
metricIDs, err := is.searchMetricIDsInternal(tfss, tr, maxMetrics) metricIDs, err := is.searchMetricIDsInternal(tfss, tr, maxMetrics)
if err != nil { if err != nil {