{"schemaVersion":"1.0","record":{"label":"Grafana k6","description":"Scriptable protocol and browser performance testing with metrics and CI thresholds.","aliases":["k6"],"kind":"software","website":"https://grafana.com/oss/k6/","overview":"Grafana k6 is a load-testing tool with a Go-based engine and JavaScript scripting. It supports code-managed performance tests, several network protocols and browser-based scenarios, with metrics export and optional Grafana Cloud integration.","license":"AGPL-3.0","lifecycle":"active","example":false,"features":[{"name":"Code-managed performance tests","status":"supported","detail":"Scripts configure load and request logic for CLI or CI execution.","useCase":"Web-service performance tests and CI gates","platforms":["Windows","macOS","Linux"],"region":"Local runtime and script compatibility apply; hosted services are separate","evidence":[{"url":"https://github.com/grafana/k6/blob/master/README.md","locator":"Features, cloud integration and AGPL-3.0","retrievedAt":"2026-10-07T11:03:29Z","kind":"vendor"}]},{"name":"CI failure thresholds","status":"supported","detail":"Aggregate thresholds produce failed status; checks alone do not.","useCase":"Web-service performance tests and CI gates","platforms":["Windows","macOS","Linux"],"region":"Threshold configuration and metric selection determine pass/fail status","evidence":[{"url":"https://grafana.com/docs/k6/latest/using-k6/checks/","locator":"Failed checks do not fail tests","retrievedAt":"2026-10-07T11:00:02Z","kind":"vendor"},{"url":"https://grafana.com/docs/k6/latest/using-k6/thresholds/","locator":"Aggregate pass/fail criteria and exit status","retrievedAt":"2026-10-07T11:03:40Z","kind":"vendor"}]},{"name":"Browser interactions","status":"limited","detail":"Browser module requires a compatible Chromium-based browser for local use.","useCase":"Web-service performance tests and CI gates","platforms":["Windows","macOS","Linux"],"region":"Local k6 and a compatible Chromium-based browser are required","evidence":[{"url":"https://grafana.com/docs/k6/latest/using-k6-browser/write-your-first-browser-test/","locator":"Chromium prerequisites and separate JavaScript runtime","retrievedAt":"2026-10-07T11:03:21Z","kind":"vendor"}]}],"alternatives":[],"slug":"grafana-k6","draftAlternatives":[{"targetSlug":"apache-jmeter","status":"limited","detail":"Can replace web-service load tests with JavaScript scenarios and thresholds; JMeter plans and results require workflow-specific migration.","useCase":"Web-service performance tests and CI gates","platforms":["Windows","macOS","Linux"],"region":"Local runtime, script and protocol compatibility apply; hosted services are separate","evidence":[{"url":"https://github.com/grafana/k6/blob/master/README.md","locator":"Features, cloud integration and AGPL-3.0","retrievedAt":"2026-10-07T11:03:29Z","kind":"vendor"},{"url":"https://jmeter.apache.org/","locator":"Features and browser limitations","retrievedAt":"2026-10-07T11:00:02Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/grafana/k6/blob/master/README.md","locator":"Features, cloud integration and AGPL-3.0","retrievedAt":"2026-10-07T11:03:29Z","kind":"vendor"},{"url":"https://grafana.com/docs/k6/latest/using-k6-browser/write-your-first-browser-test/","locator":"Chromium prerequisites and separate JavaScript runtime","retrievedAt":"2026-10-07T11:03:21Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/grafana/k6/blob/master/README.md","locator":"Features, cloud integration and AGPL-3.0","retrievedAt":"2026-10-07T11:03:29Z","id":"k6-readme","title":"Grafana k6 repository","kind":"vendor"},{"url":"https://grafana.com/docs/k6/latest/using-k6-browser/write-your-first-browser-test/","locator":"Chromium prerequisites and separate JavaScript runtime","retrievedAt":"2026-10-07T11:03:21Z","id":"k6-browser","title":"First k6 browser test","kind":"vendor"},{"url":"https://grafana.com/docs/k6/latest/using-k6/checks/","locator":"Failed checks do not fail tests","retrievedAt":"2026-10-07T11:00:02Z","id":"k6-checks","title":"k6 checks","kind":"vendor"},{"url":"https://grafana.com/docs/k6/latest/using-k6/thresholds/","locator":"Aggregate pass/fail criteria and exit status","retrievedAt":"2026-10-07T11:03:40Z","id":"k6-thresholds","title":"k6 thresholds","kind":"vendor"},{"url":"https://jmeter.apache.org/","locator":"Features and browser limitations","retrievedAt":"2026-10-07T11:00:02Z","id":"jmeter-home","title":"Apache JMeter overview","kind":"vendor"}],"overviewCitations":["k6-readme"],"licenseCitations":["k6-readme"],"sections":[{"id":"scripts","heading":"Tests maintained as code","paragraphs":[{"id":"scripts-detail","content":[{"text":"A k6 script combines request logic with workload configuration, allowing teams to keep scenarios in version control and execute them from a command line or CI pipeline. The project documents HTTP, WebSocket and gRPC support alongside browser testing. Its embedded JavaScript runtime is distinct from Node.js, so an existing npm dependency should not be assumed compatible merely because the scenario is written in JavaScript."}],"citations":["k6-readme","k6-browser"]}]},{"id":"checks","heading":"Checks and test failure","paragraphs":[{"id":"checks-detail","content":[{"text":"Checks record whether individual conditions pass, but a failed check alone does not give the overall run a failed exit status. Thresholds provide aggregate pass/fail rules over metrics, such as an error rate or response-time percentile. Connecting checks to an appropriate threshold matters when a CI system relies on process status: otherwise a run can record failed validations without failing the pipeline."}],"citations":["k6-checks","k6-thresholds"]}]},{"id":"browser","heading":"Frontend testing","paragraphs":[{"id":"browser-detail","content":[{"text":"The browser module runs real interactions such as navigation, clicking and form entry rather than treating every page as a simple HTTP response. Grafana's local setup requires a Chromium-based browser as well as k6. These scenarios add frontend behavior to the testing scope, but also introduce browser prerequisites that a protocol-only script does not have. Runtime and dependency compatibility still need verification before adapting existing browser automation."}],"citations":["k6-browser"]}]},{"id":"licensing","heading":"Local tooling and hosted services","paragraphs":[{"id":"licensing-detail","content":[{"text":"The k6 project is distributed under AGPL-3.0. Its repository describes local and CI execution, Kubernetes-based use, external metrics destinations and integration with Grafana Cloud. The open-source executable and the hosted service should be evaluated separately: this article does not establish a free hosted execution allowance or equate possession of the source code with access to every cloud feature."}],"citations":["k6-readme"]}]},{"id":"fit","heading":"Substitution scope","paragraphs":[{"id":"fit-detail","content":[{"text":"k6 can substitute for "},{"text":"Apache JMeter","targetSlug":"apache-jmeter"},{"text":" for repeatable web-service load testing when JavaScript scenarios suit the team. Its explicit thresholds are useful for code-managed performance gates, while JMeter offers a graphical plan-authoring workflow. This assessment does not imply that JMeter plans execute unchanged in k6. Workload shape, request data, checks and metrics must be reconciled; browser scenarios should be compared with browser workloads rather than protocol-only measurements."}],"citations":["k6-readme","k6-thresholds","jmeter-home","k6-browser"]}]}]},"id":"Q1666","revision":1779,"updatedAt":"2026-10-25T22:17:14Z","sourceUrl":"https://substitutefor.net/entities/Q1666?revision=1779"}}