Skip to content

Instantly share code, notes, and snippets.

@mniak
Last active March 31, 2022 18:13
Show Gist options
  • Save mniak/4467e71715abacd6414219daa3165591 to your computer and use it in GitHub Desktop.
Save mniak/4467e71715abacd6414219daa3165591 to your computer and use it in GitHub Desktop.
Run Jaeger and OpenTelemetry Collector
version: "2"
services:
jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "14268"
- "14250"
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "1888:1888"
- "13133:13133"
- "4317:4317"
- "55670:55679"
depends_on:
- jaeger-all-in-one
receivers:
otlp:
protocols:
grpc:
exporters:
logging:
jaeger:
endpoint: jaeger-all-in-one:14250
tls:
insecure: true
processors:
batch:
extensions:
health_check:
pprof:
endpoint: :1888
zpages:
endpoint: :55679
service:
extensions: [pprof, zpages, health_check]
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [logging, jaeger]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [logging]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment