This repository has been archived by the owner on Jul 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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", | ||
} |