diff --git a/README.md b/README.md index 878cd0f..8dd80e8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/compose.yaml b/compose.yaml index 5607923..c9b7ebb 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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 - - "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"]