xk6 will create the k6 binary in the local folder.
To learn more about how to build custom k6 versions, check out xk6
Check that the TimescaleDB instance is running. Copy the Postgres connection string of the database, which will store the k6 metrics.
Use the previous k6 binary and run the test passing the Postgres connection string to the output option as follows:
k6 runs the test script and send the metrics in real-time to the TimescaleDB instance. You can now connect to TimescaleDB and query the k6 metrics.
Here is the full list of options that can be configured and passed to the extension:
|K6_TIMESCALEDB_PUSH_INTERVAL||Define how often metrics are sent to TimescaleDB. The default value is 1s (1 second).|
The extension repository includes a docker-compose setup with two pre-built dashboards to:
- list test runs
- visualize the results of a test run