@cryptotaxi247 / netdata-1 / commits / eb4ea0d87

improve(health/proxysql): add alerts (#21548)

Ilya Mashchenko committed Jan 13, 2026 at 07:03 UTC eb4ea0d8727f3f6f698437210dc3cbc8b255100b
1 file changed +40
src/health/health.d/proxysql.conf new
+40
@@ -0,0 +1,40 @@
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})
26 + info: ProxySQL backend ${label:host}:${label:port} 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})
39 + info: ProxySQL backend ${label:host}:${label:port} is in OFFLINE_HARD mode. Backend is effectively removed from the hostgroup and no longer serves traffic.
40 + to: dba