-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
105 lines (89 loc) · 2.33 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
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
version: '3.5'
services:
# big brother is defined below by a collection of services: bot, etcd, and alertmanager
bot:
build:
context: bot
dockerfile: Dockerfile
image: labbsr0x/big-brother-bot:latest
environment:
- ETCD_URLS=http://etcd:2379
- TELEGRAM_TOKEN=<your telegram token>
- DEBUG=*
ports:
- 3001:3000
depends_on:
- alertmanager
volumes:
- bot:/data
etcd:
image: quay.io/coreos/etcd:v3.2.25
ports:
- 2379
environment:
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
alertmanager:
image: labbsr0x/big-brother-alertmanager
build:
dockerfile: Dockerfile
context: bb-alertmanager
ports:
- 9093:9093
environment:
- WEBHOOK_URL=http://bot:8080
volumes:
- alertmanager:/alertmanager
# below is defined the example setup for metric consumption by big brother
example-service:
image: labbsr0x/metrics-generator:latest
ports:
- 32865:32865
environment:
- REGISTRY_SERVICE=example-service
- REGISTRY_ETCD_BASE=/metrics-generator
- REGISTRY_ETCD_URL=http://etcd:2379
bb-promster:
image: labbsr0x/bb-promster:latest
depends_on:
- etcd
- example-service
ports:
- 9090
environment:
- REGISTRY_SERVICE=example-service
- REGISTRY_ETCD_BASE=/metrics-generator
- BB_PROMSTER_LEVEL=1
- ETCD_URLS=http://etcd:2379
- SCRAPE_ETCD_PATH=/metrics-generator/example-service
- ALERT_MANAGER_URLS=alertmanager:9093
- ALERT_MANAGER_SCHEME=http
bb-promster-l2:
image: labbsr0x/bb-promster:latest
depends_on:
- bb-promster
ports:
- 9091:9090
environment:
- REGISTRY_SERVICE=example
- REGISTRY_ETCD_BASE=/metrics-generator
- BB_PROMSTER_LEVEL=2
- ETCD_URLS=http://etcd:2379
- CLEAR_RR=true
example-grafana:
image: labbsr0x/big-brother-grafana:latest
depends_on:
- bb-promster
build:
context: grafana
dockerfile: Dockerfile
environment:
- PROMETHEUS_URL=http://localhost:9091
- PROMETHEUS_ACCESS_TYPE=direct
- GF_SECURITY_ADMIN_USER=bigbrother
- GF_SECURITY_ADMIN_PASSWORD=bigbrother
ports:
- 3000:3000
volumes:
bot:
alertmanager: