Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana-cloud/testing/k6/analyze-results/inspect-test-results/inspect-checks.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana-cloud/testing/k6/analyze-results/inspect-test-results/inspect-checks/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Inspect checks
Checks validate boolean conditions in your test, similarly to “asserts” in other testing frameworks. They’re often used to validate that a system is responding with the expected content.
For example, this test script has a check to validate that a GET request has a status code response equal to 200:
import { check } from 'k6';
import http from 'k6/http';
export default function () {
const res = http.get('http://quickpizza.grafana.com');
check(res, {
'is status 200': (r) => r.status === 200,
});
}To visually inspect and analyze checks, go to a test result and click the Checks tab.

The Checks tab includes a list of all the checks configured for that test run. A green or red marking is displayed next to each check to help you visualize if it passed or failed.
You can also filter the list by using the Quick select and the Add filter options:
- Quick select: Filter by Order all by fail count or Order all by success rate.
- Add filter: Filter by Name. You can add multiple filters and search by specific words (such as
statusor200) or select specific checks names.
To inspect a check in detail:
- Select a specific check from the list.
- In the expanded check, you can see how many failures occur at different points in the test.
Was this page helpful?
Related resources from Grafana Labs


