forked from DataDog/opentelemetry-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dd-otel.yaml
53 lines (53 loc) · 1.55 KB
/
docker-compose-dd-otel.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
version: "3.9"
services:
random-date-dotnet-dd:
depends_on:
- datadog-agent
container_name: random-date-dotnet-dd
build:
context: .
dockerfile: Dockerfile.RandomDateAPI.dd
environment:
- DD_SERVICE=random-date-dotnet-dd
- DD_ENV=docker
- DD_AGENT_HOST=datadog-agent
- DD_LOGS_INJECTION=true
- DD_RUNTIME_METRICS_ENABLED=true
- ASPNETCORE_URLS=http://+:5077
ports:
- "5077:5077"
random-date-dotnet-otel:
depends_on:
- datadog-agent
container_name: random-date-dotnet-otel
build:
context: .
dockerfile: Dockerfile.RandomDateAPI.otel
environment:
- OTEL_SERVICE_NAME=random-date-dotnet-otel
- OTEL_EXPORTER_OTLP_ENDPOINT=http://datadog-agent:4317
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
- OTEL_RESOURCE_ATTRIBUTES=deployment.environment=docker,host.name=otelcol-docker
- ASPNETCORE_URLS=http://+:5078
ports:
- "5078:5078"
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