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
{{ message }}
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -60,22 +60,26 @@ This repo includes a [docker-compose.yml](./docker-compose.yml) file that starts
60
60
Clone the repo to get started and follow these steps:
61
61
62
62
1. Start the docker compose environment.
63
-
```shell
64
-
docker-compose up -d
65
-
```
63
+
```shell
64
+
docker-compose up -d
65
+
```
66
66
67
67
> Some users have encountered failures forthe k6 build portion. A workaround may be to disable the _"Use Docker Compose V2"_ checkboxin the _General_ section of Docker Desktop settings.
2. Use the k6 Docker image to run the k6 script and send metrics to the Prometheus container started on the previous step. The [test.js](./example/test.js) sets a [test-wide tag](https://k6.io/docs/using-k6/tags-and-groups/#test-wide-tags) with a unique identifier to segment the metrics into discrete test runs for Grafana dashboards.
2. Use the k6 Docker image to run the k6 script and send metrics to the Prometheus container started on the previous step. You must [set the `testid` tag](https://k6.io/docs/using-k6/tags-and-groups/#test-wide-tags) with a unique identifier to segment the metrics into discrete test runs for the Grafana dashboards.
77
+
```shell
78
+
docker-compose run --rm k6 run -<example/test.js --tag testid=<SOME-ID>
79
+
```
80
+
For convenience, the `docker-run.sh` can be used to simply:
81
+
```shell
82
+
./docker-run.sh example/test.js
83
+
```
80
84
81
85
3. Visit http://localhost:3000/ to view results in Grafana.
0 commit comments