Skip to content

Commit

Permalink
Merge pull request #1525 from grafana/feat/options-cloud
Browse files Browse the repository at this point in the history
Introducing options.cloud
  • Loading branch information
oleiade committed Mar 20, 2024
2 parents 558e800 + 29ccc8b commit 4b0b991
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/sources/next/using-k6/k6-options/reference.md
Expand Up @@ -30,7 +30,7 @@ Each option has its own detailed reference in a separate section.
| [Duration](#duration) | A string specifying the total duration of the test run; together with the [vus option](#vus), it's a shortcut for a single [scenario](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/scenarios) with a [constant VUs executor](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/scenarios/executors/constant-vus) |
| [Execution segment](#execution-segment) | Limit execution to a segment of the total test |
| [Exit on running](#exit-on-running) | Exits when test reaches the running status |
| [Extension options](#extension-options) | An object used to set configuration options for cloud parameters and third-party collectors |
| [Cloud options](#cloud-options) | An object used to set configuration options for cloud parameters. |
| [Hosts](#hosts) | An object with overrides to DNS resolution |
| [HTTP debug](#http-debug) | Log all HTTP requests and responses |
| [Include system Env vars](#include-system-env-vars) | Pass the real system environment variables to the runtime |
Expand Down Expand Up @@ -352,13 +352,13 @@ export const options = {

{{< /code >}}

## Extension options
## Cloud options

An object used to set configuration options for cloud parameters and third-party collectors, like plugins. For more information about available parameters, refer to [Cloud options](https://grafana.com/docs/grafana-cloud/k6/author-run/cloud-scripting-extras/cloud-options/).

| Env | CLI | Code / Config file | Default |
| --- | --- | ------------------ | ------- |
| N/A | N/A | `ext` | `null` |
| N/A | N/A | `cloud` | `null` |

This is an example of how to specify the test name (test runs/executions with the same name will be
logically grouped for trending and comparison) when streaming results to
Expand All @@ -368,14 +368,14 @@ logically grouped for trending and comparison) when streaming results to

```javascript
export const options = {
ext: {
loadimpact: {
name: 'My test name',
},
cloud: {
name: 'My test name',
},
};
```

Previously, the `cloud` object was known as `ext.loadimpact`.

{{< /code >}}

## Execution segment
Expand Down

0 comments on commit 4b0b991

Please sign in to comment.