-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-dd-java-otel-py.yaml
57 lines (55 loc) · 1.65 KB
/
docker-compose-dd-java-otel-py.yaml
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
version: "3.9"
services:
calendar-java-dd:
depends_on:
- datadog-agent
- calendar-py-otel
container_name: calendar-java-dd
build:
context: .
dockerfile: Dockerfile.calendar.java.dd
environment:
- DD_SERVICE=calendar-java-dd
- DD_TRACE_AGENT_URL=http://datadog-agent:8126
- DD_ENV=docker
- DD_TRACE_PROPAGATION_STYLE=tracecontext
- DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED=true
- CALENDAR_SERVICE_URL=http://calendar-py-otel:9090
- SERVER_PORT=8080
ports:
- "8080:8080"
calendar-py-otel:
container_name: calendar-py-otel
build:
context: .
dockerfile: Dockerfile.calendar.py.otel
environment:
- OTEL_SERVICE_NAME=calendar-py-otel
- OTEL_EXPORTER_OTLP_ENDPOINT=http://datadog-agent:4317
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
- OTEL_RESOURCE_ATTRIBUTES=deployment.environment=docker,host.name=otelcol-docker
- OTEL_TRACES_EXPORTER=otlp
- OTEL_METRICS_EXPORTER=otlp
- SERVER_PORT=9090
ports:
- "9090:9090"
datadog-agent:
container_name: datadog-agent
image: "gcr.io/datadoghq/agent:latest"
pid: host
ports:
- 8125:8125
- 8126:8126
- 4317:4317
- 4318:4318
environment:
- DD_API_KEY
- DD_SITE=datadoghq.com
- DD_APM_NON_LOCAL_TRAFFIC=true
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
- DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT=0.0.0.0:4317
- DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT=0.0.0.0:4318
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc/:/host/proc/:ro
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro