https://grafana.com/docs/k6/latest/
Grafana k6 | Grafana k6 documentation
The k6 documentation covers everything you need to know about k6 OSS, load testing, and performance testing.
grafana k6documentation
https://grafana.com/docs/k6/latest/using-k6/scenarios/executors/ramping-vus/
Ramping VUs | Grafana k6 documentation
A variable number of VUs execute as many iterations as possible for a specified amount of time.
grafana k6rampingvusdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6/group/
group( name, fn ) | Grafana k6 documentation
Runs code inside a group. Used to organize results in a test.
grafana k6groupnamefndocumentation
https://grafana.com/docs/k6/latest/using-k6-browser/recommended-practices/simulate-user-input-delay/
Simulate user input delay | Grafana k6 documentation
A guide on how to simulate user input delay.
user inputgrafana k6simulatedelaydocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-x-mqtt/client/publish-async/
Client.publishAsync( topic, payload, [options] ) | Grafana k6 documentation
Publish messages to MQTT topics asynchronously
grafana k6clienttopicpayloadoptions
https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-prev/
Selection.prev([selector]) | Grafana k6 documentation
Get the immediately preceding sibling of each element in the set of matched elements.
grafana k6selectionprevselectordocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-eq/
Selection.eq(index) | Grafana k6 documentation
Reduce the set of matched elements to the one at the specified index.
grafana k6selectioneqindexdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/page/ischecked/
isChecked(selector[, options]) | Grafana k6 documentation
Browser module: page.isChecked(selector[, options]) method
grafana k6ischeckedselectoroptionsdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/page/fill/
fill(selector, value[, options]) | Grafana k6 documentation
Browser module: page.fill(selector, value[, options]) method
grafana k6fillselectorvalueoptions
https://grafana.com/docs/k6/next/testing-guides/injecting-faults-with-xk6-disruptor/xk6-disruptor/poddisruptor/injecthttpfaults/
injectHTTPFaults() | Grafana k6 documentation
xk6-disruptor: PodDisruptor.injectHTTPFaults method
grafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/locator/count/
count() | Grafana k6 documentation
Browser module: locator.count method
grafana k6countdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/frame/ischecked/
isChecked(selector[, options]) | Grafana k6 documentation
Browser module: frame.isChecked(selector[, options]) method
grafana k6ischeckedselectoroptionsdocumentation
https://grafana.com/docs/k6/next/javascript-api/jslib/httpx/options/
options(url, [body], [params]) | Grafana k6 documentation
httpx.options makes OPTIONS requests
grafana k6optionsurlbodyparams
https://grafana.com/docs/k6/latest/using-k6/http-debugging/?pg=blog&plcmt=body-txt
HTTP debugging | Grafana k6 documentation
Things don't always work as expected. For those cases there is a handy CLI flag, --http-debug, that is good to be aware of.
grafana k6httpdebuggingdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/frame/frameelement/
frameElement() | Grafana k6 documentation
Browser module: frame.frameElement() method
grafana k6documentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/page/inputvalue/
inputValue(selector[, options]) | Grafana k6 documentation
Browser module: page.inputValue(selector[, options]) method
grafana k6selectoroptionsdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-websockets/params/
Params | Grafana k6 documentation
Used for setting various WebSocket request-specific parameters such as headers, tags, etc.
grafana k6paramsdocumentation
https://grafana.com/docs/k6/next/javascript-api/jslib/aws/eventbridgeclient/putevents/
putEvents | Grafana k6 documentation
EventBridgeClient.putEvents sends custom events to Amazon EventBridge
grafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/page/setviewportsize/
setViewportSize(viewportSize) | Grafana k6 documentation
Browser module: page.setViewportSize(viewportSize) method
grafana k6documentation
https://grafana.com/docs/k6/latest/examples/soap/
SOAP | Grafana k6 documentation
Load Testing SOAP API.
grafana k6soapdocumentation
https://grafana.com/docs/k6/latest/javascript-api/jslib/aws/secretsmanagerclient/putsecretvalue/
putSecretValue | Grafana k6 documentation
SecretsManagerClient.putSecretValue updates an existing secret's value
grafana k6documentation
https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-first/
Selection.first() | Grafana k6 documentation
Reduce the set of matched elements to the first in the set.
grafana k6selectionfirstdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-net-grpc/stream/event-handler/
Event Handler | Grafana k6 documentation
The handler function for various events on the gRPC stream.
event handlergrafana k6documentation
https://grafana.com/docs/k6/latest/using-k6/protocols/http-2/
HTTP/2 | Grafana k6 documentation
When you make HTTP requests in k6 it will automatically upgrade the connection to HTTP/2.0 if the server supports it, just like your web browser would.
http 2grafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/jshandle/dispose/
dispose() | Grafana k6 documentation
Browser module: JSHandle.dispose method
grafana k6disposedocumentation
https://grafana.com/docs/k6/next/using-k6/secret-source/mock/
Mock secret source | Grafana k6 documentation
The mock secret source loads secrets from CLI arguments
secret sourcegrafana k6mockdocumentation
https://grafana.com/docs/k6/latest/javascript-api/jslib/httpx/addtags/
addTags( object ) | Grafana k6 documentation
adds multiple tags to the session
grafana k6objectdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-experimental/streams/readablestreamdefaultcontroller/enqueue/
enqueue(chunk) | Grafana k6 documentation
The enqueue method of the ReadableStreamDefaultController interface enqueues a chunk of data into the associated stream.
grafana k6enqueuechunkdocumentation
https://grafana.com/docs/k6/latest/examples/bundling-and-transpiling/
Bundling and transpiling | Grafana k6 documentation
Refer to the JavaScript and TypeScript compatibility mode page for more details on how to use TypeScript with k6
grafana k6bundlingtranspilingdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-websockets/websocket/websocket-send/
WebSocket.send(data) | Grafana k6 documentation
Send data through the connection.
send datagrafana k6websocketdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/elementhandle/isenabled/
isEnabled() | Grafana k6 documentation
Browser module: elementHandle.isEnabled method
grafana k6documentation
https://grafana.com/docs/k6/latest/javascript-api/jslib/http-instrumentation-pyroscope/instrumenthttp/
instrumentHTTP | Grafana k6 documentation
instrumentHTTP instruments the k6 HTTP module with baggage header.
grafana k6documentation
https://grafana.com/docs/k6/latest/set-up/configure-ai-assistant/configure-mcp-clients/
Configure MCP clients | Grafana k6 documentation
Configure VS Code, Cursor, Claude Code, Codex, and other MCP clients to launch mcp-k6 over stdio.
mcp clientsgrafana k6configuredocumentation
https://grafana.com/docs/k6/latest/examples/track-transmitted-data-per-url/
Track transmitted data per URL | Grafana k6 documentation
This example shows how to track data sent and received for a individual URL.
transmitted datagrafana k6trackperurl
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/elementhandle/contentframe/
contentFrame() | Grafana k6 documentation
Browser module: elementHandle.contentFrame method
grafana k6documentation
https://grafana.com/docs/k6/latest/k6-studio/record-browser-events/
Record browser events | Grafana k6 documentation
Learn how to use k6 Studio to record browser events, create text assertions, and export browser test scripts.
browser eventsgrafana k6recorddocumentation
https://grafana.com/docs/k6/latest/testing-guides/injecting-faults-with-xk6-disruptor/xk6-disruptor/poddisruptor/
PodDisruptor | Grafana k6 documentation
xk6-disruptor: PodDisruptor class
grafana k6documentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/frame/page/
page() | Grafana k6 documentation
Browser module: frame.page() method
grafana k6documentation
https://grafana.com/events/grafanacon/2022/demo-load-testing-with-k6/?pg=videos&plcmt=ondemand
Grafana k6: Testing without limits | Grafana Labs
Learn about the latest developments around Grafana k6 load testing.
grafana k6without limitstestinglabs
https://grafana.com/docs/k6/latest/examples/http2/
HTTP2 | Grafana k6 documentation
Information on how to load test HTTP/2.
grafana k6http2documentation
https://grafana.com/docs/k6/next/javascript-api/k6-x-redis/client/client-lpush/
Client.lpush(key, values) | Grafana k6 documentation
Adds the string `value` to the left of the list stored at `key`.
key valuesgrafana k6clientdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/page/isvisible/
isVisible(selector[, options]) | Grafana k6 documentation
Browser module: page.isVisible(selector[, options]) method
grafana k6isvisibleselectoroptionsdocumentation
https://grafana.com/docs/k6/next/testing-guides/injecting-faults-with-xk6-disruptor/examples/
xk6-disruptor examples | Grafana k6 documentation
Examples of how to use the xk6-disruptor extension to introduce faults in k6 tests.
grafana k6xk6disruptorexamplesdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/page/iseditable/
isEditable(selector[, options]) | Grafana k6 documentation
Browser module: page.isEditable(selector[, options]) method
grafana k6selectoroptionsdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-x-redis/client/client-srandmember/
Client.srandmember(key) | Grafana k6 documentation
Returns a random member of the set stored at `key`.
grafana k6clientkeydocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/request/allheaders/
allHeaders() | Grafana k6 documentation
Browser module: Request.allHeaders method
grafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/request/response/
response() | Grafana k6 documentation
Browser module: Request.response method
grafana k6responsedocumentation
https://grafana.com/docs/k6/next/results-output/real-time/json/
JSON | Grafana k6 documentation
You can also make k6 output detailed statistics in JSON format by using the --out option.
grafana k6jsondocumentation
https://grafana.com/docs/k6/latest/results-output/real-time/statsd/
StatsD | Grafana k6 documentation
k6 has a built-in output to a StatsD service.
grafana k6statsddocumentation
https://grafana.com/docs/k6/next/testing-guides/synthetic-monitoring/
Synthetic monitoring | Grafana k6 documentation
Use k6 as synthetic monitoring tool, scheduling k6 smoke tests for continuous production monitoring.
synthetic monitoringgrafana k6documentation
https://grafana.com/docs/k6/latest/using-k6/http-requests/
HTTP Requests | Grafana k6 documentation
Define the HTTP requests and methods you want to use. k6 adds tags to the requests, making it easier to filter results. You can customize tags as you wish.
http requestsgrafana k6documentation
https://grafana.com/docs/k6/latest/using-k6/protocols/websockets/
WebSockets | Grafana k6 documentation
Comparing HTTP based tests to WebSocket ones, there are some differences in the structure and inner workings of k6.
grafana k6websocketsdocumentation
https://grafana.com/docs/k6/latest/reference/
Reference | Grafana k6 documentation
grafana k6referencedocumentation
https://grafana.com/docs/k6/latest/examples/?pg=soak-testing&plcmt=in-text
Examples | Grafana k6 documentation
Examples Get started with k6 Single request HTTP Authentication OAuth Authentication Correlation and Dynamic Data Data parameterization Parse HTML HTML Forms...
grafana k6examplesdocumentation
https://grafana.com/docs/k6/latest/examples/functional-testing/
Functional testing | Grafana k6 documentation
Use Chaijs library for functional and integration testing.
functional testinggrafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/page/evaluate/
evaluate(pageFunction[, arg]) | Grafana k6 documentation
Browser module: page.evaluate(pageFunction[, arg]) method
grafana k6evaluateargdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-x-icmp/ip/
IP | Grafana k6 documentation
IP protocol version enumeration
grafana k6ipdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-x-redis/client/client-lindex/
Client.lindex(key) | Grafana k6 documentation
Returns the element at index `index` of the list stored at `key`.
grafana k6clientlindexkeydocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/framelocator/getbyplaceholder/
getByPlaceholder(placeholder[, options]) | Grafana k6 documentation
Browser module: frameLocator.getByPlaceholder(placeholder[, options]) method
grafana k6placeholderoptionsdocumentation
https://grafana.com/docs/k6/latest/examples/instant-load-increase/
Instant load increase | Grafana k6 documentation
Scripting example on how to instantly increase the number of VUs or iterations and hold them for a period of time
grafana k6instantloadincreasedocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/hover/
hover([options]) | Grafana k6 documentation
Browser module: locator.hover method
grafana k6hoveroptionsdocumentation
https://grafana.com/docs/k6/latest/javascript-api/jslib/testing/expect/
expect() | Grafana k6 documentation
expect() is the main function for creating assertions in k6 tests
grafana k6expectdocumentation
https://grafana.com/docs/k6/latest/using-k6/metrics/reference/
Built-in metrics | Grafana k6 documentation
A reference of built-in metrics for different supported protocols.
built ingrafana k6metricsdocumentation
https://grafana.com/docs/k6/latest/k6-studio/components/
Components | Grafana k6 documentation
Understand the components that make up k6 Studio
grafana k6componentsdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/streams/readablestreamdefaultcontroller/close/
close() | Grafana k6 documentation
The close method closes the associated stream.
grafana k6closedocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-websockets/websocket/
WebSocket | Grafana k6 documentation
Create a WebSocket connection, and provides a WebSocket instance to interact with the service.
grafana k6websocketdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/page/mainframe/
mainFrame() | Grafana k6 documentation
Browser module: page.mainFrame method
grafana k6mainframedocumentation
https://grafana.com/docs/k6/latest/using-k6/cookies/
Cookies | Grafana k6 documentation
k6 will transparently manage the receiving, storage and sending of cookies as described above, so that testing of your cookie-based web site or app will just...
grafana k6cookiesdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/locator/tap/
tap([options]) | Grafana k6 documentation
Browser module: locator.tap method
grafana k6tapoptionsdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-html/selection/selection-filter/
Selection.filter(selector) | Grafana k6 documentation
Reduce the set of matched elements to those that match the selector or pass the function test.
filter selectorgrafana k6selectiondocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-x-redis/client/client-getset/
Client.getSet(key, value) | Grafana k6 documentation
Atomically sets `key` to `value` and returns the old value stored at `key`.
key valuegrafana k6clientgetsetdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/frame/ishidden/
isHidden(selector[, options]) | Grafana k6 documentation
Browser module: frame.isHidden(selector[, options]) method
grafana k6selectoroptionsdocumentation
https://grafana.com/blog/building-a-synthetic-monitoring-solution-for-jaeger-with-grafana-k6/
Building a synthetic monitoring solution for Jaeger with Grafana k6 | Grafana Labs
Learn how Grafana k6 and synthetic monitoring can help you measure latency and set meaningful SLOs for Jaeger deployments at scale.
building asynthetic monitoringgrafana k6solution
https://grafana.com/docs/k6/latest/release-notes/v1.3.0/
Version 1.3.0 release notes | Grafana k6 documentation
The release notes for Grafana k6 version 1.3.0
1 3 0release notesgrafana k6versiondocumentation
https://grafana.com/oss/k6/?pg=blog&plcmt=body-txt
Grafana k6 | Open source load testing tool
Grafana k6 is an open source load testing tool that uses test scripts written in JavaScript to help you easily find and fix issues before they reach production.
grafana k6open sourceload testingtool
https://grafana.com/docs/k6/next/javascript-api/k6-browser/response/json/
json() | Grafana k6 documentation
Browser module: Response.json method
grafana k6jsondocumentation
https://grafana.com/docs/k6/next/javascript-api/jslib/httpx/addheader/
addHeader( key, value ) | Grafana k6 documentation
adds a header to the session
key valuegrafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/k6-x-redis/client/client-expire/
Client.expire(key, seconds) | Grafana k6 documentation
Sets an expiration date (a timeout) on the key `key`.
grafana k6clientexpirekeyseconds
https://grafana.com/docs/k6/next/javascript-api/k6-x-icmp/ping-options/
PingOptions | Grafana k6 documentation
Configuration options for ping operations
grafana k6documentation
https://grafana.com/docs/k6/latest/javascript-api/k6-ws/socket/socket-ping/
Socket.ping() | Grafana k6 documentation
Send a ping. Ping messages can be used to verify that the remote endpoint is responsive.
grafana k6socketpingdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-x-redis/client/
Client | Grafana k6 documentation
Client is a Redis client to interact with a Redis server, cluster, or sentinel.
grafana k6clientdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/elementhandle/inputvalue/
inputValue([options]) | Grafana k6 documentation
Browser module: elementHandle.inputValue method
grafana k6optionsdocumentation
https://grafana.com/docs/k6/next/release-notes/v1.7.1/
Version 1.7.1 release notes | Grafana k6 documentation
The release notes for Grafana k6 version 1.7.1
version 1release notesgrafana k67documentation
https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/
SharedArray | Grafana k6 documentation
SharedArray is an array-like object that shares the underlying memory between VUs.
grafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/k6-x-redis/client/client-sendcommand/
Client.sendCommand(command, args) | Grafana k6 documentation
Issue a command to the Redis server.
grafana k6clientcommandargsdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/elementhandle/focus/
focus() | Grafana k6 documentation
Browser module: elementHandle.focus method
grafana k6focusdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/
BrowserContext | Grafana k6 documentation
Browser module: BrowserContext Class
grafana k6documentation
https://grafana.com/docs/k6/next/results-output/real-time/netdata/
Netdata | Grafana k6 documentation
You can send k6 output to Netdata. With this integration, visualize test results with zero configuration, in seconds
grafana k6netdatadocumentation
https://grafana.com/docs/k6/latest/using-k6/checks/?pg=blog&plcmt=body-txt
Checks | Grafana k6 documentation
Checks are like asserts but differ in that they do not halt the execution, instead, they just store the result of the check, pass or fail, and let the script...
grafana k6checksdocumentation
https://grafana.com/docs/k6/next/javascript-api/k6-browser/metricmessage/
MetricMessage | Grafana k6 documentation
Browser module: MetricMessage Object
grafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/jslib/aws/secretsmanagerclient/getsecret/
getSecret | Grafana k6 documentation
SecretsManagerClient.getSecret(secretID) downloads a secret from AWS secrets manager
grafana k6documentation
https://grafana.com/docs/k6/next/javascript-api/jslib/http-instrumentation-pyroscope/
HTTP instrumentation for Pyroscope | Grafana k6 documentation
k6 Pyroscope instrumentation API
grafana k6httpinstrumentationpyroscopedocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-http/response/response-clicklink/
Response.clickLink( [params] ) | Grafana k6 documentation
Create and make a request corresponding to a link, found in the HTML of response, being clicked.
grafana k6responseparamsdocumentation
https://grafana.com/docs/k6/latest/javascript-api/k6-x-icmp/ping-options/
PingOptions | Grafana k6 documentation
Configuration options for ping operations
grafana k6documentation
https://grafana.com/docs/k6/latest/javascript-api/k6-websockets/websocket/websocket-onerror/
WebSocket.onerror | Grafana k6 documentation
A handler function for WebSocket connection error event.
grafana k6websocketonerrordocumentation
https://grafana.com/docs/k6/next/javascript-api/jslib/k6chaijs/error-handling/
Error handling | Grafana k6 documentation
How to handle errors in k6chaijs.
error handlinggrafana k6documentation
https://grafana.com/docs/k6/next/using-k6-browser/how-to-write-browser-tests/asynchronous-operations/
Asynchronous operations | Grafana k6 documentation
Learn how the k6 browser module uses asynchronous operations.
grafana k6asynchronousoperationsdocumentation
https://grafana.com/docs/k6/latest/javascript-api/?pg=k6-cloud&plcmt=txt-img-alternating
JavaScript API | Grafana k6 documentation
JavaScript API The list of k6 modules natively supported in your k6 scripts. Init context Before the k6 starts the test logic, code in the init context...
javascript apigrafana k6documentation
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/response/url/
url() | Grafana k6 documentation
Browser module: Response.url method
grafana k6urldocumentation
https://grafana.com/docs/k6/next/javascript-api/crypto/rsahashedimportparams/
RsaHashedImportParams | Grafana k6 documentation
RsaHashedImportParams represents the object that should be passed as the algorithm parameter into the importKey operation, when using the RSA algorithm.
grafana k6documentation