-
Notifications
You must be signed in to change notification settings - Fork 3
/
bigconfig.yaml
143 lines (142 loc) · 4.24 KB
/
bigconfig.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
138
139
140
141
142
143
---
defaults:
http_port: '80'
bots_enabled: 'true'
bots_greeting_enabled: 'true'
parameters:
check_period: 300s
min_health: 1
allow_fails: 0
noncrit_alert: tg_staging
crit_alert: tg_staging
command_channel: tg_staging_test
mode: loud
report_period: 1800s
alerts:
- name: tg_staging
type: telegram
bot_token: vault:secret/checker/staging/tokens:telegram_token
noncritical_channel: -237762717
critical_channel: -237762717
- name: tg_staging_test
type: telegram
bot_token: 987654313:AHGBR8ws-z2l2TJYhbGRjyyzJ-4H11112_k
noncritical_channel: 1330352
critical_channel: -10543985
- name: tg_staging_env
type: telegram
bot_token: env:CHECKER_BOT_TOKEN
noncritical_channel: env:CHECKER_BOT_NONCRIT_CHANNEL
critical_channel: env:CHECKER_BOT_CRIT_CHANNEL
projects:
- name: staging
mentions:
- "@main_admin"
- "@vasyan"
healthchecks:
- name: back
parameters:
check_period: 60s
checks:
- type: http
host: http://app.service.staging.consul/health.php
answer: Backend OK
code:
- 200
timeout: 2s
severity: critical
- name: helpdesk
checks:
- type: http
host: http://helpdesk.service.staging.consul/alive
answer: Helpdesk OK
code:
- 200
timeout: 2s
headers:
user-agent: AndroidApp-HD
auth:
user: test-hd
pass: ke8thaul8ein
- name: web
checks:
- type: http
host: http://web.service.staging.consul
answer: "Online shop"
code:
- 200
timeout: 2s
- name: gen
checks:
- type: http
host: http://gen.service.staging.consul:8082/healthcheck
code:
- 200
- 301
- 406
timeout: 5s
- name: pgsql-main
checks:
- type: pgsql_replication
host: master.pgsql.service.staging.consul
port: 5432
sql_repl_config:
dbname: repltest
username: repltest
password: vault:secret/staging/pgsql-main/repltest/pass:value
tablename: repl_test
serverlist:
- pgsql-main-0.node.staging.consul
- pgsql-main-1.node.staging.consul
- pgsql-main-2.node.staging.consul
- name: pgsql-aux
checks:
- type: pgsql_replication
host: master.pgsql-aux.service.staging.consul
port: 5432
sql_repl_config:
dbname: repltest
username: repltest
password: vault:secret/staging/pgsql-aux/repltest/pass:value
tablename: repl_test
serverlist:
- pgsql-aux-0.node.staging.consul
- pgsql-aux-1.node.staging.consul
- pgsql-aux-2.node.staging.consul
- type: pgsql_replication_status
host: master.pgsql-aux.service.staging.consul
port: 5432
sql_repl_config:
dbname: repltest
username: repltest
password: vault:secret/staging/pgsql-aux/repltest/pass:value
tablename: repl_test
lag: 3s
analytic_replicas:
- sd-156726
- name: production-zoneA
healthchecks:
- name: database checks
parameters:
check_period: 60s
checks:
- name: mysql statistics server
type: mysql_query
host: 192.168.132.101
port: 3306
timeout: 1s
sql_query_config:
username: username
dbname: dbname
password: aiHohquoogeeViey1weopiegeep7le2p
query: select reg_date from users order by id asc limit 1;
response: '1278938100'
severity: critical
- name: Backend cron is run
type: passive
timeout: 5m
- name: haproxy port is open
type: tcp
host: haproxy.prod.svc.zoneA.cluster.local
port: 33333
attempts: 1