Test result data can be exported after a test has finished and data processing complete. To do so, use the test results menu in the top right of a test result and select
Export Data. The data will be exported as a
.tar.gz file with a
.csv contained inside.
The CSV data has the following columns of data:
Here's example data, units (where necessary) and description of each field present in the CSV data.
|2019-03-25 11:12:48.927949+00:00||datetime (UTC)||The ISO-8601 timestamp when this data point was captured (when the HTTP request was made).|
|http_req_duration||string||The metric name that this data point represents.|
|e1158ec16fa10dcfd16f4bd7309e2c55||string||The ID of the k6 |
|2.008016||number (ms)||The HTTP response time of the request that this data point represents (if |
|http://test.k6.io/style.css||string||The URL requested.|
|GET||string||The HTTP method of the request that this data point represents.|
|200||number||The HTTP response status code of the request that this data point represents.|
|1.0||number||Number of samples that this data point represents (if > 1 |
|amazon:us:ashburn||string||The load zone where the request(s) was made from.|
The exported CSV file currently only contains data from the primary HTTP response time metric (
http_req_duration). In the future we'll expand the export feature with more HTTP data, WebSocket data, Checks data, Thresholds data as well as Custom metrics data.