Load Testing with K6, Grafana and InfluxDB
docker compose up -d
docker exec k6 k6 run /tests/http-test.js
docker exec k6 k6 run /tests/http-test.js --http-debug="full"
docker exec k6 k6 run /tests/websocket-test.js
docker exec k6 k6 run /tests/sse-test.js
Grafana Dashboard (UI)
Open:
Login: admin / admin resetted - admin123
Then:
Go to Configuration → Data Sources → Add data source
Select InfluxDB
Config:
URL: http://influxdb:8086
Database: k6
Import this official k6 dashboard:
Dashboard ID: 2587 (“k6 Load Testing Results”)