Note
These instructions have been updated as of k6 version 0.47.0 (fall 2023). Updates to k6 and highlighted extensions may have changed the workflow shown in the video demonstration. The following instructions should supersede those from the video.
Note
The xk6-dashboard
extension was transferred to the Grafana organization thanks to @szkiba!
- Generate a k6 binary with the grafana/xk6-dashboard extension
go install go.k6.io/xk6/cmd/xk6@latest xk6 build --with github.com/grafana/xk6-dashboard@latest
- Run a test using run-dashboard.sh
./run-dashboard.sh scripts/ramping-arr-rate.js
- Access the dashboard at http://127.0.0.1:5665/
- Generate a multi-extension Docker image of k6 using Dockerfile.
docker build -t k6-extended:latest .
- Start our Grafana service backed by InfluxDB
docker compose -f influxdb/docker-compose.yml up
- Run a test using run-influxdb.sh
./run-influxdb.sh scripts/ramping-arr-rate.js
- Access the Grafana dashboard at http://localhost:3000/
- Shutdown Docker when finished running scripts
docker compose -f influxdb/docker-compose.yml down
- Start our Grafana service backed by InfluxDB
docker compose -f timescaledb/docker-compose.yml up
- Run a test using run-timescaledb.sh
./run-timescaledb.sh scripts/ramping-arr-rate.js
- Access the Grafana dashboard at http://localhost:3000/
- Shutdown Docker when finished running scripts
docker compose -f timescaledb/docker-compose.yml down
Important
The xk6-output-prometheus-remote
extension is now built into the native k6 binary as an experimental extension.
This removes the need to specially compile the extension, but does change some of the usage.
- Start our Grafana service backed by Prometheus
docker compose -f prometheus/docker-compose.yml up
- Run a test using run-prometheus.sh
./run-prometheus.sh scripts/ramping-arr-rate.js
- Access the Grafana dashboard at http://localhost:3000/
- Shutdown Docker when finished running scripts
docker compose -f prometheus/docker-compose.yml down