mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-23 18:06:58 +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 }}"
|
description: "Redis is running out of configured maxmemory (> 90%)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
- alert: RedisTooManyConnections
|
- alert: RedisTooManyConnections
|
||||||
expr: 'redis_connected_clients > 100'
|
expr: 'redis_connected_clients / redis_config_maxclients * 100 > 90'
|
||||||
for: 2m
|
for: 2m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: Redis too many connections (instance {{ $labels.instance }})
|
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
|
- alert: RedisNotEnoughConnections
|
||||||
expr: 'redis_connected_clients < 5'
|
expr: 'redis_connected_clients < 5'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue