mirror of
https://github.com/prometheus/prometheus
synced 2026-05-01 07:30:30 +08:00
check latest exemplar timestamp (#8782)
Signed-off-by: yeya24 <yb532204897@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user