

- #Prometheus statsd exporter how to
- #Prometheus statsd exporter install
- #Prometheus statsd exporter code
You can try the whole stack with this simple K6 test.

90th percentile latency with threshold at 100 ms and 1000 ms.Mean latency with threshold at 20 ms and 200 ms.Heatmap of the request latencies over time.
#Prometheus statsd exporter code
#Prometheus statsd exporter how to
This article explains how to set it up on Fedora using Podman.Ĭreate the statsd_exporter configuration file.
#Prometheus statsd exporter install
The whole stack is made easy to install since all components are available as containers. The datadog implementation has the advantage of enabling the tags extension in the StatsD protocol.Īnd since the statsd_exporter also has support for tags, we will use it in the rest of this article. K6 has two implementations of the StatsD protocol: statsd and datadog. K6 pushes its metrics to the statsd_exporter while Prometheus scrapes the statsd_exporter. In the meantime, we can use StatsD as a bridge between K6 and Prometheus since K6 has a native support for StatsD and Prometheus handle the StatsD protocol through its statsd_exporter. This lack has been identified by the community and is tracked through the GitHub issue #1761). The K6 documentation does not mention any Prometheus support.

This integration fills a gap and provides a quick win for companies already using Prometheus. Here I explain how to integrate K6 with Prometheus using the existing StatsD support in K6, present the Grafana dashboard I built, and show how to use it. Proper integration of K6 with Prometheus is a clear lack identified by the community. K6 is a novel performance testing tool written in Go, using plain Javascript for the test definition and presenting the test results through Grafana.Īn existing article written in 2018 explains how to setup K6 with InfluxDB and Grafana, however Prometheus gained popularity over InfluxDB since then. Februlink Performance testing label K6 label Prometheus label Grafana schedule 6 minutes
