# CommunityToolkit.Aspire.Hosting.k6

- Module: `CommunityToolkit.Aspire.Hosting.k6`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)
- Functions: `3`
- Types: `1`

## Types

- [K6Resource](/reference/api/typescript/communitytoolkit.aspire.hosting.k6/k6resource.md) -- `handle` - 3 members -- A resource that represents a Grafana k6 instance

## Functions

- [addK6](/reference/api/typescript/communitytoolkit.aspire.hosting.k6/addk6.md) -- `method` -- Adds a Grafana k6 container resource to the application model. The default image is and the tag is .
- [withK6OtlpEnvironment](/reference/api/typescript/communitytoolkit.aspire.hosting.k6/withk6otlpenvironment.md) -- `method` -- Set 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.
- [withScript](/reference/api/typescript/communitytoolkit.aspire.hosting.k6/withscript.md) -- `method` -- Runs a k6 JS script when starting the Grafana k6 container resource.
