Results & Visualization Overview
k6 emits metrics with timestamps at every point of the test, providing comprehensive data about your load testing results. You can output these metric results as either aggregated statistics or individual data points, depending on your analysis needs.Output Options
k6 provides two main approaches to viewing test results:End-of-Test Summary
For a top-level test overview, k6 displays an end-of-test summary when your test completes. This provides aggregated statistics including:- Threshold pass/fail results
- Check results and success rates
- Aggregated metrics by category (HTTP, execution, network, custom)
- Summary statistics (avg, min, max, percentiles)
Real-Time Streaming
For granular output of all metrics with timestamps, you can stream metrics in real time to:- File formats: CSV, JSON
- External services: InfluxDB, Prometheus, Datadog, Grafana Cloud k6, and many more
- Live monitoring during test execution
- Long-term storage and trend analysis
- Integration with existing observability platforms
- Custom processing and alerting
Visualization Options
Web Dashboard
k6 includes a built-in web dashboard that you can enable to visualize results in real time as your test runs. The dashboard provides:- Live performance metrics and graphs
- Real-time threshold status
- Check results
- Downloadable HTML reports
Grafana Dashboards
For advanced visualization and correlation with other observability data, you can use Grafana dashboards. This approach allows you to:- Create custom dashboards with multiple data sources
- Correlate k6 results with application and system metrics
- Analyze performance over multiple test runs
- Use pre-built dashboards for popular backends like InfluxDB and Prometheus
Choosing Your Approach
- Quick Analysis
- Real-Time Monitoring
- Advanced Analysis
Use the end-of-test summary for:
- Local test runs
- CI/CD pipelines
- Quick performance checks
- Threshold-based pass/fail decisions
Multiple Outputs
You can combine multiple output options in a single test run:- Shows the default end-of-test summary
- Displays the web dashboard at http://127.0.0.1:5665
- Saves detailed metrics to results.json
- Streams metrics to InfluxDB for Grafana visualization
Next Steps
End-of-Test Summary
Learn about the default summary output and how to customize it
Real-Time Streaming
Explore options for streaming metrics during test execution
Web Dashboard
Enable the built-in web dashboard for live monitoring
Grafana Dashboards
Visualize results with Grafana and pre-built dashboards
Additional Resources
- Ways to visualize k6 results - Blog post exploring visualization options
- k6 data collection pipeline - Deep dive into how k6 collects and processes metrics
- Build an output extension - Create custom output formats