From aad1c4cd959a4713cba9e614513d20ddcaf9cd93 Mon Sep 17 00:00:00 2001 From: Sergey Shtoltz Date: Thu, 2 May 2024 21:48:46 +0300 Subject: [PATCH] RedisOutOfConfiguredMaxmemory: checking if memory limit is set (#410) --- _data/rules.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/rules.yml b/_data/rules.yml index 838591e..109b0c8 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -821,7 +821,7 @@ groups: The exporter must be started with --include-system-metrics flag or REDIS_EXPORTER_INCL_SYSTEM_METRICS=true environment variable. - name: Redis out of configured maxmemory description: Redis is running out of configured maxmemory (> 90%) - query: "redis_memory_used_bytes / redis_memory_max_bytes * 100 > 90" + query: "redis_memory_used_bytes / redis_memory_max_bytes * 100 > 90 and on(instance) redis_memory_max_bytes > 0" severity: warning for: 2m - name: Redis too many connections