mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 00:47:18 +08:00
feat: improve rule for used connection on redis (#358)
use max allowed connections value instead of a fixed value
This commit is contained in:
parent
7a05f925b4
commit
71f488d744
1 changed files with 2 additions and 2 deletions
|
|
@ -86,13 +86,13 @@ groups:
|
|||
description: "Redis is running out of configured maxmemory (> 90%)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: RedisTooManyConnections
|
||||
expr: 'redis_connected_clients > 100'
|
||||
expr: 'redis_connected_clients / redis_config_maxclients * 100 > 90'
|
||||
for: 2m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: Redis too many connections (instance {{ $labels.instance }})
|
||||
description: "Redis instance has too many connections\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
description: "Redis is running out of connections (> 90% used)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: RedisNotEnoughConnections
|
||||
expr: 'redis_connected_clients < 5'
|
||||
|
|
|
|||
Loading…
Reference in a new issue