CommunityToolkit.Aspire.Hosting.k6
📦 CommunityToolkit.Aspire.Hosting.k6v13.4.03Functions
1Types
1 types and 1 members
Types
Functions
method
addK6builderAdds a Grafana k6 container resource to the application model. The default image is and the tag is .
addK6(name: string, enableBrowserExtensions?: boolean, port?: number): K6Resourcemethod
withK6OtlpEnvironmentbuilderSet K6 environment variables from the existing OTEL environment set for this resource. See https://grafana.com/docs/k6/latest/results-output/real-time/opentelemetry/#configuration.
withK6OtlpEnvironment(): K6Resourcemethod
withScriptbuilderRuns a k6 JS script when starting the Grafana k6 container resource.
withScript(scriptPath: string, virtualUsers?: number, duration?: string): K6Resource