Skip to content

Commit

Permalink
Add Jaeger to docker compose. (#56)
Browse files Browse the repository at this point in the history
Make it easier to view the Otel trace when developing Terrarium.
  • Loading branch information
adcharre authored Nov 30, 2023
1 parent dcc19b4 commit 8a8deb8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
26 changes: 18 additions & 8 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_ENDPOINT=jaeger:4317
ports:
- 50001:3001
networks:
Expand All @@ -29,7 +29,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_ENDPOINT=jaeger:4317
ports:
- 50002:3001
networks:
Expand All @@ -50,7 +50,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_ENDPOINT=jaeger:4317
ports:
- 50006:3001
networks:
Expand All @@ -73,7 +73,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_ENDPOINT=jaeger:4317
ports:
- 50008:3001
networks:
Expand All @@ -94,7 +94,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_ENDPOINT=jaeger:4317
ports:
- 50003:3001
networks:
Expand All @@ -115,7 +115,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_ENDPOINT=jaeger:4317
ports:
- 50004:3001
networks:
Expand All @@ -136,7 +136,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_ENDPOINT=jaeger:4317
ports:
- 50005:3001
networks:
Expand All @@ -157,7 +157,7 @@ services:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_ENDPOINT=jaeger:4317
ports:
- 50007:3001
networks:
Expand All @@ -170,6 +170,16 @@ services:
- "$AWS_SECRET_ACCESS_KEY"
- "--aws-region"
- "$AWS_DEFAULT_REGION"
jaeger:
image: jaegertracing/all-in-one:1
container_name: jaeger
ports:
- 16686:16686
- 4317:4317
- 4318:4318
networks:
- terrarium

networks:
terrarium:
name: terrarium
9 changes: 9 additions & 0 deletions docs/opentelemetry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# OpenTelemetry
Terrarium is instrumented with OpenTelemetry to allow monitoring of the operations for diagnosing problems and collecting information on usage.
For more information on OpenTelemetry see [here](https://opentelemetry.io/).

The docker compose file includes, for development a [Jaeger](https://www.jaegertracing.io/) all-in-one container to allow you to monitor traces.
To access the Jaeger UI goto http://localhost:16686

The jaeger container also exposes port 4317 (OTLP grpc) and 4318 (OTLP http) to the host to make it easy to push traces
into Jaeger when you're developing/debugging outside the docker network.

0 comments on commit 8a8deb8

Please sign in to comment.