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
With this commit we:
* Simplify the docker-compose file and improve docs
* Move the example script to the required directory
* Upgrade to the most recent version of k6
Relates #8
./k6 run ./samples/script.js -o output-elasticsearch
58
+
./k6 run ./examples/script.js -o output-elasticsearch
59
59
```
60
60
61
61
The metrics are stored in the index `k6-metrics` which will be automatically created by this extension. See the [mapping](pkg/esoutput/mapping.json) for details.
@@ -68,7 +68,7 @@ Note that some variables (Stack version, elastic and Kibana users' passwords) ar
68
68
69
69
Clone the repo to get started and follow these steps:
70
70
71
-
1. Put your `k6` scripts in the `samples` directory or use the [`script.js`](./samples/script.js) example.
71
+
1. Put your `k6` scripts in the `examples` directory or use the [`script.js`](examples/script.js) example.
72
72
73
73
3. Start the `docker-compose` environment.
74
74
@@ -79,16 +79,16 @@ Clone the repo to get started and follow these steps:
79
79
4. Use the k6 Docker image to run the k6 script and send metrics to the Elasticsearch cluster started in the previous step.
80
80
81
81
```shell
82
-
docker-compose run --rm -T k6 run -<samples/script.js --tag testid=<SOME-ID>
82
+
docker-compose run --rm -T k6 run -<examples/script.js --tag testid=<SOME-ID>
83
83
```
84
84
85
85
> Note that the [docker-compose command to run k6 tests](https://k6.io/docs/getting-started/running-k6/) might differ depending your OS.
86
86
87
-
5. Visit http://localhost:5601/ to view results in Kibana.
87
+
5. Visit http://localhost:5601/ to view results in Kibana (default credentials are `elastic` / `changeme`).
88
88
89
89
- Create a [Data View](https://www.elastic.co/guide/en/kibana/current/data-views.html) for the index `k6-metrics`.
90
90

91
91
- Go to [Discover](https://www.elastic.co/guide/en/kibana/current/discover.html) to start exploring the metrics.
92
92

93
93
94
-
When done, to clean up run `docker-compose down -v`.
94
+
When done, to clean up run `docker-compose down -v`.
0 commit comments