master
conf 40 lines 1.62 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 template: proxysql_hostgroup_no_online_backends
4 on: proxysql.hostgroup_backends_status
5 class: Errors
6 type: Database
7 component: ProxySQL
8 lookup: min -1m unaligned of online
9 units: backends
10 every: 10s
11 crit: $this == 0
12 summary: ProxySQL hostgroup ${label:hostgroup} has no ONLINE backends
13 info: ProxySQL hostgroup ${label:hostgroup} currently has zero ONLINE backends. This means no traffic can be served for this hostgroup.
14 to: dba
15
16 template: proxysql_backend_shunned
17 on: proxysql.backend_status
18 class: Errors
19 type: Database
20 component: ProxySQL
21 lookup: max -1m unaligned of shunned
22 units: status
23 every: 10s
24 crit: $this == 1
25 summary: ProxySQL backend SHUNNED (${label:host}:${label:port} hostgroup ${label:hostgroup})
26 info: ProxySQL backend ${label:host}:${label:port} in hostgroup ${label:hostgroup} is SHUNNED (temporarily out of use due to too many connection errors in a short time or replication lag exceeding the allowed threshold)
27 to: dba
28
29 template: proxysql_backend_offline_hard
30 on: proxysql.backend_status
31 class: Errors
32 type: Database
33 component: ProxySQL
34 lookup: max -1m unaligned of offline_hard
35 units: status
36 every: 10s
37 warn: $this == 1
38 summary: ProxySQL backend OFFLINE_HARD (${label:host}:${label:port} hostgroup ${label:hostgroup})
39 info: ProxySQL backend ${label:host}:${label:port} in hostgroup ${label:hostgroup} is in OFFLINE_HARD mode. Backend is effectively removed from the hostgroup and no longer serves traffic.
40 to: dba