The main
branch is considered the source of stable releases.
Please open a PR with your proposed change.
-
Download and install Go if required.
-
Clone repository into a new folder.
-
Go to the new folder.
-
Build the extension with
make build
command. Find new K6 binary in./bin
subfolder. -
Run K6 tests with it using
--out otlp
flag, like./bin/k6 run --out otlp --config <./samples/config.json> ./samples/test.js
Example of local configuration file (VPN Required):
{
"collectors": {
"otlp": {
"metrics_url": "http(s)://<opentelemetry-collector>/v1/metrics",
"headers": {
"job": "tests"
},
"push_interval": "10s",
"timeout": "3s",
"gzip": true,
"insecure": false,
"add_id_attributes": true
}
}
}