From b3674d96c50ff7c4ea1ef9bb9c9d162c86c43236 Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Tue, 19 Jan 2021 15:40:53 +0200 Subject: [PATCH] Redis: add alternative maxmemory alert --- _data/rules.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/_data/rules.yml b/_data/rules.yml index e886eee..7589730 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -695,11 +695,16 @@ groups: description: Redis has not been backuped for 24 hours query: 'time() - redis_rdb_last_save_timestamp_seconds > 60 * 60 * 24' severity: critical - - name: Redis out of memory - description: Redis is running out of memory (> 90%) + - name: Redis out of memory (total system memory version) + description: Redis is running out of system memory (> 90%) query: 'redis_memory_used_bytes / redis_total_system_memory_bytes * 100 > 90' severity: warning for: 2m + - name: Redis out of memory (maxmemory version) + description: Redis is running out of configured maxmemory (> 90%) + query: 'redis_memory_used_bytes / redis_memory_max_bytes * 100 > 90' + severity: warning + for: 2m - name: Redis too many connections description: Redis instance has too many connections query: 'redis_connected_clients > 100'