Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documents options for CSV output #718

Merged
merged 2 commits into from
Jul 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ iterations,1595325561,1.000000,,,,,,,,default,,,,,

Each entry in the report represents a metric `metric_name` along with its value `metric_value` at time `timestamp`. If there's an error, then the `error` along with the `error_code` fields will be populated.


## CSV options

k6 provides a few options to help you configure your CSV output:


| option | Configures | Possible values | Default | Env. variable |
|-------------------------------|--------------------------------------------------|---------------------------------------------------------------------------|------------|------------------------|
| `saveInterval` | The time intervals at which k6 writes to the CSV | Either a string with time units(`"1m45s"`), or a number of milliseconds | `"1s"` | `K6_CSV_SAVE_INTERVAL` |
| `timeFormat` | The timestamp format | Unix, [rfc3339](https://datatracker.ietf.org/doc/html/rfc3339) | Unix | `K6_CSV_TIME_FORMAT` |
MattDodsonEnglish marked this conversation as resolved.
Show resolved Hide resolved
| `fileName` | The file name and path where output is saved | N/A | `file.csv` | `K6_CSV_FILENAME` |

## See also

- [Metrics](/using-k6/metrics)
Expand Down