feat(health): add new Redis alarms (#13715)
Ilya Mashchenko committed
Sep 24, 2022 at 12:50 UTC
5e0d532e19ad338dd499bad49773d51d797b45d6
1 file changed
+29
health/health.d/redis.conf
+29
@@ -1,3 +1,18 @@
1
+# you can disable an alarm notification by setting the 'to' line to: silent
2
+
3
+ template: redis_connections_rejected
4
+ families: *
5
+ on: redis.connections
6
+ class: Errors
7
+ type: KV Storage
8
+component: Redis
9
+ lookup: sum -1m unaligned of rejected
10
+ every: 10s
11
+ units: connections
12
+ warn: $this > 0
13
+ info: connections rejected because of maxclients limit in the last minute
14
+ delay: down 5m multiplier 1.5 max 1h
15
+ to: dba
16
17
template: redis_bgsave_broken
18
families: *
@@ -26,3 +41,17 @@ component: Redis
41
info: duration of the on-going RDB save operation
42
delay: down 5m multiplier 1.5 max 1h
43
to: dba
44
+
45
+ template: redis_master_link_down
46
+ families: *
47
+ on: redis.master_link_down_since_time
48
+ class: Errors
49
+ type: KV Storage
50
+component: Redis
51
+ every: 10s
52
+ calc: $time
53
+ units: seconds
54
+ crit: $this != nan AND $this > 0
55
+ info: time elapsed since the link between master and slave is down
56
+ delay: down 5m multiplier 1.5 max 1h
57
+ to: dba