-
-
Notifications
You must be signed in to change notification settings - Fork 128
/
config.cfg
235 lines (160 loc) · 4.09 KB
/
config.cfg
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
# Vigil
# Microservices Status Page
# Configuration file
# Example: https://github.com/valeriansaliou/vigil/blob/master/config.cfg
[server]
log_level = "debug"
inet = "[::1]:8080"
workers = 4
manager_token = "REPLACE_THIS_WITH_A_VERY_SECRET_KEY"
reporter_token = "REPLACE_THIS_WITH_A_SECRET_KEY"
[assets]
path = "./res/assets/"
[branding]
page_title = "Crisp Status"
page_url = "https://status.crisp.chat/"
company_name = "Crisp IM SAS"
icon_color = "#1972F5"
icon_url = "https://valeriansaliou.github.io/vigil/images/crisp-icon.png"
logo_color = "#1972F5"
logo_url = "https://valeriansaliou.github.io/vigil/images/crisp-logo.svg"
website_url = "https://crisp.chat/"
support_url = "mailto:[email protected]"
custom_html = ""
[metrics]
poll_interval = 120
poll_retry = 2
poll_http_status_healthy_above = 200
poll_http_status_healthy_below = 400
poll_delay_dead = 10
poll_delay_sick = 5
poll_parallelism = 4
push_delay_dead = 20
push_system_cpu_sick_above = 0.90
push_system_ram_sick_above = 0.90
script_interval = 300
script_parallelism = 2
local_delay_dead = 40
[plugins]
[plugins.rabbitmq]
api_url = "http://127.0.0.1:15672"
auth_username = "rabbitmq-administrator"
auth_password = "RABBITMQ_ADMIN_PASSWORD"
virtualhost = "crisp"
queue_ready_healthy_below = 500
queue_nack_healthy_below = 100
queue_ready_dead_above = 20000
queue_nack_dead_above = 5000
queue_loaded_retry_delay = 500
[notify]
startup_notification = true
reminder_interval = 300
reminder_backoff_function = "linear"
reminder_backoff_limit = 3
[notify.email]
from = "[email protected]"
to = "[email protected]"
smtp_host = "localhost"
smtp_port = 587
smtp_username = "user-access"
smtp_password = "user-password"
smtp_encrypt = false
[notify.twilio]
to = [
"+336xxxxxxx",
"+337xxxxxxx"
]
service_sid = "service-sid"
account_sid = "account-sid"
auth_token = "auth-token"
reminders_only = true
[notify.slack]
hook_url = "https://hooks.slack.com/services/xxxx"
mention_channel = true
[notify.zulip]
bot_email = "[email protected]"
bot_api_key = "xxxx"
channel = "vigil"
api_url = "https://domain.zulipchat.com/api/v1/"
[notify.telegram]
bot_token = "xxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
chat_id = "xxxxxxxxx"
[notify.pushover]
app_token = "xxxx"
user_keys = ["xxxx"]
[notify.gotify]
app_url = "https://push.gotify.net"
app_token = "xxxx"
[notify.xmpp]
from = "[email protected]"
to = "[email protected]"
xmpp_password = "xmpp-password"
[notify.matrix]
homeserver_url = "https://matrix.org"
access_token = "xxxx"
room_id = "!abc123:matrix.org"
[notify.webex]
endpoint_url = "https://webexapis.com/v1/messages"
token = "xxxxx"
room_id = "yyyyy"
[notify.webhook]
hook_url = "https://domain.com/webhooks/xxxx"
[probe]
[[probe.service]]
id = "web"
label = "Web nodes"
[[probe.service.node]]
id = "router"
label = "Core main router"
mode = "poll"
replicas = [
"icmp://edge-1.pool.net.crisp.chat",
"icmp://edge-2.pool.net.crisp.chat"
]
[[probe.service.node]]
id = "load-balancer"
label = "Core main load balancer"
mode = "poll"
replicas = [
"tcp://edge-1.pool.net.crisp.chat:80",
"tcp://edge-2.pool.net.crisp.chat:80",
"tcp://edge-3.pool.net.crisp.chat:80"
]
[[probe.service.node]]
id = "help"
label = "Core help load balancer"
mode = "poll"
replicas = ["tcp://help-1.pool.net.crisp.chat:80"]
[[probe.service.node]]
id = "api"
label = "Access to API service"
mode = "poll"
replicas = ["https://api.crisp.chat/v1/_system/health"]
[[probe.service.node]]
id = "status"
label = "Access to status page"
mode = "poll"
replicas = ["https://status.crisp.chat/robots.txt"]
http_body_healthy_match = "User-agent:.*"
[[probe.service]]
id = "relay"
label = "Relay nodes"
[[probe.service.node]]
id = "socket-client"
label = "Visitor realtime sockets"
mode = "push"
reveal_replica_name = true
rabbitmq_queue = "client"
rabbitmq_queue_nack_healthy_below = 100
rabbitmq_queue_nack_dead_above = 1000
[[probe.service]]
id = "internal"
label = "Internal nodes"
[[probe.service.node]]
id = "gateway"
label = "Private gateway"
mode = "local"
[[probe.service.node]]
id = "capacity"
label = "Network capacity"
mode = "local"