Skip to content

Commit

Permalink
Merge pull request #28 from Starttoaster/allocated-metrics
Browse files Browse the repository at this point in the history
Add resource allocation metric alerts
  • Loading branch information
Starttoaster authored Mar 13, 2024
2 parents 692ce79 + 2988e9c commit 431d2cd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/proxmox-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.6
version: 0.1.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
19 changes: 19 additions & 0 deletions chart/proxmox-exporter/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,23 @@ spec:
for: 5m
labels:
severity: warning

- alert: ProxmoxCPUAllocationHigh
annotations:
summary: Proxmox node {{ printf "{{ $labels.node }}" }} has {{ printf "{{ $value }}" }}% of its CPU allocated to guests
description: It is recommended to keep more of your node's CPU unallocated for use by PVE and other server applications your Proxmox node runs
expr: |
100 * (proxmox_node_cpus_allocated / proxmox_node_cpus_total) > 90
for: 5m
labels:
severity: critical
- alert: ProxmoxMemoryAllocationHigh
annotations:
summary: Proxmox node {{ printf "{{ $labels.node }}" }} has {{ printf "{{ $value }}" }}% of its memory allocated to guests
description: It is recommended to keep more of your node's memory unallocated for use by PVE and other server applications your Proxmox node runs
expr: |
100 * (proxmox_node_memory_allocated_bytes / proxmox_node_memory_total_bytes) > 90
for: 5m
labels:
severity: critical
{{- end }}

0 comments on commit 431d2cd

Please sign in to comment.