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 11f91532c5
commit bac75ea8a2
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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 {