Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

szkiba/xk6-dashboard-ui-tmpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xk6-dashboard-ui-tmpl

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

  1. Create repository from this template
  2. In go.mod file replace github.com/szkiba/xk6-dashboard-ui-tmpl with your repository path
  3. Edit or generate files under ui folder

Build

To build a k6 binary with this extension, first ensure you have the prerequisites:

Then:

  1. Download xk6:
$ go install go.k6.io/xk6/cmd/xk6@latest
  1. 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.

Usage

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.