A Docker Compose setup for running load tests with K6, Grafana, and InfluxDB for visualizing performance metrics.
docker-k6-grafana-influxdb is a Docker Compose configuration that sets up a complete load testing stack with K6 for generating load, InfluxDB for storing metrics, and Grafana for visualizing results. It solves the problem of manually integrating these tools by providing a ready-to-run environment for performance testing.
Developers, DevOps engineers, and QA teams who need to run and visualize load tests in a containerized environment without complex setup.
It offers a quick, reproducible way to start load testing with integrated visualization, using only Docker Compose, and includes a working example to get started immediately.
Demonstrates how to run load tests with containerised instances of K6, Grafana and InfluxDB
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses Docker Compose to run K6, Grafana, and InfluxDB as isolated services, enabling quick setup without local tool installations, as described in the project's value proposition.
Includes a Grafana dashboard adapted for K6 and InfluxDB with optimized time settings (now-15m), reducing manual configuration effort, as noted in the README's dashboard section.
Provides a sample K6 script for load testing the SWAPI public API, offering a practical starting point for users to modify and learn, as highlighted in the key features.
Linked to a Medium article that explains the integration in depth, aiding in understanding and customization beyond the basic setup, as mentioned in the README.
The README acknowledges common errors with file paths in Docker, requiring a workaround command with double slashes, which can be confusing and error-prone across different operating systems.
Only supports InfluxDB for metrics storage, lacking built-in options to switch to other databases like Prometheus without manual changes to the Docker Compose configuration.
The example script is a low-VU test on a public API, which may not demonstrate advanced K6 features such as thresholds, custom metrics, or complex scenario design.