Conversation
To get logs and metrics too.
| healthcheck: | ||
| start_period: 3s | ||
| test: ["CMD", "wget", "--quiet", "--spider", "http://localhost:13133/status"] |
There was a problem hiding this comment.
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.
| environment: | ||
| ASPIRE_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS: "true" | ||
| ports: | ||
| - "127.0.0.1::4318" # OTLP HTTP |
There was a problem hiding this comment.
No need to expose this port outside Docker.
| environment: | ||
| DATA_REFRESH_PERIOD: | ||
| OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 | ||
| OTEL_EXPORTER_OTLP_ENDPOINT: http://aspire-dashboard:18890 |
There was a problem hiding this comment.
Why not using Grafana? To have traces, metrics and logs at the same time!
There was a problem hiding this comment.
Aspire Dashboard handles the 3 OTEL signals too:
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.
There was a problem hiding this comment.
This Grafana image is also with 0 config: https://grafana.com/docs/opentelemetry/docker-lgtm/
There was a problem hiding this comment.
As grafana is also the stack of APA, if we can get Grafana for the same amount of config, that's equally good
There was a problem hiding this comment.
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.
otel-lgtm
To get logs and metrics too.