k6-load-testing

Set up k6, InfluxDB, and Grafana load testing infrastructure with Docker.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/hugogu/skills --skill k6-load-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k6-load-testing
Source: https://github.com/hugogu/skills/tree/main/skills/k6-load-testing
Command: npx skills add https://github.com/hugogu/skills --skill k6-load-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

This skill provides an end-to-end, docker-based load testing stack (k6 + InfluxDB + Grafana) that enables teams to validate API performance under realistic traffic without manual setup.

Core Features & Use Cases

  • Complete testing stack: k6 load generator, InfluxDB metrics storage, Grafana dashboards for live visualization.
  • Four test types: load, stress, spike, and soak to cover routine renders and peak scenarios.
  • Safe, flexible integration with existing projects via three options (merge, separate, fresh) and CI/CD readiness.

Quick Start

Configure your environment and start the infrastructure, then run your first test.

Frequently Asked Questions about k6-load-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to set up k6 load testing with Grafana and InfluxDB?

You can set up k6 load testing with Grafana by deploying a Docker Compose stack integrating k6, InfluxDB, and Grafana. This provides a complete infrastructure to generate load, store metrics, and visualize API performance without manual configuration.

How do I integrate k6 load testing into an existing CI/CD pipeline?

You can integrate k6 load testing into an existing CI/CD pipeline using three flexible modes: merge, separate, or fresh. These options allow you to safely add load-testing capabilities to existing projects without disrupting current workflows.

Do I need Docker to run k6 performance tests with this setup?

Yes, you need Docker and docker-compose to run this k6 performance testing setup. These tools are required to deploy the testing infrastructure, manage the k6 load generator, and run the InfluxDB and Grafana containers.

What types of load testing scenarios does k6 support for API performance validation?

k6 supports four test types for API performance validation: load, stress, spike, and soak tests. These cover both routine traffic rendering and peak scenarios to measure how your API performs under realistic and extreme conditions.

Can I visualize live k6 metrics in Grafana during a load test?

Yes, you can visualize live k6 metrics in Grafana during a load test. The infrastructure sends real-time performance data from k6 to InfluxDB, which Grafana uses to display live dashboards for immediate monitoring and analysis.

What do I need to provide before starting API load testing with k6?

Before starting API load testing with k6, you need Docker and docker-compose installed, a target API URL to test against, and the ready-to-use templates provided for test scripts and Grafana dashboards included in the setup.