mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
Add test for incorrect behaviour
This commit is contained in:
parent
39d556f0d5
commit
8788701ce7
11
promql/testdata/operators.test
vendored
11
promql/testdata/operators.test
vendored
@ -115,6 +115,17 @@ eval instant at 50m http_requests{group="canary"} / on(instance,job) http_reques
|
|||||||
{instance="1", job="api-server"} 2
|
{instance="1", job="api-server"} 2
|
||||||
{instance="1", job="app-server"} 1.3333333333333333
|
{instance="1", job="app-server"} 1.3333333333333333
|
||||||
|
|
||||||
|
# https://github.com/prometheus/prometheus/issues/1489
|
||||||
|
eval instant at 50m http_requests AND ON (dummy) vector(1)
|
||||||
|
http_requests{group="canary", instance="0", job="api-server"} 300
|
||||||
|
http_requests{group="canary", instance="0", job="app-server"} 700
|
||||||
|
http_requests{group="canary", instance="1", job="api-server"} 400
|
||||||
|
http_requests{group="canary", instance="1", job="app-server"} 800
|
||||||
|
http_requests{group="production", instance="0", job="api-server"} 100
|
||||||
|
http_requests{group="production", instance="0", job="app-server"} 500
|
||||||
|
http_requests{group="production", instance="1", job="api-server"} 200
|
||||||
|
http_requests{group="production", instance="1", job="app-server"} 600
|
||||||
|
|
||||||
|
|
||||||
# Comparisons.
|
# Comparisons.
|
||||||
eval instant at 50m SUM(http_requests) BY (job) > 1000
|
eval instant at 50m SUM(http_requests) BY (job) > 1000
|
||||||
|
Loading…
Reference in New Issue
Block a user