-
Notifications
You must be signed in to change notification settings - Fork 27
/
alertmanager_rules_for_Linux_Windows.yml
78 lines (66 loc) · 2.32 KB
/
alertmanager_rules_for_Linux_Windows.yml
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
groups:
- name: alert-rules
rules:
- alert: ExporterDown
expr: up == 0
for: 2m
labels:
severity: critical
annotations:
description: "Node {{ $labels.job }} running on {{ $labels.instance }} has been down"
- alert: Host Out Of DiskSpace
expr: 100 - ((node_filesystem_avail_bytes{mountpoint="/",fstype!="tmpfs"} * 100) / node_filesystem_size_bytes{mountpoint="/",fstype!="tmpfs"}) > 85
for: 2m
labels:
severity: warning
annotations:
description: "Disk filled\n VALUE = {{ $value }}"
- alert: Host Out Of Memory
expr: node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes * 100 < 15
for: 5m
labels:
severity: warning
annotations:
description: "Memory remaining\n VALUE = {{ $value }}"
- alert: HostHighCpuLoad
expr: 100 - (avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])) * 100) > 85
for: 5m
labels:
severity: warning
annotations:
description: "CPU load\n VALUE = {{ $value }}"
- alert: Windows Server Collector Error
expr: wmi_exporter_collector_success == 0
for: 0m
labels:
severity: critical
annotations:
description: "Collector {{ $labels.collector }} was not successful\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: Windows Server Service Status
expr: wmi_service_status{status="ok"} != 1
for: 1m
labels:
severity: critical
annotations:
description: "Windows Service state is not OK\n VALUE = {{ $value }}"
- alert: Windows Server CPU Usage
expr: 100 - (avg by (instance) (rate(wmi_cpu_time_total{mode="idle"}[2m])) * 100) > 85
for: 5m
labels:
severity: warning
annotations:
description: "CPU Usage is more than\n VALUE = {{ $value }}"
- alert: Windows Server Memory Usage
expr: 100 - ((wmi_os_physical_memory_free_bytes / wmi_cs_physical_memory_bytes) * 100) > 85
for: 5m
labels:
severity: warning
annotations:
description: "Memory usage is more than\n VALUE = {{ $value }}"
- alert: Windows Server DiskSpace Usage
expr: 100.0 - 100 * ((wmi_logical_disk_free_bytes / 1024 / 1024 ) / (wmi_logical_disk_size_bytes / 1024 / 1024)) > 85
for: 5m
labels:
severity: critical
annotations:
description: "Disk usage is more than\n VALUE = {{ $value }}"