blob: b47c313e8b06c66e2c4e9ac3e48f73cd0da78386 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
---
groups:
- name: Redis
rules:
- alert: RedisDown
expr: >-
redis_up == 0
for: 0m
labels:
severity: critical
annotations:
summary: Redis down at {{ $labels.instance }}.
description: |-
Redis instance is down.
VALUE = {{ $value }}
LABELS = {{ $labels }}
- alert: RedisOutOfSystemMemory
expr: >-
redis_memory_used_bytes
/
redis_total_system_memory_bytes * 100
> 90
for: 2m
labels:
severity: warning
annotations:
summary: Redis out of system memory at {{ $labels.instance }}.
description: |-
Redis is running out of system memory.
VALUE = {{ $value }}
LABELS = {{ $labels }}
- alert: RedisOutOfConfiguredMaxmemory
expr: >-
redis_memory_max_bytes != 0
and
(
redis_memory_used_bytes
/
redis_memory_max_bytes * 100
> 90
)
for: 2m
labels:
severity: warning
annotations:
summary: Redis out of configured maxmemory at {{ $labels.instance }}.
description: |-
Redis is running out of configured maxmemory.
VALUE = {{ $value }}
LABELS = {{ $labels }}
- alert: RedisTooManyConnections
expr: >-
redis_connected_clients > 100
for: 2m
labels:
severity: warning
annotations:
summary: Redis too many connections at {{ $labels.instance }}.
description: |-
Redis instance has too many connections.
VALUE = {{ $value }}
LABELS = {{ $labels }}
- alert: RedisNotEnoughConnections
expr: >-
redis_connected_clients < 1
for: 2m
labels:
severity: warning
annotations:
summary: Redis not enough connections at {{ $labels.instance }}.
description: |-
Redis instance should have more connections.
VALUE = {{ $value }}
LABELS = {{ $labels }}
- alert: RedisRejectedConnections
expr: >-
increase(redis_rejected_connections_total[1m]) > 0
for: 0m
labels:
severity: critical
annotations:
summary: Redis rejected connections at {{ $labels.instance }}.
description: |-
Some connections to Redis have been rejected.
VALUE = {{ $value }}
LABELS = {{ $labels }}
|