# DockerComposeAspireDashboardResource

- Module: [Aspire.Hosting.Docker](/reference/api/go/aspire.hosting.docker.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Represents a resource for the Aspire Dashboard. This resource is used to visualize telemetry data in the Aspire Hosting environment.

## Definition

```go
type DockerComposeAspireDashboardResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `OtlpGrpcEndpoint`: `EndpointReference` `get` -- Gets the OTLP gRPC endpoint for telemetry data.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint of the Aspire Dashboard.
- `ResourceTypeDisplayName`: `string` `get` -- Gets the ResourceTypeDisplayName property

## Methods

- [WithForwardedHeaders](/reference/api/go/aspire.hosting.docker/dockercomposeaspiredashboardresource/withforwardedheaders.md) -- `method` -- Configures whether forwarded headers processing is enabled for the Aspire dashboard container.
  ```go
  WithForwardedHeaders(options ...*WithForwardedHeadersOptions) DockerComposeAspireDashboardResource
  ```
- [WithHostPort](/reference/api/go/aspire.hosting.docker/dockercomposeaspiredashboardresource/withhostport.md) -- `method` -- Configures the port used to access the Aspire Dashboard from a browser.
  ```go
  WithHostPort(options ...*WithHostPortOptions) DockerComposeAspireDashboardResource
  ```
