forked from pryorda/vmware_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvmware.rules.yml
42 lines (42 loc) · 1.27 KB
/
vmware.rules.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
groups:
- name: vmware.rules
rules:
- alert: VMWarnMemoryUsage
expr: ((vmware_vm_mem_usage_average / 100) >= 90) and ((vmware_vm_mem_usage_average
/ 100) < 95)
for: 30m
labels:
severity: warning
annotations:
title: 'High memory usage on {{ $labels.instance }}: {{ $value | printf "%.2f"
}}%'
- alert: VMCritMemoryUsage
expr: ((vmware_vm_mem_usage_average / 100) >= 95)
for: 5m
labels:
severity: critical
annotations:
title: 'Very High memory usage on {{ $labels.instance }}: {{ $value | printf
"%.2f" }}%'
- alert: VMWarnNumberSnapshots
expr: (vmware_vm_snapshots < 3)
for: 30m
labels:
severity: warning
annotations:
title: 'High snapshots number on {{ $labels.instance }}: {{ $value }}'
- alert: VMCritNumberSnapshots
expr: (vmware_vm_snapshots >= 3)
for: 30m
labels:
severity: critical
annotations:
title: 'Very high snapshot number on {{ $labels.instance }}: {{ $value }}'
- alert: VMWarnAgeSnapshots
expr: ((time() - vmware_vm_snapshot_timestamp_seconds) / (60 * 60 * 24) >= 7)
for: 5m
labels:
severity: warning
annotations:
title: 'Outdated snapshot on {{ $labels.instance }}: {{ $value | printf "%.0f"
}} days'