Extend the platform,
empower your team.
Visualize your k6 metrics in Dynatrace.
Technology by CommunityK6 emits several key load test health metrics during runtime. Use this integration to send this data into Dynatrace. Then, deploy the provided dashboard to visualize these key metrics for your load tests.
Get started with a hands on, in browser demo here:
k6 requires that you build a custom binary using their xk6
tool.
To build k6 binary with the Prometheus remote write output extension use:
xk6 build --with github.com/Dynatrace/xk6-output-dynatrace@latest
The API token needs "Ingest metrics" metrics.ingest
permission.
export K6_DYNATRACE_URL=http://<environmentid>.live.dynatrace.com
export K6_DYNATRACE_APITOKEN=<Dynatrace API token>
./k6 run script.js -o output-dynatrace
The metrics will be available during the load test via the "Metrics" page.
You may also wish to upload this prebuilt dashboard.