cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

📢 Grafana k6 - available on the Dynatrace Hub

AgataWlodarczyk
Community Team
Community Team

Screenshot 2024-07-10 at 11.37.20.png 

The k6 tile is now live on the Hub!

Feel free to check it, use it, and provide feedback.


Overview

K6 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.


Use cases

  • Load testing metric ingest
  • Export k6 load testing metrics to Dynatrace


Get started

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 


Run k6 and Export to Dynatrace

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

Upload Dashboard

The metrics will be available via the "Metrics" page during the load test.

You may also wish to upload this prebuilt dashboard.


Documentation

When passion meets people magic and innovation happen.
0 REPLIES 0

Featured Posts