net8.0net9.0net10.0
Granafa k6 support for .NET Aspire.
Published
Jan 14, 2026
9mo ago
Total Downloads
69.6K
69,596
Install
dotnet add package CommunityToolkit.Aspire.Hosting.k6 --version 13.1.0
| Product | Versions |
|---|---|
| .NET |
README
CommunityToolkit.Aspire.Hosting.k6 library
Provides extension methods and resource definitions for the .NET Aspire AppHost to support running Grafana k6 containers.
Getting Started
Install the package
In your AppHost project, install the package using the following command:
dotnet add package CommunityToolkit.Aspire.Hosting.k6
Example usage
Then, in the Program.cs file of AppHost, add a k6 resource and consume the connection using the following methods:
var builder = DistributedApplication.CreateBuilder(args);
var myService = builder.AddProject<Projects.MyService>();
var k6 = builder.AddK6("k6")
.WithReference(myService);
builder.Build().Run();
Additional Information
https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-k6
Feedback & contributing
Changes from Previous Version
No structural changes between v13.1.0-beta.499 and v13.1.0.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.