
Grafana k6
CLIGrafana 出品的负载与性能测试工具:用 JavaScript 编写压测脚本,支持 HTTP、WebSocket、gRPC 与浏览器,可设阈值断言并接入 CI。
Like unit testing, for performance
Modern load testing for developers and testers in the DevOps era.
Download · Documentation · Community Forum · Public Roadmap
k6 is a modern load-testing tool, built on our years of experience in the performance and testing industries. It's built to be powerful, extensible, and full-featured. The key design goal is to provide the best developer experience.
Its core features are:
- Configurable load generation. Even lower-end machines can simulate lots of traffic.
- Tests as code. Reuse scripts, modularize logic, version control, and integrate tests with your CI.
- A full-featured API. The scripting API is packed with features that help you simulate real application traffic.
- An embedded JavaScript engine. The performance of Go, the scripting familiarity of JavaScript.
- Multiple Protocol support. HTTP, WebSockets, gRPC, Browser, and more.
- Large extension ecosystem. You can extend k6 to support your needs. And many people have already shared their extensions with the community! Explore the available extensions.
- Flexible metrics storage and visualization. Summary statistics or granular metrics, exported to the service of your choice.
- Native integration with Grafana cloud. SaaS solution for test execution, metrics correlation, data analysis, and more.
This is what load testing looks like in the 21st century.
Example script
import http from "k6/http";
import { check, sleep } from "k6";
// Test configuration
export const options = {
thresholds: {
// Assert that 99% of requests finish within 3000ms.
http_req_duration: ["p(99) < 3000"],
},
// Ramp the number of virtual users up and down
stages: [
{ duration: "30s", target: 15 },
{ duration: "1m", target: 15 },
{ duration: "20s", target: 0 },
],
};
// Simulated user behavior
export default function () {
let res = http.get("https://quickpizza.grafana.com");
// Validate response status
check(res, { "status was 200": (r) => r.status == 200 });
sleep(1);
}
You can run scripts like this on the CLI, or in your CI, or across a Kubernetes cluster.
[!NOTE] Don't want to write code ?
We got you! Meet k6 Studio, a desktop application made to help you generate k6 scripts without having to touch code!
Documentation
The docs cover all aspects of using k6. Some highlights include:
- Get Started. Install, run a test, inspect results.
- HTTP requests. Have your virtual users use HTTP methods. Or, check the other Protocols.
- Thresholds. Set goals for your test, and codify your SLOs.
- Options. Configure your load, duration, TLS certificates, and much, much more.
- Scenarios. Choose how to model your workload: open models, closed models, constant RPS, fixed iterations, and more.
- Results output. Study, filter, and export your test results.
- JavaScript API. Reference and examples of all k6 modules.
- Extensions. Extend k6 for new protocols and use cases.
These links barely scratch the surface! If you're looking for conceptual information, you can read about Test types, Test strategies, or one of the many informative Blog posts.
Roadmap
Our team is dedicated to continuously improving and providing the best user experience possible. The public roadmap covers user-oriented features, UX improvements and JavaScript support that our team will focus on. Remember that timeframes and priorities may shift, but we believe it's important to share our vision.
We hope it provides a clear overview of our plans for future development. We welcome feedback, corrections, and suggestions via GitHub to make it more comprehensive, accessible, and valuable for the community.
It's worth mentioning that we consider upvotes (thumbs-up) to be one of the essential metrics for determining community needs. If you want to show us the importance of a feature, please give it a thumbs-up.
Contribute
If you want to contribute or help with the development of k6, start by reading CONTRIBUTING.md. Before you start coding, it might be a good idea to first discuss your plans and implementation details with the k6 maintainers—especially when it comes to big changes and features. You can do this in the GitHub issue for the problem you're solving (create one if it doesn't exist).
Note: To disclose security issues, refer to SECURITY.md.
Support
To get help, report bugs, suggest features, and discuss k6 with others, refer to SUPPORT.md.
License
k6 is distributed under the AGPL-3.0 license.
相關資源

Grafana Skills
SkillGrafana Labs 官方技能库:看板与告警、PromQL、Loki/Tempo/Mimir/Pyroscope 查询、Prometheus 基数排查、Grafana Cloud 管理与成本优化、k6 压测与插件开发。部分技能需要 Grafana Cloud。
grafana/skills285
MCP Server Plugin for Jenkins
MCPJenkins 插件,装上后 Jenkins 自身就是 MCP 服务器:agent 可查询任务、触发与重跑构建、分页读取和搜索构建日志、查看测试结果与 SCM 信息。托管在 Jenkins 官方组织,用 Jenkins API Token 做 Basic 鉴权。
jenkinsci/mcp-server-plugin116
act
CLI在本地用 Docker 运行 GitHub Actions 工作流,改完 .github/workflows 不必反复提交推送就能验证 CI,也能把工作流当作本地任务运行器。需要本机安装 Docker。
nektos/act72.3k
Cline CLI
CLICline 官方命令行版,与 VS Code 插件共用 Agent 核心,支持 plan/act 模式、MCP、检查点与子代理;--yolo、--json 可无人值守跑在 CI 与脚本里。可登录 Cline、ChatGPT 订阅或自带 API Key。
cline/cline70.4k
Bruno CLI
CLI开源 API 客户端 Bruno 的官方命令行 bru:批量运行以纯文本存放在仓库里的接口集合,可切换环境、输出 JSON 结果,并能从 OpenAPI 导入集合,便于在 CI 中跑接口测试。
usebruno/bruno47.7k
GitHub CLI
CLIGitHub 官方命令行:在终端里管理 PR、Issue、Release 与 Actions 工作流,多数命令支持 --json 输出便于 agent 解析,并提供官方 agent skill。需先 gh auth login 登录。
cli/cli46.7k