The built-in StatsD output has been deprecated on k6 v0.47.0. You can continue to use this feature by using the xk6-output-statsd extension, and this guide has been updated to include instructions for how to use it.
For more information on the reason behind this change, you can follow this issue in the k6 repository.
k6 can send performance testing metrics to Netdata. This enables the user to start monitoring their k6 experiments right away, as Netdata is a monitoring tool with:
- Auto-configuration and auto-detection of data sources
- Automatic organization of metrics into meaningful charts and visualization
- Per-second metric granularity
Netdata runs on many different systems and platforms. The easiest way to download and run Netdata is through the kickstart script:
Alternatively, you can read more about installing and running Netdata in their documentation.
Netdata runs a fully functional StatsD server by default and we have included a default configuration file for k6 metrics.
Make sure you're using the k6 binary you built with the xk6-output-statsd extension.
Caveat: By default, Netdata binds the StatsD server to localhost. That means that if Netdata and k6 are in different hosts, you will need to edit the configuration file of Netdata.
- Visit the StatsD documentation for a reference on the configuration options. We are interested in the #bind to option.
- Use sudo ./edit-config netdata.conf from inside the directory where Netdata stores its configuration files (e.g /etc/netdata/) and add bind to=udp:0.0.0.0:8125.
Netdata will automatically create charts for your application, as illustrated in the documentation.
Simply head over to localhost:19999 (assuming that you are running Netdata on the same machine) and find the k6 section. If you had opened Netdata before running the experiment, you will need to refresh the dashboard page.