Basics of load testing with k6 and Grafana in 20 minutes
Vložit
- čas přidán 22. 08. 2024
- Nicole van der Hoeven discusses the basics of load testing with k6 and Grafana in 20 minutes, including a demo of how to get started with k6 and how to integrate it with Grafana using the k6 Cloud data source plugin and Prometheus Remote Write.
Nicole on Twitter: / n_vanderhoeven
Learn more about k6:
Website: k6.io
Repo: github.com/gra...
Docs: k6.io/docs
The Grafana k6 Cloud data source plugin: grafana.com/gr... - Věda a technologie
k6 is an amazing tool, thanks!
Glad you like it, Joenio! :) The team will be happy to hear that too. - Nicole
Is there any k6 dashboard free to use on local grafana?
Hi Marcel! Sorry-- I'm just answering some older comments like yours that we missed the first time around. We don't have any specific dashboards for k6 OSS (you can create them yourself though) but if you are using k6 Cloud, you can definitely use the k6 Grafana app, which has a lot of similar charts to k6 Cloud. - Nicole
Is there currently a way to show report results from the k6 oss besides the cli ?
Hi! Yes, there are a few ways:
- HTML dashboards
- Output to CSV, and then graph using a data visualization tool
- Output to Influx DB and use Telegraf to send it to Grafana
- Prometheus Remote Write output (very soon)
You can use the HTML dashboard generators: github.com/benc-uk/k6-reporter and github.com/szboynono/k6-html-reporter . I also demonstrate how this works here: czcams.com/video/Zln_TWOuoho/video.html
You can output k6 results to a CSV file using the command `k6 run test.js -o csv=results.csv` .
This page in our documentation shows how to send results from k6 to an instance of Grafana/Prometheus: k6.io/docs/results-visualization/grafana-cloud/
And we are also working on a Prometheus Remote Write integration that will be released very soon!
Hope that helps!
- Nicole
Thank you for your answer! I like your vids!