forked from opensearch-project/observability-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.compat.yml
More file actions
60 lines (58 loc) · 2.09 KB
/
docker-compose.compat.yml
File metadata and controls
60 lines (58 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# docker-compose.compat.yml
#
# Vendor compatibility overlay. Adds an edge OTel Collector that accepts
# Datadog, Jaeger, and Splunk HEC wire protocols and forwards OTLP to the
# base collector.
#
# Activation:
# echo "INCLUDE_COMPOSE_COMPAT=docker-compose.compat.yml" >> .env
# docker compose up -d
#
# vendor apps ──▶ otel-collector-compat ──OTLP──▶ otel-collector (base)
# (this overlay) (unchanged)
services:
otel-collector-compat:
image: otel/opentelemetry-collector-contrib:${OTEL_COLLECTOR_VERSION}
container_name: otel-collector-compat
pull_policy: always
command: ["--config=/etc/otelcol-config.yml"]
volumes:
- ./compat/collector/config.compat.yaml:/etc/otelcol-config.yml
ports:
# Datadog trace-agent (datadogreceiver)
- "${COMPAT_DATADOG_APM_PORT:-8126}:8126"
# DogStatsD (statsdreceiver, UDP)
- "${COMPAT_DATADOG_STATSD_PORT:-8125}:8125/udp"
# Jaeger native wire protocol. Modern Jaeger apps emit OTLP and should
# send directly to the base collector on 4317/4318 instead of this hop.
- "${COMPAT_JAEGER_GRPC_PORT:-14250}:14250"
- "${COMPAT_JAEGER_THRIFT_HTTP_PORT:-14268}:14268"
# Splunk HEC
- "${COMPAT_SPLUNK_HEC_PORT:-8088}:8088"
networks:
- observability-stack-network
restart: unless-stopped
depends_on:
- otel-collector
deploy:
resources:
limits:
memory: ${COMPAT_COLLECTOR_MEMORY_LIMIT:-256M}
# Jaeger hotrod demo app. Emits OTLP directly to the base collector, so it
# does not exercise the compat collector. Included as a built-in trace
# generator for verifying the base pipeline end-to-end.
#
# http://localhost:8080 hotrod UI
# http://localhost:5601 OpenSearch Dashboards → Trace Analytics
hotrod:
image: jaegertracing/example-hotrod:1.60
container_name: hotrod
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
command: ["all"]
networks:
- observability-stack-network
ports:
- "8080:8080"
depends_on:
- otel-collector