|
|
|
@ -236,3 +236,39 @@ eval_ordered instant at 50m bottomk(3, http_requests{job="api-server",group="pro
|
|
|
|
|
http_requests{job="api-server", instance="0", group="production"} 100 |
|
|
|
|
http_requests{job="api-server", instance="1", group="production"} 200 |
|
|
|
|
http_requests{job="api-server", instance="2", group="production"} NaN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Tests for sort/sort_desc. |
|
|
|
|
clear |
|
|
|
|
load 5m |
|
|
|
|
http_requests{job="api-server", instance="0", group="production"} 0+10x10 |
|
|
|
|
http_requests{job="api-server", instance="1", group="production"} 0+20x10 |
|
|
|
|
http_requests{job="api-server", instance="0", group="canary"} 0+30x10 |
|
|
|
|
http_requests{job="api-server", instance="1", group="canary"} 0+40x10 |
|
|
|
|
http_requests{job="api-server", instance="2", group="canary"} NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN |
|
|
|
|
http_requests{job="app-server", instance="0", group="production"} 0+50x10 |
|
|
|
|
http_requests{job="app-server", instance="1", group="production"} 0+60x10 |
|
|
|
|
http_requests{job="app-server", instance="0", group="canary"} 0+70x10 |
|
|
|
|
http_requests{job="app-server", instance="1", group="canary"} 0+80x10 |
|
|
|
|
|
|
|
|
|
eval_ordered instant at 50m sort(http_requests) |
|
|
|
|
http_requests{group="production", instance="0", job="api-server"} 100 |
|
|
|
|
http_requests{group="production", instance="1", job="api-server"} 200 |
|
|
|
|
http_requests{group="canary", instance="0", job="api-server"} 300 |
|
|
|
|
http_requests{group="canary", instance="1", job="api-server"} 400 |
|
|
|
|
http_requests{group="production", instance="0", job="app-server"} 500 |
|
|
|
|
http_requests{group="production", instance="1", job="app-server"} 600 |
|
|
|
|
http_requests{group="canary", instance="0", job="app-server"} 700 |
|
|
|
|
http_requests{group="canary", instance="1", job="app-server"} 800 |
|
|
|
|
http_requests{group="canary", instance="2", job="api-server"} NaN |
|
|
|
|
|
|
|
|
|
eval_ordered instant at 50m sort_desc(http_requests) |
|
|
|
|
http_requests{group="canary", instance="1", job="app-server"} 800 |
|
|
|
|
http_requests{group="canary", instance="0", job="app-server"} 700 |
|
|
|
|
http_requests{group="production", instance="1", job="app-server"} 600 |
|
|
|
|
http_requests{group="production", instance="0", job="app-server"} 500 |
|
|
|
|
http_requests{group="canary", instance="1", job="api-server"} 400 |
|
|
|
|
http_requests{group="canary", instance="0", job="api-server"} 300 |
|
|
|
|
http_requests{group="production", instance="1", job="api-server"} 200 |
|
|
|
|
http_requests{group="production", instance="0", job="api-server"} 100 |
|
|
|
|
http_requests{group="canary", instance="2", job="api-server"} NaN |
|
|
|
|