-
Notifications
You must be signed in to change notification settings - Fork 2
/
prometheus-rule-redis.yaml
46 lines (43 loc) · 1.4 KB
/
prometheus-rule-redis.yaml
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
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
prometheus: prometheus-backends
role: alert-rules
name: azure-monitoring-redis-rules
namespace: admin
spec:
groups:
- name: azure-monitoring-redis-rules
rules:
- alert: Redis_Errors
annotations:
description: |
There are {{$value | printf "%.0f" }} errors on {{$labels.ressource_uri}}
title: Redis {{$labels.ressource_uri}} errors
expr: |-
azure_redis_cache_errors > 0
for: 1m
labels:
severity: warning
- alert: Redis_ServerLoadTooHigh
annotations:
description: |
Server load redis reached {{$value | printf "%.2f" }}% for 5 minutes on {{$labels.ressource_uri}}
If this counter reaches 100 it means the Redis server has hit a performance ceiling and the CPU can't process work any faster.
title: Redis Server Load is high on {{$labels.ressource_uri}}
expr: |
azure_redis_cache_server_load > 80
for: 5m
labels:
severity: warning
- alert: Redis_CPUTooHigh
annotations:
description: |
CPU redis reached {{$value | printf "%.2f" }}% for 5 minutes on {{$labels.ressource_uri}}
title: Redis CPU is high on {{$labels.ressource_uri}}
expr: |
azure_redis_cache_percent_processor_time > 80
for: 5m
labels:
severity: warning