2017-04-14 03:31:40 -07:00
|
|
|
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
|
|
|
|
|
2017-05-23 09:36:35 -07:00
|
|
|
eval instant at 40s metric
|
|
|
|
{__name__="metric"} 2
|
|
|
|
|
2017-10-05 04:55:14 -07:00
|
|
|
# It goes stale 5 minutes after the last sample.
|
2024-04-08 09:46:52 -07:00
|
|
|
eval instant at 329s metric
|
2017-05-23 09:36:35 -07:00
|
|
|
{__name__="metric"} 2
|
|
|
|
|
2024-04-08 09:46:52 -07:00
|
|
|
eval instant at 330s metric
|
2017-05-23 09:36:35 -07:00
|
|
|
|
2017-04-14 03:31:40 -07:00
|
|
|
|
|
|
|
# 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])
|
2024-04-08 09:46:52 -07:00
|
|
|
|
|
|
|
eval instant at 20s count_over_time(metric[20s])
|
2017-04-14 03:31:40 -07:00
|
|
|
{} 1
|
2017-05-23 09:36:35 -07:00
|
|
|
|
2024-01-29 23:37:49 -08:00
|
|
|
eval instant at 20s count_over_time(metric[10])
|
2024-07-18 05:25:00 -07:00
|
|
|
|
|
|
|
eval instant at 20s count_over_time(metric[20])
|
2024-01-29 23:37:49 -08:00
|
|
|
{} 1
|
|
|
|
|
2017-05-23 09:36:35 -07:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-04-08 09:46:52 -07:00
|
|
|
eval instant at 299s metric
|
2017-05-23 09:36:35 -07:00
|
|
|
{__name__="metric"} 0
|
|
|
|
|
2024-04-08 09:46:52 -07:00
|
|
|
eval instant at 300s metric
|