k6 part 2: checks, thresholds and stages, with p(95) read the right way
Turn a plain run into a pass or fail test with limits, ramp the crowd up and down in stages, and read the 95th percentile of the request time.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a lift with a weight sign. People step in a few at a time. A sign says the lift must not move over a set weight. A guard watches the dial as people step in and out. A tick on one person's ticket is not the same as the sign on the wall.
Mei, working with Tom, builds the sign for Daily List, a to-do list app. Leo needs a hard pass or fail in the pipeline. Nina agrees the limit before the crowd grows.
What it is: This is still k6, the load tool from Grafana Labs. looks at one answer, such as the HTTP (Hypertext Transfer Protocol) status. Checks do not fail the run. A is a pass or fail rule on a metric, and a failed rule makes k6 exit with a non-zero code. A k6 percentile reading such as p(95) is the time that 95 out of 100 requests beat. The k6 load stages ramp the crowd up and down. Each stage has a duration and a target number of virtual users. The tool is not the limit. You choose the limit from a baseline, not from hope. Stages set users, not requests per second.
Why it matters: A check can stay mostly green while the slow tail is already too slow. Thresholds turn the summary into a verdict a pipeline can stop on. Stages show how Daily List behaves as the crowd rises, which a flat user count hides.
PLAIN WORDS · 2 in this section
- grafana
- a company that makes tools for watching and testing software
- hypertext
- text that links to other pages
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Read strict percentile and rate expressions.
- Steps
- Sign
- Dial
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| People stepping in and out | The load stages |
| The weight limit sign | The threshold |
| The dial the guard reads | The percentile |
| A lift that stops moving | The aborted run |
WHERE THIS PICTURE STOPS
- A lift limit is about weight, but a threshold is about a metric.
- A dial shows now, but a percentile sums a whole run.
- A lift stops for safety, but an abort only saves time.
HOOK
People, sign, dial.
TELL A FRIEND
A lift, a sign and a dial.
OFTEN MIXED UP WITH k6 part 1: install k6, write your first script and read the summary. That topic runs a and reads the table. This one adds limits, a verdict and ramping stages.
PRACTISE AND KEEP
Sources for this topic — 2 sources
- Implementation-specific
Thresholds (Grafana k6 documentation) ↗ — Grafana Labs · Rolling latest thresholds: metric aggregates, strict comparisons, checks rate gate, nonzero exit and abortOnFail/delayAbortEval; opened6 November2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.
- Implementation-specific
Grafana k6 — Ramping VUs executor ↗ — Grafana Labs · Rolling latest ramping-VUs executor: stages/targets, default startVUs1, explicit0 example and graceful ramp-down; opened6 November2026.
Official product documentation, not a general standard. Relevant sections and exact release/access limitations are recorded in the V27 full-depth audit. Screens and rolling documentation can change; synthetic Daily List examples are editorial fixtures, not publisher product guarantees.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.