Unverified Commit 9e8df5ad authored by Ben Ye's avatar Ben Ye Committed by GitHub
Browse files

check latest exemplar timestamp (#8782)


Signed-off-by: default avataryeya24 <yb532204897@gmail.com>
parent 27b78c33
......@@ -121,6 +121,9 @@ func (ce *CircularExemplarStorage) Select(start, end int64, matchers ...[]*label
for _, idx := range ce.index {
var se exemplar.QueryResult
e := ce.exemplars[idx.oldest]
if e.exemplar.Ts > end || ce.exemplars[idx.newest].exemplar.Ts < start {
continue
}
if !matchesSomeMatcherSet(e.seriesLabels, matchers) {
continue
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment