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
Copy file name to clipboardExpand all lines: README.md
+31-24Lines changed: 31 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,13 @@ By using the **xk6-dashboard** output extension you can access metrics from [k6]
18
18
19
19
The test run report can be exported to a responsive self-contained HTML file, which can be displayed even without an Internet connection.
20
20
21
+
>[!Warning]
22
+
> You are currently looking at the documentation of the next version on the master branch, which does not correspond in all respects to the operation of the last release. Select the tag corresponding to the release for more precise documentation.
23
+
>
24
+
> Major differences:
25
+
> - The output name has changed, in previous versions it was `dashboard`, from the next version it will be `web-dashboard`. The documentation already reflects this.
26
+
> - Screenshots may differ.
27
+
21
28
**Screenshots**
22
29
23
30
*Overview*
@@ -92,7 +99,7 @@ Then:
92
99
Without parameters the dashboard will be accessible on port `5665` with any web browser: http://127.0.0.1:5665
93
100
94
101
```plain
95
-
$ ./k6 run --out dashboard script.js
102
+
$ ./k6 run --out web-dashboard script.js
96
103
97
104
/\ |‾‾| /‾‾/ /‾‾/
98
105
/\ / \ | |/ / / /
@@ -102,10 +109,10 @@ $ ./k6 run --out dashboard script.js
102
109
103
110
execution: local
104
111
script: script.js
105
-
output: dashboard (:5665) http://127.0.0.1:5665
112
+
output: web-dashboard http://127.0.0.1:5665
106
113
```
107
114
108
-
> Using `--out dashboard=open` will automatically open a new browser window.
115
+
> Using `--out web-dashboard=open` will automatically open a new browser window.
109
116
110
117
## Exit
111
118
@@ -118,7 +125,7 @@ In certain environments, it is not allowed that the k6 process does not exit aft
118
125
The output extension accepts parameters in a standard query string format:
119
126
120
127
```
121
-
k6 run --out 'dashboard=param1=value1¶m2=value2¶m3=value3'
128
+
k6 run --out 'web-dashboard=param1=value1¶m2=value2¶m3=value3'
122
129
```
123
130
124
131
> Note the apostrophes (`'`) around the `--out` parameter! You should use it to escape `&` characters from the shell (or use backslash before `&`).
@@ -175,17 +182,17 @@ The dashboard will accessible on port `5665` with any web browser: http://127.0.
175
182
The test run report can be exported to a responsive self-contained HTML file. For export, the file name must be specified in the `export` parameter. If the file name ends with `.gz`, the HTML report will automatically be gzip compressed.
176
183
177
184
```plain
178
-
k6 run --out dashboard=export=test-report.html script.js
185
+
k6 run --out web-dashboard=export=test-report.html script.js
179
186
```
180
187
181
188
The exported HTML report file does not contain external dependencies, so it can be displayed even without an Internet connection. Graphs can be zoomed by selecting a time interval. If necessary, the report can be printed or converted to PDF format.
182
189
183
-
By using the `--export` switch of the `dashboard replay` command, the report can also be generated afterwards from the previously saved JSON format result (`--out json=test-result.json`).
190
+
By using the `--export` switch of the `web-dashboard replay` command, the report can also be generated afterwards from the previously saved JSON format result (`--out json=test-result.json`).
184
191
185
192
The report can also be viewed and downloaded from the dashboard UI using the buttons on the "Report" tab.
@@ -210,15 +217,15 @@ Two kind of events will be emitted:
210
217
211
218
## Command Line
212
219
213
-
The xk6-dashboard extension adds a `dashboard` command to the k6 command line:
220
+
The xk6-dashboard extension adds a `web-dashboard` command to the k6 command line:
214
221
215
222
```sh
216
-
$ ./k6 dashboard --help
223
+
$ ./k6 web-dashboard --help
217
224
218
225
xk6-dashboard commands
219
226
220
227
Usage:
221
-
k6 dashboard [command]
228
+
k6 web-dashboard [command]
222
229
223
230
Available Commands:
224
231
aggregate convert saved json output to recorded dashboard events
@@ -228,20 +235,20 @@ Available Commands:
228
235
Flags:
229
236
-h, --help helpfor dashboard
230
237
231
-
Use "k6 dashboard [command] --help"for more information about a command.
238
+
Use "k6 web-dashboard [command] --help"for more information about a command.
232
239
```
233
240
234
241
At the moment, the `dashboard` command has three subcommand, `replay` (which can be used to play back dashboard events previously saved with `record` parameter), `aggregate` (which can be used to convert test run results previously saved in JSON format from k6 to dashboard events format NDJSON) and `report` (which can be used to generate report from dashboard events previously saved with `record` parameter).
235
242
236
243
237
244
```sh
238
-
$ ./k6 dashboard replay --help
245
+
$ ./k6 web-dashboard replay --help
239
246
240
247
The replay command load the recorded dashboard events (NDJSON format) and replay it for the dashboard UI.
241
248
The compressed file will be automatically decompressed if the file extension is .gz
242
249
243
250
Usage:
244
-
k6 dashboard replay file [flags]
251
+
k6 web-dashboard replay file [flags]
245
252
246
253
Flags:
247
254
--host string Hostname or IP address for HTTP endpoint (default: '', empty, listen on all interfaces)
@@ -252,13 +259,13 @@ Flags:
252
259
```
253
260
254
261
```
255
-
$ ./k6 dashboard aggregate --help
262
+
$ ./k6 web-dashboard aggregate --help
256
263
257
264
The aggregate command converts the file saved by json output to dashboard format events file.
258
265
The files will be automatically compressed/decompressed if the file extension is .gz
0 commit comments