Menu
Grafana Cloud
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
:
JavaScript
import { check } from 'k6';
import http from 'k6/http';
export default function () {
const res = http.get('http://test.k6.io/');
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
status
or200
) 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
Additional helpful documentation, links, and articles:

Getting started with your metrics, logs, and traces in Grafana Cloud
Learn to use the best open source observability software (Grafana, Prometheus, Loki, and Tempo) without the overhead of managing and scaling your own stack.

Kubernetes monitoring, out-of-the-box with Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.

Unify your data with Grafana plugins: Datadog, Splunk, MongoDB, and more
In this webinar, learn how to leverage Grafana's plugin ecosystem for access to 80+ data sources, including plugins for Datadog, Splunk, MongoDB, and more.