Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions proxmox/assets/monitors/node_cpu_usage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": 2,
"created_at": "2025-07-25",
"last_updated_at": "2025-07-25",
"title": "CPU Usage is High on Proxmox Node",
"description": "CPU usage measures the percentage of processing capacity that is in use and provides insights into the overall health and efficiency of the Node. High CPU usage can lead to degraded performance of your Proxmox Node.",
"definition": {
"name": "[Proxmox] CPU Usage is High on Node {{host.host}}",
"type": "query alert",
"query": "avg(last_5m):avg:proxmox.cpu{proxmox_type:node} by {host} > 0.9",
"message": "{{#is_alert}}\nNode {{host.host}} is reporting high CPU usage (at or above 90%).\n{{/is_alert}}\n\n{{#is_warning}}\nNode {{host.host}} is reporting higher CPU usage (at or above 80%).\n{{/is_warning}}\n\n{{#is_recovery}}\\nCPU usage for Node {{host.host}} is back to normal.\n{{/is_recovery}}",
"tags": [],
"options": {
"thresholds": {
"critical": 0.9,
"warning": 0.8
},
"notify_audit": false,
"on_missing_data": "default",
"include_tags": true,
"new_group_delay": 60
},
"priority": null
},
"tags": [
"integration:proxmox"
]
}
27 changes: 27 additions & 0 deletions proxmox/assets/monitors/node_memory_usage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": 2,
"created_at": "2025-07-25",
"last_updated_at": "2025-07-25",
"title": "Memory Usage High on Proxmox Node",
"description": "Memory usage measures the percentage of memory used of the total available memory. High memory usage can lead to degraded performance of your Proxmox Node.",
"definition": {
"name": "Memory Usage High on Proxmox Node {{host.host}} ",
"type": "query alert",
"query": "avg(last_5m):avg:proxmox.mem.used{proxmox_type:node} by {host} / avg:proxmox.mem.total{proxmox_type:node} by {host} * 100 > 90",
"message": "{{#is_alert}}\\Node {{host.host}} is reporting high memory usage (at or above 90%).\\n{{/is_alert}}\\n\\n{{#is_warning}}\\VM {{host.host}} is reporting higher memory usage (at or above 80%).\\n{{/is_warning}}\\n\\n{{#is_recovery}}\\\\Memory usage for Node {{host.host}} is back to normal.\\n{{/is_recovery}}",
"tags": [],
"options": {
"thresholds": {
"critical": 90,
"warning": 80
},
"notify_audit": false,
"on_missing_data": "default",
"include_tags": true,
"new_group_delay": 60
}
},
"tags": [
"integration:proxmox"
]
}
28 changes: 28 additions & 0 deletions proxmox/assets/monitors/vm_cpu_usage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": 2,
"created_at": "2025-07-25",
"last_updated_at": "2025-07-25",
"title": "CPU Usage is High on Proxmox VM",
"description": "CPU usage measures the percentage of processing capacity that is in use and provides insights into the overall health and efficiency of the VM. High CPU usage can lead to degraded performance of your Proxmox VM.",
"definition": {
"name": "[Proxmox] CPU Usage is High on VM {{host.host}} on Node {{host.proxmox_node}}",
"type": "query alert",
"query": "avg(last_5m):avg:proxmox.cpu{proxmox_type:vm} by {host} > 0.9",
"message": "{{#is_alert}}\nVM {{host.host}} on Node {{host.proxmox_node}} is reporting high CPU usage (at or above 90%).\n{{/is_alert}}\n\n{{#is_warning}}\nVM {{host.host}} on Node {{host.proxmox_node}} is reporting higher CPU usage (at or above 80%).\n{{/is_warning}}\n\n{{#is_recovery}}\\nCPU usage for VM {{host.host}} on Node {{host.proxmox_node}} is back to normal.\n{{/is_recovery}}",
"tags": [],
"options": {
"thresholds": {
"critical": 0.9,
"warning": 0.8
},
"notify_audit": false,
"on_missing_data": "default",
"include_tags": true,
"new_group_delay": 60
},
"priority": null
},
"tags": [
"integration:proxmox"
]
}
27 changes: 27 additions & 0 deletions proxmox/assets/monitors/vm_memory_usage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": 2,
"created_at": "2025-07-25",
"last_updated_at": "2025-07-25",
"title": "Memory Usage High on Proxmox VM",
"description": "Memory usage measures the percentage of memory used of the total available memory. High memory usage can lead to degraded performance of your Proxmox VM.",
"definition": {
"name": "Memory Usage High on Proxmox VM {{host.host}} on Node {{host.proxmox_node}}",
"type": "query alert",
"query": "avg(last_5m):avg:proxmox.mem.used{proxmox_type:vm} by {host} / avg:proxmox.mem.total{proxmox_type:vm} by {host} * 100 > 90",
"message": "{{#is_alert}}\\VM {{host.host}} on Node {{host.proxmox_node}} is reporting high memory usage (at or above 90%).\\n{{/is_alert}}\\n\\n{{#is_warning}}\\VM {{host.host}} on Node {{host.proxmox_node}} is reporting higher memory usage (at or above 80%).\\n{{/is_warning}}\\n\\n{{#is_recovery}}\\\\Memory usage for VM {{host.host}} on Node {{host.proxmox_node}} is back to normal.\\n{{/is_recovery}}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does host.proxmox_node work here? I could be misremembering, but I think this only works if you do a aggregation by proxmox_node tag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does work! maybe because it's a host tag:
Screenshot 2025-07-29 at 3 10 45 PM

but i noticed some formatting issues with the message (and host.host doesn't work) so i'll push a fix for that. thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh that's good to know.

"tags": [],
"options": {
"thresholds": {
"critical": 90,
"warning": 80
},
"notify_audit": false,
"on_missing_data": "default",
"include_tags": true,
"new_group_delay": 60
}
},
"tags": [
"integration:proxmox"
]
}
6 changes: 6 additions & 0 deletions proxmox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
},
"dashboards": {
"Proxmox Overview": "assets/dashboards/overview.json"
},
"monitors": {
"CPU Usage is High on Proxmox VM": "assets/monitors/vm_cpu_usage.json",
"CPU Usage is High on Proxmox Node": "assets/monitors/node_cpu_usage.json",
"Memory Usage is High on Proxmox VM": "assets/monitors/vm_memory_usage.json",
"Memory Usage is High on Proxmox Node": "assets/monitors/node_memory_usage.json"
}
},
"author": {
Expand Down
Loading