Skip to main content
APA
Sponsored by CAST AI — Kubernetes cost optimization Better Stack — Uptime monitoring and log management
⚠️

Alert thresholds depend on the nature of your applications. Some queries may have arbitrary tolerance thresholds. Building an efficient monitoring platform takes time. 😉

VMware Prometheus Alert Rules

4 Prometheus alerting rules for VMware. Exported via pryorda/vmware_exporter. These rules cover critical and warning conditions — copy and paste the YAML into your Prometheus configuration.

wget https://raw.githubusercontent.com/samber/awesome-prometheus-alerts/refs/heads/master/dist/rules/vmware/pryorda-vmware-exporter.yml
warning

1.8.1. Virtual Machine Memory Warning

High memory usage on {{ $labels.instance }}: {{ $value | printf "%.2f"}}%

- alert: VirtualMachineMemoryWarning
  expr: vmware_vm_mem_usage_average / 100 >= 80 and vmware_vm_mem_usage_average / 100 < 90
  for: 5m
  labels:
    severity: warning
  annotations:
    summary: Virtual Machine Memory Warning (instance {{ $labels.instance }})
    description: "High memory usage on {{ $labels.instance }}: {{ $value | printf \"%.2f\"}}%\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
critical

1.8.2. Virtual Machine Memory Critical

High memory usage on {{ $labels.instance }}: {{ $value | printf "%.2f"}}%

- alert: VirtualMachineMemoryCritical
  expr: vmware_vm_mem_usage_average / 100 >= 90
  for: 1m
  labels:
    severity: critical
  annotations:
    summary: Virtual Machine Memory Critical (instance {{ $labels.instance }})
    description: "High memory usage on {{ $labels.instance }}: {{ $value | printf \"%.2f\"}}%\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

1.8.3. High Number of Snapshots

High snapshots number on {{ $labels.instance }}: {{ $value }}

- alert: HighNumberOfSnapshots
  expr: vmware_vm_snapshots > 3
  for: 30m
  labels:
    severity: warning
  annotations:
    summary: High Number of Snapshots (instance {{ $labels.instance }})
    description: "High snapshots number on {{ $labels.instance }}: {{ $value }}\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

1.8.4. Outdated Snapshots

Outdated snapshots on {{ $labels.instance }}: {{ $value | printf "%.0f"}} days

- alert: OutdatedSnapshots
  expr: (time() - vmware_vm_snapshot_timestamp_seconds) / (60 * 60 * 24) >= 3
  for: 5m
  labels:
    severity: warning
  annotations:
    summary: Outdated Snapshots (instance {{ $labels.instance }})
    description: "Outdated snapshots on {{ $labels.instance }}: {{ $value | printf \"%.0f\"}} days\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"