-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yaml
137 lines (124 loc) · 2.75 KB
/
docker-compose.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: "3.9"
services:
timescaledb:
build:
context: ./instrumented/timescaledb
volumes:
- timescaledb-data:/var/lib/postgresql/data
ports:
- 5999:5432/tcp
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=otel_demo
- POSTGRES_HOST_AUTH_METHOD=trust
promscale:
image: "timescale/promscale:0.11.0"
ports:
- 9201:9201/tcp
- 9202:9202/tcp
restart: on-failure
depends_on:
- timescaledb
environment:
PROMSCALE_DB_CONNECT_RETRIES: 10
PROMSCALE_WEB_TELEMETRY_PATH: /metrics-text
PROMSCALE_DB_URI: postgres://postgres:password@timescaledb:5432/otel_demo?sslmode=allow
PROMSCALE_ENABLE_FEATURE: tracing
PROMSCALE_TRACING_OTLP_SERVER_ADDRESS: 0.0.0.0:9202
jaeger:
image: jaegertracing/jaeger-query:1.30
ports:
- 16685:16685/tcp
- 16686:16686/tcp
- 16687:16687/tcp
restart: on-failure
depends_on:
- promscale
environment:
SPAN_STORAGE_TYPE: grpc-plugin
GRPC_STORAGE_SERVER: promscale:9202
grafana:
build:
context: ./instrumented/grafana
volumes:
- grafana-data:/var/lib/grafana
ports:
- 3000:3000/tcp
restart: on-failure
depends_on:
- timescaledb
- jaeger
collector:
build:
context: ./instrumented/collector
ports:
- 4317:4317/tcp
- 4318:4318/tcp
restart: on-failure
depends_on:
- promscale
upper:
build:
context: ./instrumented/upper
restart: on-failure
depends_on:
- collector
ports:
- 5054:5000/tcp
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=collector:4317
lower:
build:
context: ./instrumented/lower
restart: on-failure
depends_on:
- collector
ports:
- 5053:5000/tcp
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://collector:4318
special:
build:
context: ./instrumented/special
restart: on-failure
depends_on:
- collector
ports:
- 5052:5000/tcp
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=collector:4317
digit:
build:
context: ./instrumented/digit
restart: on-failure
depends_on:
- collector
ports:
- 5051:5000/tcp
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=collector:4317
generator:
build:
context: ./instrumented/generator
restart: on-failure
depends_on:
- upper
- lower
- special
- digit
ports:
- 5050:5000/tcp
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=collector:4317
load:
build:
context: ./instrumented/load
restart: on-failure
depends_on:
- generator
deploy:
mode: replicated
replicas: 3
volumes:
timescaledb-data:
grafana-data: