KilnVM Live Labs /lab/k6-slo-load-test
Step 1 of 3 Docs Build Your Own

Enforce Latency SLOs with Grafana k6

Run a local Grafana k6 load test, catch a p95 latency SLO threshold breach, optimize the handler bottleneck, and emit structured CI pass telemetry.

Step 1 of 3

Capture baseline SLO threshold breach

/workspace/load-test.js runs Grafana k6 against bundled checkout fixtures (orders.json) with a strict threshold of p(95) < 50ms on checkout_ms.

Run the baseline load test and export metrics to baseline.json (k6 will exit 99 when the threshold fails):

bash
k6 run --summary-export=baseline.json load-test.js || true