Salta ai contenuti

Aspire dashboard overview

Questi contenuti non sono ancora disponibili nella tua lingua.

Aspire project templates include a sophisticated dashboard for comprehensive app monitoring and inspection. The dashboard is also available in standalone mode.

The dashboard enables real-time tracking of key aspects of your app, including logs, traces, and environment configurations. It’s designed to enhance the development experience by providing a clear and insightful view of your app’s state and structure.

Key features of the dashboard include:

The dashboard is integrated into the Aspire *.AppHost. During development the dashboard is automatically launched when you start the project. It’s configured to display the Aspire project’s resources and telemetry.

A screenshot of the Aspire dashboard Resources page.

For more information about using the dashboard during Aspire development, see Explore dashboard features.

The Aspire dashboard is also shipped as a Docker image and can be used standalone, without the rest of Aspire. The standalone dashboard provides a great UI for viewing telemetry and can be used by any application.

Terminal window
docker run --rm -it -p 18888:18888 -p 4317:18889 -d --name aspire-dashboard \
mcr.microsoft.com/dotnet/aspire-dashboard:latest

The preceding Docker command:

  • Starts a container from the mcr.microsoft.com/dotnet/aspire-dashboard:latest image.
  • The container instance exposing two ports:
    • Maps the dashboard’s OTLP port 18889 to the host’s port 4317. Port 4317 receives OpenTelemetry data from apps. Apps send data using OpenTelemetry Protocol (OTLP).
    • Maps the dashboard’s port 18888 to the host’s port 18888. Port 18888 has the dashboard UI. Navigate to http://localhost:18888 in the browser to view the dashboard.

For more information, see the Standalone Aspire dashboard.

The dashboard is configured when it starts up. Configuration includes frontend and OTLP addresses, the resource service endpoint, authentication, telemetry limits and more.

For more information, see Aspire dashboard configuration.

The dashboard user experience is built with a variety of technologies. The frontend is built with Grpc.AspNetCore NuGet package to the resource server. Consider the following diagram that illustrates the architecture of the Aspire dashboard:

A diagram showing the architecture of the Aspire dashboard.

The Aspire dashboard offers powerful insights to your apps. The UI displays information about resources, including their configuration, console logs and in-depth telemetry.

Data displayed in the dashboard can be sensitive. For example, configuration can include secrets in environment variables, and telemetry can include sensitive runtime data. Care should be taken to secure access to the dashboard.

For more information, see Aspire dashboard security considerations.

Domande & RisposteCollaboraCommunityDiscuteGuarda