forked from pkbhowmick/grafana-loki-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubedb-alert-rules.yaml
54 lines (47 loc) · 1.61 KB
/
kubedb-alert-rules.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
47
48
49
50
51
52
53
54
rules.yaml:
groups:
- name: should_fire
rules:
- alert: AlertManagerHealthCheck
expr: 1 + 1
for: 1m
labels:
severity: info
annotations:
summary: Not an alert! Just for checking AlertManager Pipeline
- alert: KubeDBHighPercentageError
expr: |
sum(rate({namespace="kubedb"} |= "error" [5m])) by (pod)
/
sum(rate({namespace="kubedb"} [5m])) by (pod)
> 0.05
for: 1m
labels:
severity: warning
annotations:
summary: High Percentage error in KubeDB pods in KubeDB namespace
- alert: KubeDBHighPercentageFailedLog
expr: |
sum(rate({namespace="kubedb"} |= "failed" [5m])) by (pod)
/
sum(rate({namespace="kubedb"} [5m])) by (pod)
> 0.05
for: 1m
labels:
severity: warning
annotations:
summary: High Percentage Failed log in KubeDB pods in KubeDB namespace
- alert: HighConnectionRefused
expr: sum by (pod) (count_over_time({namespace="kubedb"} |= "connection refused")) > 10
for: 5m
labels:
severity: critical
annotations:
summary: High number of connections are refused in pods in KubeDB namespace
- alert: HighConnectionRefused
expr: sum by (pod) (count_over_time({namespace="kubedb"} |= "connection refused")) > 10
for: 5m
labels:
severity: critical
annotations:
summary: High number of connections are refused in pods in KubeDB namespace