Skip to content

Instantly share code, notes, and snippets.

@asimmon
Created February 15, 2024 04:32
Show Gist options
  • Save asimmon/d3277252e80d210d6d271b51a9dceb20 to your computer and use it in GitHub Desktop.
Save asimmon/d3277252e80d210d6d271b51a9dceb20 to your computer and use it in GitHub Desktop.
Zipkin with OpenTelemetry collector
OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4317
version: "3.8"
services:
zipkin:
image: openzipkin/zipkin:latest
restart: unless-stopped
ports:
- "9411:9411"
otlp-collector:
image: otel/opentelemetry-collector:latest
command: ["--config=/etc/otel-collector.yaml"]
depends_on:
- zipkin
restart: unless-stopped
ports:
- "4317:4317"
volumes:
- "./otel-collector.yaml:/etc/otel-collector.yaml"
receivers:
otlp:
protocols:
grpc:
http:
exporters:
debug:
zipkin:
endpoint: "http://zipkin:9411/api/v2/spans"
format: proto
processors:
batch:
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [debug, zipkin]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [debug]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment