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.
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 StatsD documentation for a reference on the configuration options. We are interested in #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.