Skip to content

Commit 7ef4443

Browse files
authored
Merge pull request #1294 from grafana/fix-broken-links
Fix broken links
2 parents 12e0c49 + d48c7ec commit 7ef4443

File tree

5 files changed

+22
-19
lines changed

5 files changed

+22
-19
lines changed

src/data/markdown/docs/05 Examples/01 Examples/24 distribute-workloads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,5 @@ export default function () {
155155
156156
</CodeGroup>
157157
158-
For a more sophisticated example of randomizing, read this [forum post](https://community.grafana.com/t/how-to-distribute-vus-across-different-scenarios-with-k6/49/17).
158+
For a more sophisticated example of randomizing, read this [forum post](https://community.grafana.com/t/how-to-distribute-vus-across-different-scenarios-with-k6/97698/17).
159159

src/data/markdown/docs/07 extensions/01 Get started/04 Create/01 JavaScript Extensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $ go install go.k6.io/xk6/cmd/xk6@latest
3333
```
3434

3535
1. In the directory, make a Go file for your JavaScript extension.
36-
36+
3737
A simple JavaScript extension requires a struct that exposes methods called by the test script.
3838

3939
<!-- TODO: A better trivial example? A coin flip perhaps? -->
@@ -340,7 +340,7 @@ INFO[0000] Active VUs: 2, Iteration: 2, VU ID: 2, VU ID from runtime: 2 source=
340340
- Use the registry's [`NewMetric`](https://pkg.go.dev/go.k6.io/k6/metrics#Registry.NewMetric) method to create
341341
custom metrics; to emit them, use [`metrics.PushIfNotDone()`](https://pkg.go.dev/go.k6.io/k6/metrics#PushIfNotDone).
342342

343-
> Questions? Feel free to join the discussion on extensions in the [k6 Community Forum](https://community.grafana.com/c/extensions/).
343+
> Questions? Feel free to join the discussion on extensions in the [k6 Community Forum](https://community.grafana.com/c/grafana-k6/extensions/82).
344344
345345
Next, create an [Output extension](/extensions/get-started/create/output-extensions/) to publish test metrics
346346
to a destination not already supported by k6.

src/data/markdown/docs/07 extensions/01 Get started/04 Create/02 Output Extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,5 @@ Your output should look something like this:
242242
- Use the [project template](https://github.com/grafana/xk6-output-template) as a starting point
243243
for your output extension.
244244

245-
> Questions? Feel free to join the discussion on extensions in the [k6 Community Forum](https://community.grafana.com/c/extensions/).
245+
> Questions? Feel free to join the discussion on extensions in the [k6 Community Forum](https://community.grafana.com/c/grafana-k6/extensions/82).
246246

src/data/markdown/docs/07 extensions/03 Guides/build-k6-using-docker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ docker run --rm -e GOOS=windows -v "%cd%:/xk6" ^
4141

4242
</CodeGroup>
4343

44-
This creates a `k6` (or `k6.exe`) binary in the current working directory.
44+
This creates a `k6` (or `k6.exe`) binary in the current working directory.
4545

4646
To build the binary with concrete versions, see the example below (k6 `v0.45.1`, xk6-kafka `v0.19.1`, and xk6-output-influxdb `v0.4.1`):
4747

@@ -84,7 +84,7 @@ The example command line may look a bit intimidating at first, but let's focus o
8484
docker run --rm -u "$(id -u):$(id -g)" -v "${PWD}:/xk6"
8585
```
8686

87-
This tells Docker to run a new container from an image.
87+
This tells Docker to run a new container from an image.
8888
- `--rm` means the container will be destroyed once your build is completed.
8989
- `-u` specifies the user and group IDs of the account on the host machine. This is important for the `k6` file to have the same file permissions as the host user.
9090
- `-v` is required to mount the current working directory inside the container, so that the `k6` binary can be written to it.
@@ -168,5 +168,5 @@ k6.exe run my-script.js
168168
169169
## Encountering issues?
170170
171-
If you're having issues, search the [k6 Community Forum](https://community.grafana.com/c/extensions/).
171+
If you're having issues, search the [k6 Community Forum](https://community.grafana.com/c/grafana-k6/extensions/82).
172172
Someone may have had the same issue in the past.

src/data/markdown/translated-guides/en/07 Testing Guides/05 Running distributed tests.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,21 @@ Using [kind](https://kind.sigs.k8s.io/) or [k3d](https://k3d.io/) are awesome op
3232

3333
</Blockquote>
3434

35-
- [1. Install the operator](#install-the-operator)
36-
- [2. Create a test script](#create-a-test-script)
37-
- [3. Adding test scripts](#add-test-scripts)
35+
- [Introducing k6-operator](#introducing-k6-operator)
36+
- [Get started with k6-operator](#get-started-with-k6-operator)
37+
- [1. Install the operator](#1-install-the-operator)
38+
- [2. Create a test script](#2-create-a-test-script)
39+
- [3. Add test scripts](#3-add-test-scripts)
3840
- [Add as a ConfigMap](#add-as-a-configmap)
39-
- [Add within a PersistentVolume](#add-inside-a-persistentvolume)
40-
- [4. Create a custom resource](#create-a-custom-resource)
41+
- [Add inside a PersistentVolume](#add-inside-a-persistentvolume)
42+
- [4. Create a custom resource](#4-create-a-custom-resource)
4143
- [Script in a ConfigMap](#script-in-a-configmap)
4244
- [Script in a PersistentVolume](#script-in-a-persistentvolume)
4345
- [Configure the environment](#configure-the-environment)
4446
- [Change command-line arguments](#change-command-line-arguments)
45-
- [5. Run your test](#run-your-test)
46-
- [6. When things go wrong](#when-things-go-wrong)
47+
- [5. Run your test](#5-run-your-test)
48+
- [6. When things go wrong](#6-when-things-go-wrong)
49+
- [See also](#see-also)
4750

4851
## 1. Install the operator
4952
The first step to running distributed tests in Kubernetes is to install the operator if not already installed in the cluster.
@@ -52,7 +55,7 @@ Installation commands must be run from the source directory.
5255

5356
<Blockquote mod="note" title="Prerequisites">
5457

55-
Besides privileged access to a Kubernetes cluster, installation will require that the system performing the installation has the following tools installed:
58+
Besides privileged access to a Kubernetes cluster, installation will require that the system performing the installation has the following tools installed:
5659
- [Git](https://git-scm.com/downloads)
5760
- [Go](https://go.dev/doc/install)
5861
- [Kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
@@ -216,7 +219,7 @@ spec:
216219
</CodeGroup>
217220
218221
Recall when the script was [added as a ConfigMap](#add-as-a-configmap) for our configuration values.
219-
We created the ConfigMap named `my-test`.
222+
We created the ConfigMap named `my-test`.
220223
The test script content was added to the map using the filename as the key-value, therefore the `file` value is `test.js`.
221224

222225
The amount of `parallelism` is up to you; how many pods do you want to split the test amongst?
@@ -259,7 +262,7 @@ It is important that the `PersistentVolumeClaim` and `CustomResource` are create
259262
</Blockquote>
260263

261264
### Configure the environment
262-
Not everything should be included directly in your scripts.
265+
Not everything should be included directly in your scripts.
263266
Well written scripts will allow for variability to support multiple scenarios and to avoid hard-coding values that tend to change.
264267
These could be anything from passwords to target urls, in addition to system options.
265268

@@ -346,7 +349,7 @@ The test configuration is applied as in the following:
346349
kubectl apply -f /path/to/your/k6-resource.yaml
347350
```
348351

349-
After completing a test run, you need to clean up the test jobs created.
352+
After completing a test run, you need to clean up the test jobs created.
350353
This is done by running the following command:
351354

352355
```shell
@@ -379,7 +382,7 @@ spec:
379382
## 6. When things go wrong
380383
Sadly nothing works perfectly all the time, so knowing where you can go for help is important.
381384

382-
Be sure to search the [k6-operator category in the community forum](https://community.grafana.com/c/k6-operator).
385+
Be sure to search the [k6-operator category in the community forum](https://community.grafana.com/c/grafana-k6/k6-operator/73).
383386
k6 has a growing and helpful community of engineers working with k6-operator, so there's a good chance your issue has already been discussed and overcome.
384387
It's also in these forums where you'll be able to get help from members of the k6 development team.
385388

0 commit comments

Comments
 (0)