mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 13:57:36 -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 {
|
for _, idx := range ce.index {
|
||||||
var se exemplar.QueryResult
|
var se exemplar.QueryResult
|
||||||
e := ce.exemplars[idx.oldest]
|
e := ce.exemplars[idx.oldest]
|
||||||
|
if e.exemplar.Ts > end || ce.exemplars[idx.newest].exemplar.Ts < start {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if !matchesSomeMatcherSet(e.seriesLabels, matchers) {
|
if !matchesSomeMatcherSet(e.seriesLabels, matchers) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue