forked from pryorda/vmware_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvmware.rules
44 lines (40 loc) · 1.17 KB
/
vmware.rules
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
ALERT VMWarnMemoryUsage
IF
((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
IF
((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
IF
(vmware_vm_snapshots < 3)
FOR 30m
LABELS { severity = "warning" }
ANNOTATIONS {
title = "High snapshots number on {{ $labels.instance }}: {{ $value }}",
}
ALERT VMCritNumberSnapshots
IF
(vmware_vm_snapshots >= 3)
FOR 30m
LABELS { severity = "critical" }
ANNOTATIONS {
title = "Very high snapshot number on {{ $labels.instance }}: {{ $value }}",
}
ALERT VMWarnAgeSnapshots
IF
((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",
}