-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathconfig.yml
More file actions
355 lines (350 loc) · 10.4 KB
/
config.yml
File metadata and controls
355 lines (350 loc) · 10.4 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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
# Ignored by docker compose, used by devservices
x-sentry-service-config:
version: 0.1
service_name: snuba
dependencies:
clickhouse:
description: Real time analytics database
redis:
description: Shared instance of redis used by sentry services
remote:
repo_name: sentry-shared-redis
branch: main
repo_link: https://github.com/getsentry/sentry-shared-redis.git
kafka:
description: Shared instance of kafka used by sentry services
remote:
repo_name: sentry-shared-kafka
branch: main
repo_link: https://github.com/getsentry/sentry-shared-kafka.git
snuba:
description: Service that provides a rich data model on top of Clickhouse together with a fast ingestion consumer and a query optimizer
profiles-consumer:
description: Consumer for profiles
profile-chunks-consumer:
description: Consumer for profile chunks
functions-consumer:
description: Consumer for functions
metrics-consumer:
description: Consumer for metrics
generic-metrics-distributions-consumer:
description: Consumer for generic metrics distributions
generic-metrics-sets-consumer:
description: Consumer for generic metrics sets
generic-metrics-counters-consumer:
description: Consumer for generic metrics counters
generic-metrics-gauges-consumer:
description: Consumer for generic metrics gauges
modes:
default: [redis, kafka, clickhouse]
containerized: [clickhouse, redis, kafka, snuba]
containerized-profiles: [clickhouse, redis, kafka, snuba, profiles-consumer, profile-chunks-consumer, functions-consumer, functions-consumer]
containerized-metrics-dev: [clickhouse, redis, kafka, snuba, metrics-consumer, generic-metrics-distributions-consumer, generic-metrics-sets-consumer, generic-metrics-counters-consumer, generic-metrics-gauges-consumer]
x-programs:
devserver:
command: snuba devserver
services:
clickhouse:
image: ghcr.io/getsentry/image-mirror-altinity-clickhouse-server:25.3.8.10041.altinitystable
ulimits:
nofile:
soft: 262144
hard: 262144
ports:
- 127.0.0.1:9000:9000
- 127.0.0.1:9009:9009
- 127.0.0.1:8123:8123
healthcheck:
test: wget -q -O - http://localhost:8123/ping
interval: 5s
timeout: 5s
retries: 3
volumes:
- clickhouse-data:/var/lib/clickhouse
- ./clickhouse/config.xml:/etc/clickhouse-server/config.d/sentry.xml
- ./clickhouse/users.xml:/etc/clickhouse-server/users.xml
- ./clickhouse/default-password.xml:/etc/clickhouse-server/users.d/default-password.xml
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
snuba:
image: ghcr.io/getsentry/snuba:nightly
ports:
- 127.0.0.1:1218:1218
- 127.0.0.1:1219:1219
command:
- devserver
- --${SNUBA_NO_WORKERS:+no-workers}
healthcheck:
test: curl -f http://localhost:1218/health_envoy
interval: 5s
timeout: 5s
retries: 3
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
ENABLE_SENTRY_METRICS_DEV: ${ENABLE_SENTRY_METRICS_DEV:-}
ENABLE_PROFILES_CONSUMER: ${ENABLE_PROFILES_CONSUMER:-}
ENABLE_SPANS_CONSUMER: ${ENABLE_SPANS_CONSUMER:-}
ENABLE_ISSUE_OCCURRENCE_CONSUMER: ${ENABLE_ISSUE_OCCURRENCE_CONSUMER:-}
ENABLE_AUTORUN_MIGRATION_SEARCH_ISSUES: 1
ENABLE_GROUP_ATTRIBUTES_CONSUMER: ${ENABLE_GROUP_ATTRIBUTES_CONSUMER:-}
ENABLE_LW_DELETIONS_CONSUMER: ${ENABLE_LW_DELETIONS_CONSUMER:-}
SENTRY_SPOTLIGHT: 'http://host.docker.internal:8969/stream'
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
profiles-consumer:
image: ghcr.io/getsentry/snuba:nightly
command: [
rust-consumer,
--storage=profiles,
--consumer-group=profiles_group,
--use-rust-processor,
--auto-offset-reset=latest,
--no-strict-offset-reset,
--enforce-schema
]
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
profile-chunks-consumer:
image: ghcr.io/getsentry/snuba:nightly
command: [
rust-consumer,
--storage=profile_chunks,
--consumer-group=profile_chunks_group,
--use-rust-processor,
--auto-offset-reset=latest,
--no-strict-offset-reset,
--enforce-schema
]
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
functions-consumer:
image: ghcr.io/getsentry/snuba:nightly
command: [
rust-consumer,
--storage=functions_raw,
--consumer-group=functions_group,
--use-rust-processor,
--auto-offset-reset=latest,
--no-strict-offset-reset,
--enforce-schema
]
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
metrics-consumer:
image: ghcr.io/getsentry/snuba:nightly
command: [
rust-consumer,
--storage=metrics_raw,
--consumer-group=snuba-metrics-consumers,
--use-rust-processor,
--auto-offset-reset=latest,
--no-strict-offset-reset,
--enforce-schema
]
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
generic-metrics-distributions-consumer:
image: ghcr.io/getsentry/snuba:nightly
command: [
rust-consumer,
--storage=generic_metrics_distributions_raw,
--consumer-group=snuba-gen-metrics-distributions-consumers,
--use-rust-processor,
--auto-offset-reset=latest,
--no-strict-offset-reset,
--enforce-schema
]
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
generic-metrics-sets-consumer:
image: ghcr.io/getsentry/snuba:nightly
command: [
rust-consumer,
--storage=generic_metrics_sets_raw,
--consumer-group=snuba-gen-metrics-sets-consumers,
--use-rust-processor,
--auto-offset-reset=latest,
--no-strict-offset-reset,
--enforce-schema
]
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
generic-metrics-counters-consumer:
image: ghcr.io/getsentry/snuba:nightly
command: [
rust-consumer,
--storage=generic_metrics_counters_raw,
--consumer-group=snuba-gen-metrics-counters-consumers,
--use-rust-processor,
--auto-offset-reset=latest,
--no-strict-offset-reset,
--enforce-schema
]
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
generic-metrics-gauges-consumer:
image: ghcr.io/getsentry/snuba:nightly
command: [
rust-consumer,
--storage=generic_metrics_gauges_raw,
--consumer-group=snuba-gen-metrics-gauges-consumers,
--use-rust-processor,
--auto-offset-reset=latest,
--no-strict-offset-reset,
--enforce-schema
]
environment:
PYTHONUNBUFFERED: 1
SNUBA_SETTINGS: docker
DEBUG: 1
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
CLICKHOUSE_HTTP_PORT: 8123
DEFAULT_BROKERS: kafka:9093
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 1
extra_hosts:
host.docker.internal: host-gateway
networks:
- devservices
labels:
- orchestrator=devservices
restart: unless-stopped
volumes:
clickhouse-data:
networks:
devservices:
name: devservices
external: true