Skip to content

Commit

Permalink
vmware.rules.yml
Browse files Browse the repository at this point in the history
Updated Alerts Rule File for Promethues v2
  • Loading branch information
hmmxp authored Feb 4, 2018
1 parent aeccb03 commit a1745fc
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions alerts/vmware.rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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'

0 comments on commit a1745fc

Please sign in to comment.