mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
check latest exemplar timestamp (#8782)
Signed-off-by: yeya24 <yb532204897@gmail.com>
This commit is contained in:
parent
27b78c336e
commit
9e8df5ade9
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue