Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To start the app:
uv run python -m app
```

To start the app in Docker with [Jaeger](https://www.jaegertracing.io) to observe traces:
To start the app in Docker with [Grafana OpenTelemetry LGTM](https://grafana.com/docs/opentelemetry/docker-lgtm):

```bash
docker compose up --build
Expand Down
14 changes: 6 additions & 8 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@ services:
app:
build: .
depends_on:
jaeger:
grafana-otel-lgtm:
condition: service_healthy
environment:
DATA_REFRESH_PERIOD:
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
OTEL_EXPORTER_OTLP_ENDPOINT: http://grafana-otel-lgtm:4318 # HTTP
healthcheck:
start_period: 30s
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost/actuator/health/readiness').raise_for_status()"]
ports:
- "127.0.0.1::80"

jaeger:
image: cr.jaegertracing.io/jaegertracing/jaeger:2.16.0
grafana-otel-lgtm:
image: grafana/otel-lgtm:0.27.0
ports:
- "127.0.0.1::4318" # OTLP HTTP
Comment thread
tibdex marked this conversation as resolved.
- "127.0.0.1::16686" # UI
- "127.0.0.1::3000" # UI
healthcheck:
start_period: 3s
test: ["CMD", "wget", "--quiet", "--spider", "http://localhost:13133/status"]
test: ["CMD", "test", "-f", "/tmp/ready"]