You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sources/next/extensions/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Currently, k6 supports two ways to extend its native functionality:
37
37
38
38
## xk6 makes custom binaries
39
39
40
-
[xk6](https://github.com/grafana/xk6/) is command-line tool and framework written in Go. With xk6, you build custom k6 binaries that bundle one or more extensions written in Go. You have two options for creating k6 binaries: using [Go and xk6](https://grafana.com/docs/k6/latest/extensions/build-k6-binary-using-go/) or [Docker](https://grafana.com/docs/k6/latest/extensions/build-k6-binary-using-docker/):
40
+
[xk6](https://github.com/grafana/xk6/) is command-line tool and framework written in Go. With xk6, you build custom k6 binaries that bundle one or more extensions written in Go. You have two options for creating k6 binaries: using [Go and xk6](https://grafana.com/docs/k6/<K6_VERSION>/extensions/build-k6-binary-using-go/) or [Docker](https://grafana.com/docs/k6/<K6_VERSION>/extensions/build-k6-binary-using-docker/):
Copy file name to clipboardExpand all lines: docs/sources/next/extensions/build-k6-binary-using-go.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ you need to build a binary using Go.
11
11
12
12
{{% admonition type="note" %}}
13
13
14
-
Not interested in setting up a Go environment? You can [use Docker instead](https://grafana.com/docs/k6/latest/extensions/build-k6-binary-using-docker/).
14
+
Not interested in setting up a Go environment? You can [use Docker instead](https://grafana.com/docs/k6/<K6_VERSION>/extensions/build-k6-binary-using-docker/).
Copy file name to clipboardExpand all lines: docs/sources/next/extensions/explore.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ weight: 01
8
8
9
9
With over 50 available extensions, the k6 extension ecosystem has many options to meet your requirements and help you incorporate new protocol access, embed a particular client, or improve your test performance. Extensions are developed both by the k6 developers and by the open-source developer community.
10
10
11
-
Extensions are composable; you can combine any extensions, or mix and match different test cases. You can use [Go and xk6](https://grafana.com/docs/k6/latest/extensions/build-k6-binary-using-go/) or [Docker](https://grafana.com/docs/k6/latest/extensions/build-k6-binary-using-docker/) to build your custom k6 binary:
11
+
Extensions are composable; you can combine any extensions, or mix and match different test cases. You can use [Go and xk6](https://grafana.com/docs/k6/<K6_VERSION>/extensions/build-k6-binary-using-go/) or [Docker](https://grafana.com/docs/k6/<K6_VERSION>/extensions/build-k6-binary-using-docker/) to build your custom k6 binary:
|[file( data, [filename], [contentType] )](https://grafana.com/docs/k6/latest/javascript-api/k6-http/file)| Create a file object that is used for building multi-part requests. |
166
-
|[get( url, [params] )](https://grafana.com/docs/k6/latest/javascript-api/k6-http/get)| Issue an HTTP GET request. |
167
-
|[head( url, [params] )](https://grafana.com/docs/k6/latest/javascript-api/k6-http/head)| Issue an HTTP HEAD request. |
|[post( url, [body], [params] )](https://grafana.com/docs/k6/latest/javascript-api/k6-http/post)| Issue an HTTP POST request. |
171
-
|[put( url, [body], [params] )](https://grafana.com/docs/k6/latest/javascript-api/k6-http/put)| Issue an HTTP PUT request. |
172
-
|[request( method, url, [body], [params] )](https://grafana.com/docs/k6/latest/javascript-api/k6-http/request)| Issue any type of HTTP request. |
173
-
|[asyncRequest( method, url, [body], [params] )](https://grafana.com/docs/k6/latest/javascript-api/k6-http/asyncrequest)| Issue any type of HTTP request asynchronously. |
|[file( data, [filename], [contentType] )](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/file)| Create a file object that is used for building multi-part requests. |
166
+
|[get( url, [params] )](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/get)| Issue an HTTP GET request. |
167
+
|[head( url, [params] )](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/head)| Issue an HTTP HEAD request. |
|[post( url, [body], [params] )](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/post)| Issue an HTTP POST request. |
171
+
|[put( url, [body], [params] )](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/put)| Issue an HTTP PUT request. |
172
+
|[request( method, url, [body], [params] )](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/request)| Issue any type of HTTP request. |
173
+
|[asyncRequest( method, url, [body], [params] )](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/asyncrequest)| Issue any type of HTTP request asynchronously. |
174
174
|[setResponseCallback(expectedStatuses)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/set-response-callback)| Sets a response callback to mark responses as expected. |
175
175
|[url\`url\`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/url)| Creates a URL with a name tag. Read more on [URL Grouping](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/http-requests#url-grouping). |
176
176
|[expectedStatuses( statusCodes )](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-http/expected-statuses)| Create a callback for setResponseCallback that checks status codes. |
@@ -206,8 +206,8 @@ The `k6/net/grpc` module provides a [gRPC](https://grpc.io/) client for Remote P
|[Client](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/client)| gRPC client used for making RPC calls to a gRPC Server. |
208
208
|[Client.load(importPaths, ...protoFiles)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/client/client-load)| Loads and parses the given protocol buffer definitions to be made available for RPC requests. |
209
-
|[Client.connect(address [,params])](https://grafana.com/docs/k6/latest/javascript-api/k6-net-grpc/client/client-connect)| Connects to a given gRPC service. |
210
-
|[Client.invoke(url, request [,params])](https://grafana.com/docs/k6/latest/javascript-api/k6-net-grpc/client/client-invoke)| Makes an unary RPC for the given service/method and returns a [Response](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/response). |
209
+
|[Client.connect(address [,params])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/client/client-connect)| Connects to a given gRPC service. |
210
+
|[Client.invoke(url, request [,params])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/client/client-invoke)| Makes an unary RPC for the given service/method and returns a [Response](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/response). |
211
211
|[Client.close()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/client/client-close)| Close the connection to the gRPC service. |
212
212
|[Params](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/params)| RPC Request specific options. |
213
213
|[Response](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-net-grpc/response)| Returned by RPC requests. |
|[aws](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/jslib/aws)| Library allowing to interact with Amazon AWS services |
14
-
|[httpx](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/jslib/httpx)| Wrapper around [k6/http](https://k6.io/docs/javascript-api/#k6-http) to simplify session handling |
14
+
|[httpx](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/jslib/httpx)| Wrapper around [k6/http](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/#k6http) to simplify session handling |
Copy file name to clipboardExpand all lines: docs/sources/next/javascript-api/k6-experimental/fs/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ The k6 filesystem experimental module provides a memory-efficient way to handle
12
12
13
13
### Memory efficiency
14
14
15
-
One of the key advantages of the filesystem module is its memory efficiency. Unlike the traditional [open](https://grafana.com/docs/k6/latest/javascript-api/init-context/open/) function, which loads a file multiple times into memory, the filesystem module reduces memory usage by loading the file as little as possible and sharing the same memory space between all VUs. This approach reduces the risk of encountering out-of-memory errors, especially in load tests involving large files.
15
+
One of the key advantages of the filesystem module is its memory efficiency. Unlike the traditional [open](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/init-context/open/) function, which loads a file multiple times into memory, the filesystem module reduces memory usage by loading the file as little as possible and sharing the same memory space between all VUs. This approach reduces the risk of encountering out-of-memory errors, especially in load tests involving large files.
Copy file name to clipboardExpand all lines: docs/sources/next/javascript-api/k6-experimental/fs/file/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ weight: 10
6
6
7
7
# File
8
8
9
-
The `File` class represents a file with methods for reading, seeking, and obtaining file stats. It's returned by the [open](https://grafana.com/docs/k6/latest/javascript-api/init-context/open/) function.
9
+
The `File` class represents a file with methods for reading, seeking, and obtaining file stats. It's returned by the [open](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/init-context/open/) function.
Copy file name to clipboardExpand all lines: docs/sources/next/javascript-api/k6-experimental/fs/open.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ weight: 20
6
6
7
7
# open
8
8
9
-
The `open` function opens a file and returns a promise that resolves to a [File](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/fs/file) instance. Unlike the traditional [open](https://grafana.com/docs/k6/latest/javascript-api/init-context/open/) function, which loads a file multiple times into memory, the filesystem module reduces memory usage by loading the file as little possible, and sharing the same memory space between all VUs. This approach reduces the risk of encountering out-of-memory errors, especially in load tests involving large files.
9
+
The `open` function opens a file and returns a promise that resolves to a [File](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/fs/file) instance. Unlike the traditional [open](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/init-context/open/) function, which loads a file multiple times into memory, the filesystem module reduces memory usage by loading the file as little possible, and sharing the same memory space between all VUs. This approach reduces the risk of encountering out-of-memory errors, especially in load tests involving large files.
Optionally, when running the test, you can set the `testid` tag as a [wide test tag](https://grafana.com/docs/k6/latest/using-k6/tags-and-groups/#test-wide-tags) to filter results of a particular test run on this dashboard (or in PromQL queries). `testid` can be any unique string that allows you to identify the test run.
69
+
Optionally, when running the test, you can set the `testid` tag as a [wide test tag](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/tags-and-groups/#test-wide-tags) to filter results of a particular test run on this dashboard (or in PromQL queries). `testid` can be any unique string that allows you to identify the test run.
Copy file name to clipboardExpand all lines: docs/sources/next/results-output/real-time/prometheus-remote-write.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,7 +234,7 @@ Clone the repository to get started and follow these steps for using the [docker
234
234
k6 run -o experimental-prometheus-rw script.js
235
235
```
236
236
237
-
Optionally, you can set the `testid` tag as a [wide test tag](https://grafana.com/docs/k6/latest/using-k6/tags-and-groups/#test-wide-tags) to segment metrics into discrete test runs and filter specific test results on the pre-built Grafana dashboards or in PromQL queries. `testid` can be any unique string that let you clearly identify the test run.
237
+
Optionally, you can set the `testid` tag as a [wide test tag](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/tags-and-groups/#test-wide-tags) to segment metrics into discrete test runs and filter specific test results on the pre-built Grafana dashboards or in PromQL queries. `testid` can be any unique string that let you clearly identify the test run.
0 commit comments