mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
adds tests for timestamp()
Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
This commit is contained in:
parent
21afc0beb4
commit
b9fcc81695
5
promql/promqltest/testdata/functions.test
vendored
5
promql/promqltest/testdata/functions.test
vendored
|
@ -419,7 +419,7 @@ clear
|
|||
|
||||
# Tests for vector, time and timestamp.
|
||||
load 10s
|
||||
metric 1 1
|
||||
metric 1 1 {{schema:0 sum:1 count:1}}
|
||||
|
||||
eval instant at 0s timestamp(metric)
|
||||
{} 0
|
||||
|
@ -436,6 +436,9 @@ eval instant at 10s timestamp(metric)
|
|||
eval instant at 10s timestamp(((metric)))
|
||||
{} 10
|
||||
|
||||
eval instant at 20s timestamp(metric)
|
||||
{} 20
|
||||
|
||||
# Tests for label_join.
|
||||
load 5m
|
||||
testmetric{src="a",src1="b",src2="c",dst="original-destination-value"} 0
|
||||
|
|
Loading…
Reference in a new issue