Example web UI for xk6-dashboard.
This repository itself is not a xk6 extension but an addon to xk6-dashboard extension. You can use it together with xk6-dashboard to replace default web UI.
Create you own UI
- Create repository from this template
- In go.mod file replace
github.com/szkiba/xk6-dashboard-ui-tmpl
with your repository path- Edit or generate files under ui folder
To build a k6
binary with this extension, first ensure you have the prerequisites:
- Go toolchain
- Git
Then:
- Download
xk6
:
$ go install go.k6.io/xk6/cmd/xk6@latest
- Build the binary:
$ xk6 build --with github.com/szkiba/xk6-dashboard --with github.com/szkiba/xk6-dashboard-ui-tmpl
Replace
github.com/szkiba/xk6-dashboard-ui-tmpl
with your repository path.
Without parameters the dashboard will accessible on port 5665
with any web browser: http://127.0.0.1:5665
$ ./k6 run --out dashboard script.js
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io
execution: local
script: script.js
output: dashboard (:5665) http://localhost:5665
For detailed usage information see xk6-dashboard.