-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules
More file actions
47 lines (47 loc) · 1.69 KB
/
rules
File metadata and controls
47 lines (47 loc) · 1.69 KB
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
apiVersion: v1
data:
sample.rules: |-
groups:
- name: alert.rules
rules:
- alert: NodeDown
expr: ucp_engine_node_health == 0
for: 1m
labels:
severity: critical
annotations:
description: Docker host is under high load, the avg load 1m is at {{ $value}}.
Reported by instance {{ $labels.instance }} of job {{ $labels.job }}.
summary: Server under high load
- alert: High_Memory
expr: ucp_engine_container_cpu_percent > 75
for: 1m
labels:
severity: critical
annotations:
description: Docker host is under high load, the avg load 1m is at {{ $value}}.
Reported by instance {{ $labels.instance }} of job {{ $labels.job }}.
summary: Server under high load
- alert: High_CPU
expr: ucp_engine_container_memory_usage_percent > 75
for: 1m
labels:
severity: critical
annotations:
description: Docker host is under high load, the avg load 1m is at {{ $value}}.
Reported by instance {{ $labels.instance }} of job {{ $labels.job }}.
summary: Server under high load
- alert: High_Disk
expr: ucp_engine_disk_free_bytes < 80679920640000
for: 1m
labels:
severity: critical
annotations:
description: Docker host is under high load, the avg load 1m is at {{ $value}}.
Reported by instance {{ $labels.instance }} of job {{ $labels.job }}.
summary: Server under high load
kind: ConfigMap
metadata:
creationTimestamp: null
name: prometheus-rules
selfLink: /api/v1/namespaces/monitoring/configmaps/prometheus-rules