mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
adf5d6bce1
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
Conflicts:
VERSION
pick 3.0.0
promql/promqltest/testdata/histograms.test
pick changes from c39776c5b5
,
but adjust 5m range selectors to 10m to account for
https://github.com/prometheus/prometheus/pull/13904.
Fixes:
promql/promqltest/testdata/functions.test
promql/promqltest/testdata/staleness.test
Tests added in https://github.com/prometheus/prometheus/pull/9138
need to be adjusted to account for
https://github.com/prometheus/prometheus/pull/13904.
59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
load 10s
|
|
metric 0 1 stale 2
|
|
|
|
# Instant vector doesn't return series when stale.
|
|
eval instant at 10s metric
|
|
{__name__="metric"} 1
|
|
|
|
eval instant at 20s metric
|
|
|
|
eval instant at 30s metric
|
|
{__name__="metric"} 2
|
|
|
|
eval instant at 40s metric
|
|
{__name__="metric"} 2
|
|
|
|
# It goes stale 5 minutes after the last sample.
|
|
eval instant at 329s metric
|
|
{__name__="metric"} 2
|
|
|
|
eval instant at 330s metric
|
|
|
|
|
|
# Range vector ignores stale sample.
|
|
eval instant at 30s count_over_time(metric[1m])
|
|
{} 3
|
|
|
|
eval instant at 10s count_over_time(metric[1s])
|
|
{} 1
|
|
|
|
eval instant at 20s count_over_time(metric[1s])
|
|
|
|
eval instant at 20s count_over_time(metric[10s])
|
|
|
|
eval instant at 20s count_over_time(metric[20s])
|
|
{} 1
|
|
|
|
eval instant at 20s count_over_time(metric[10])
|
|
|
|
eval instant at 20s count_over_time(metric[20])
|
|
{} 1
|
|
|
|
|
|
clear
|
|
|
|
load 10s
|
|
metric 0
|
|
|
|
# Series with single point goes stale after 5 minutes.
|
|
eval instant at 0s metric
|
|
{__name__="metric"} 0
|
|
|
|
eval instant at 150s metric
|
|
{__name__="metric"} 0
|
|
|
|
eval instant at 299s metric
|
|
{__name__="metric"} 0
|
|
|
|
eval instant at 300s metric
|