forked from apollographql/supergraph-demo-fed2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.otel.yaml
58 lines (52 loc) · 1.47 KB
/
docker-compose.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
54
55
56
57
58
# adds open telemetry support
# extends supergraph-demo-fed2/docker-compose.yaml with
# https://docs.docker.com/compose/extends/#multiple-compose-files
#
# use 'make up-subgraphs' to get started
version: "3"
services:
users:
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
products:
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
inventory:
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
reviews:
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
collector:
container_name: collector
image: otel/opentelemetry-collector-contrib:0.68.0
command: ["--config=/conf/collector-config.yml"]
volumes:
- ./opentelemetry/collector-config.yml:/conf/collector-config.yml
ports:
- "9464:9464"
- "4317:4317"
- "4318:4318"
- "55679:55679"
depends_on:
- zipkin
zipkin:
container_name: zipkin
image: openzipkin/zipkin:2.24.0
ports:
- "9411:9411"
prometheus:
container_name: prometheus
image: prom/prometheus:v2.41.0
volumes:
- ./opentelemetry/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"