CSS.K6.Hosting.Outputs.InfluxDB
0.1.2-beta
This is a prerelease version of CSS.K6.Hosting.Outputs.InfluxDB.
dotnet add package CSS.K6.Hosting.Outputs.InfluxDB --version 0.1.2-beta
NuGet\Install-Package CSS.K6.Hosting.Outputs.InfluxDB -Version 0.1.2-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CSS.K6.Hosting.Outputs.InfluxDB" Version="0.1.2-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSS.K6.Hosting.Outputs.InfluxDB" Version="0.1.2-beta" />
<PackageReference Include="CSS.K6.Hosting.Outputs.InfluxDB" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CSS.K6.Hosting.Outputs.InfluxDB --version 0.1.2-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSS.K6.Hosting.Outputs.InfluxDB, 0.1.2-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=CSS.K6.Hosting.Outputs.InfluxDB&version=0.1.2-beta&prerelease
#tool nuget:?package=CSS.K6.Hosting.Outputs.InfluxDB&version=0.1.2-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CSS.K6.Hosting.Outputs.InfluxDB
InfluxDB output provider for storing and querying k6 load test metrics in .NET Aspire applications.
Overview
This package extends the k6 integration for .NET Aspire by adding InfluxDB support. It enables you to store your load testing metrics in InfluxDB for efficient time-series data storage and analysis.
Features
- Add InfluxDB container to your Aspire application
- Configure k6 to output metrics to InfluxDB
- Integration with Grafana for visualization
- Support for custom InfluxDB configurations
Installation
dotnet add package CSS.K6.Hosting.Outputs.InfluxDB
Requirements
- .NET 8.0 or .NET 9.0
- .NET Aspire
- CSS.K6.Hosting.Aspire
- Docker (for running the InfluxDB container)
Usage
Add InfluxDB output to your k6 load testing setup:
var builder = DistributedApplication.CreateBuilder(args);
// Add your API project
var apiProject = builder.AddProject<Projects.MyApi>("api");
// Add k6 with InfluxDB output
builder.AddK6("load-testing", options =>
{
options.ScriptDirectory = "scripts";
options.ScriptFileName = "loadtest.js";
})
.WithApiEndpoint(apiProject)
.WithInfluxDbOutput();
// Add Grafana with InfluxDB datasource (optional)
// Requires CSS.K6.Hosting.Outputs.Grafana package
builder.WithGrafanaDashboard()
.WithGrafanaInfluxDbDatasource();
// The application builder and services configuration continues...
Options
- ConnectionString: Custom connection string for InfluxDB
- ResourceName: Name for the InfluxDB resource
Related Packages
- CSS.K6.Hosting.Core: Core components for k6 integration
- CSS.K6.Hosting.Aspire: Main integration for k6 in Aspire
- CSS.K6.Hosting.Outputs.Grafana: Grafana support for visualizing metrics
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- CSS.K6.Hosting.Core (>= 0.1.2-beta)
- CSS.K6.Hosting.Outputs.Grafana (>= 0.1.2-beta)
-
net9.0
- CSS.K6.Hosting.Core (>= 0.1.2-beta)
- CSS.K6.Hosting.Outputs.Grafana (>= 0.1.2-beta)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.2-beta | 162 | 3/5/2025 |
0.1.1-beta1 | 61 | 2/26/2025 |