|
|
|
@ -200,6 +200,7 @@ 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="2", group="production"} NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN |
|
|
|
|
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="app-server", instance="0", group="production"} 0+50x10 |
|
|
|
@ -224,3 +225,14 @@ eval_ordered instant at 50m bottomk(3, http_requests)
|
|
|
|
|
eval_ordered instant at 50m bottomk(5, http_requests{group="canary",job="app-server"}) |
|
|
|
|
http_requests{group="canary", instance="0", job="app-server"} 700 |
|
|
|
|
http_requests{group="canary", instance="1", job="app-server"} 800 |
|
|
|
|
|
|
|
|
|
# Test NaN is sorted away from the top/bottom. |
|
|
|
|
eval_ordered instant at 50m topk(3, http_requests{job="api-server",group="production"}) |
|
|
|
|
http_requests{job="api-server", instance="1", group="production"} 200 |
|
|
|
|
http_requests{job="api-server", instance="0", group="production"} 100 |
|
|
|
|
http_requests{job="api-server", instance="2", group="production"} NaN |
|
|
|
|
|
|
|
|
|
eval_ordered instant at 50m bottomk(3, http_requests{job="api-server",group="production"}) |
|
|
|
|
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 |
|
|
|
|