Skip to content

Switch from Jaeger to Grafana otel-lgtm#324

Open
tibdex wants to merge 2 commits intomainfrom
jaeger-to-aspire
Open

Switch from Jaeger to Grafana otel-lgtm#324
tibdex wants to merge 2 commits intomainfrom
jaeger-to-aspire

Conversation

@tibdex
Copy link
Copy Markdown
Member

@tibdex tibdex commented May 6, 2026

To get logs and metrics too.

To get logs and metrics too.
Comment thread compose.yaml
Comment on lines -21 to -23
healthcheck:
start_period: 3s
test: ["CMD", "wget", "--quiet", "--spider", "http://localhost:13133/status"]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aspire Dashboard's Docker image does not have any command line tool available to do this. In practice this is OK for dev since OTEL exporters retry.

Comment thread compose.yaml
environment:
ASPIRE_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS: "true"
ports:
- "127.0.0.1::4318" # OTLP HTTP
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to expose this port outside Docker.

Comment thread compose.yaml Outdated
environment:
DATA_REFRESH_PERIOD:
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
OTEL_EXPORTER_OTLP_ENDPOINT: http://aspire-dashboard:18890
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using Grafana? To have traces, metrics and logs at the same time!

Copy link
Copy Markdown
Member Author

@tibdex tibdex May 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aspire Dashboard handles the 3 OTEL signals too:

Screenshot 2026-05-07 at 08 54 12 Screenshot 2026-05-07 at 08 54 43 Screenshot 2026-05-07 at 08 54 59

When you search the web:

For a local development environment without the need for persistence, the .NET Aspire Dashboard is superior to Grafana due to its zero-config setup, instant OpenTelemetry visualization, and low resource overhead. It is designed as an ephemeral, in-memory tool perfect for local debugging

I learned about it here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Grafana image is also with 0 config: https://grafana.com/docs/opentelemetry/docker-lgtm/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As grafana is also the stack of APA, if we can get Grafana for the same amount of config, that's equally good

Copy link
Copy Markdown
Member Author

@tibdex tibdex May 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grafana otel-lgtm vs Aspire Dashboard:

  • pros:
    • same interface as what our prod users are used to
    • built-in healthcheck in Docker image to only start our app once the OTEL stack is ready
  • cons:
    • 2GB instead of 200MB

-> I switched to Grafana in d461976.

@tibdex tibdex changed the title Switch from Jaeger to Aspire Dashboard Switch from Jaeger to Grafana otel-lgtm May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants