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
A string specifying the total duration a test run should be run for. During this time each
@@ -408,7 +503,7 @@ $ k6 run --include-system-env-vars ~/script.js
408
503
### Insecure Skip TLS Verify
409
504
410
505
A boolean, true or false. When this option is enabled (set to true), all of the verifications that
411
-
would otherwise be done to establish trust in a server provided TLS certificate will be ignored.
506
+
would otherwise be done to establish trust in a server provided TLS certificate will be ignored.
412
507
This only applies to connections created by VU code, such as http requests.
413
508
Available in `k6 run` and `k6 cloud` commands
414
509
@@ -481,6 +576,31 @@ export let options = {
481
576
482
577
</CodeGroup>
483
578
579
+
### Local IPs
580
+
581
+
A list of IPs, IP ranges and CIDRs from which VUs will make requests. The IPs will be sequentially
582
+
given out to VUs. This option doesn't change anything on the OS level so the IPs need to be already
583
+
configured on the OS level in order for k6 to be able to use them. Also IPv4 CIDRs with more than 2
584
+
IPs don't include the first and last IP as they are reserved for referring to the network itself and
585
+
the broadcast address respectively.
586
+
587
+
This option can be used for splitting the network traffic from k6 between multiple network cards, thus potentially increasing the available network throughput. For example, if you have 2 NICs, you can run k6 with `--local-ips="<IP-from-first-NIC>,<IP-from-second-NIC>"` to balance the traffic equally between them - half of the VUs will use the first IP and the other half will use the second. This can scale to any number of NICs, and you can repeat some local IPs to give them more traffic. For example, `--local-ips="<IP1>,<IP2>,<IP3>,<IP3>"` will split VUs between 3 different source IPs in a 25%:25%:50% ratio.
|`nothing`| the endpoint to which to send logs |`http://127.0.0.1:3100/loki/api/v1/push`|
623
+
| allowedLabels | if set k6 will send only the provided labels as such and all others will be appended to the message in the form `key=value`. The value of the option is in the form `[label1,label2]`| N/A |
503
624
| label.`labelName`| adds an additional label with the provided key and value to each message | N/A |
504
625
| limit | the limit of message per pushPeriod, an additional log is send when the limit is reached, logging how many logs were dropped | 100 |
505
626
| level | the minimal level of a message so it's send to loki | all |
@@ -839,7 +960,7 @@ Available in the `k6 run` command.
Copy file name to clipboardExpand all lines: src/data/markdown/docs/01 guides/02 Using k6/08 Tags and Groups.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Currently, k6 automatically creates the following tags by default:
61
61
|`proto`| the used protocol name (e.g. `HTTP/1.1`) |
62
62
|`subproto`| the subprotocol name (used by websockets) |
63
63
|`status`| the HTTP status code (e.g. `200`, `404`, etc.) |
64
-
|`method`| the HTTP method name (e.g. `GET`, `POST`, etc.) |
64
+
|`method`| the HTTP method name (e.g. `GET`, `POST`, etc.) or the RPC method name for gRPC|
65
65
|`url`| the HTTP request URL |
66
66
|`name`| the HTTP [request name](/using-k6/http-requests#url-grouping)|
67
67
|`group`| the full [group](#groups) path |
@@ -70,6 +70,8 @@ Currently, k6 automatically creates the following tags by default:
70
70
|`error_code`| added in k6 v0.24.0, this is a number that is unique for different error types; a list of current error codes can be found at the [Error Codes](/javascript-api/error-codes) page |
71
71
|`tls_version`| the [TLS](/using-k6/protocols/ssl-tls) version |
72
72
|`scenario`| the name of the scenario where the metric was emitted |
73
+
|`service`| the RPC service name for gRPC |
74
+
|`rpc_type`| one of `unary`, `server_streaming`, `client_streaming` or `bidirectional_streaming` for gRPC. *Note:* only `unary` requests are currently supported. |
73
75
74
76
If you choose, you could disable some of the above tags by using the `systemTags`
75
77
[option](/using-k6/options), just keep in mind that some data collectors (e.g. `cloud`)
Collapse file: src/data/markdown/docs/01 guides/02 Using k6/10 Protocols.md
0 commit comments