-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (73 loc) · 2.2 KB
/
docker-compose.yml
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
version: "3"
services:
db:
image: postgres:latest
command: postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c pg_stat_statements.max=10000
ports:
- 5432:5432
environment:
POSTGRES_USER: monitor
POSTGRES_PASSWORD: pass
POSTGRES_DB: default_database
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ./setup.sql:/docker-entrypoint-initdb.d/setup.sql
splunk-otel-collector:
image: quay.io/signalfx/splunk-otel-collector:latest
# image: otel/opentelemetry-collector-contrib:latest
environment:
- SPLUNK_ACCESS_TOKEN=${SPLUNK_ACCESS_TOKEN}
- SPLUNK_REALM=${SPLUNK_REALM}
- SPLUNK_CONFIG=/etc/collector.yaml
- SPLUNK_HEC_TOKEN_METRICS=00000000-0000-0000-0000-0000000000000
- SPLUNK_HEC_TOKEN_OTELCOL=00000000-0000-0000-0000-0000000000001
- SPLUNK_HEC_URL=https://splunk:8088/services/collector
volumes:
- ./collector.yaml:/etc/collector.yaml
- ./sending_queue:/persistant_sending_queue
ports:
- "13133:13133"
- "14250:14250"
- "14268:14268"
- "4317:4317"
- "6060:6060"
- "8888:8888"
- "9080:9080"
- "9411:9411"
- "9943:9943"
- "23456"
depends_on:
- splunk
- db
- prometheus-generator
- collectd-generator
prometheus-generator:
image: esaka/prometheus-export-sample
deploy:
replicas: 8
collectd-generator:
build: ./collectd
volumes:
- ./collectd.d/generator.conf:/etc/collectd/collectd.conf
deploy:
replicas: 8
splunk:
image: splunk/splunk:latest
container_name: oteldemo-splunk
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_APPS_URL=/tmp/filedirectory-information-input_146.tgz
- SPLUNK_PASSWORD=opentelemetry
ports:
- 18000:8000
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8000']
interval: 5s
timeout: 5s
retries: 20
volumes:
- ./splunk.yml:/tmp/defaults/default.yml
- /opt/splunk/var
- /opt/splunk/etc
- ./filedirectory-information-input_146.tgz:/tmp/filedirectory-information-input_146.tgz
- ./sending_queue:/persistant_sending_queue