Proxmox VE Integration
Proxmox VE is an open-source virtualization platform that runs KVM virtual machines and LXC containers. Xitogent integrates with Proxmox VE by running the local pvesh command on the node and collecting node, guest, storage and cluster metrics.
The integration is available on Linux only. No API token or credentials are needed.
1. Requirements
- Proxmox VE 7 or later.
- Xitogent installed on each Proxmox node you want to monitor. Xitogent runs as root, which
pveshneeds. pveshavailable on the node. It is installed with Proxmox VE.
Verify that pvesh works:
pvesh get /version --output-format json
Tips
Install Xitogent on every node of a cluster. Each agent reports only its own node: a guest is reported only by the node it runs on, and a shared storage (for example NFS) appears on every node that mounts it.
2. Enable Proxmox VE integration in Xitogent
Run:
xitogent integrate
Select 28) Proxmox VE. Xitogent will create /etc/xitogent/integrations/proxmox_integration.conf.
You can also enable the integration from the Xitoring dashboard.
3. What Xitogent collects
Xitogent runs pvesh get /cluster/status, pvesh get /cluster/resources and pvesh get /version. Only the local node is reported: guests and storages that belong to other nodes of the cluster are ignored. Guest templates are skipped.
On a standalone host without a cluster, quorate is reported as 1 and the node count as 1, so a quorum trigger does not fire.
4. Metrics collected
Node and cluster
| Metric | Type | Description |
|---|---|---|
| node | Text | Name of the local node. |
| version | Text | Proxmox VE version. |
| cluster_name | Text | Cluster name. Empty on a standalone host. |
| quorate | Gauge | 1 when the cluster has quorum, 0 when it has lost quorum. |
| nodes_total | Gauge | Number of nodes in the cluster. |
| nodes_online | Gauge | Number of nodes in the cluster that are online. |
| cpu_percent | Gauge | CPU usage of the node (%). |
| memory_percent | Gauge | Memory usage of the node (%). Not sent when total memory is unknown. |
| rootfs_percent | Gauge | Root file system usage of the node (%). |
| uptime | Gauge | Node uptime in seconds. |
| guests_running | Gauge | Number of running VMs and containers on the node. |
| guests_stopped | Gauge | Number of VMs and containers on the node that are not running (stopped, paused or any other state). |
Guests (VMs and containers)
Each guest is identified by its VM ID.
| Metric | Type | Description |
|---|---|---|
| guests.*.name | Text | Guest name. |
| guests.*.type | Text | qemu for virtual machines, lxc for containers. |
| guests.*.running | Gauge | 1 when the guest is running, 0 otherwise. |
| guests.*.uptime | Gauge | Guest uptime in seconds. |
| guests.*.cpu_percent | Gauge | CPU usage of the guest (%). |
| guests.*.memory_percent | Gauge | Memory usage of the guest (%). Not sent when total memory is unknown. |
| guests.*.memory_used_bytes | Gauge | Memory used by the guest. |
| guests.*.memory_total_bytes | Gauge | Memory assigned to the guest. |
| guests.*.disk_percent | Gauge | Disk usage of the guest (%). Containers only, because Proxmox does not report disk usage of virtual machines without the guest agent. |
| guests.*.net_in_bytes_per_sec | Gauge | Network receive rate. |
| guests.*.net_out_bytes_per_sec | Gauge | Network transmit rate. |
| guests.*.disk_read_bytes_per_sec | Gauge | Disk read rate. |
| guests.*.disk_write_bytes_per_sec | Gauge | Disk write rate. |
The four rate metrics are calculated from the change in Proxmox's counters between two samples. They are not sent on the first sample, when the guest is not running, or when a counter went backwards because the guest restarted.
Storages
Each storage is identified by its name.
| Metric | Type | Description |
|---|---|---|
| storages.*.type | Text | Storage type, for example lvmthin, dir or nfs. |
| storages.*.active | Gauge | 1 when the storage is available, 0 otherwise. |
| storages.*.shared | Gauge | 1 when the storage is shared between nodes. |
| storages.*.used_percent | Gauge | Storage usage (%). Not sent when the total size is unknown. |
| storages.*.used_bytes | Gauge | Used space. |
| storages.*.total_bytes | Gauge | Total space. |
If pvesh fails or times out, Xitogent skips the Proxmox collection for that cycle and logs an error. Other integrations keep reporting.
5. Setup Triggers for Proxmox VE integration
| Use-case | Condition | Severity |
|---|---|---|
| Cluster lost quorum | quorate < 1 | CRITICAL |
| Cluster node down | nodes_online < 3 (set to your node count) | MAJOR |
| Guest down | guests.100.running = 0 | MAJOR |
| Guests stopped | guests_stopped > 0 | WARNING |
| High node CPU | cpu_percent > 90 for 5 min | WARNING |
| High node memory | memory_percent > 90 for 5 min | WARNING |
| Root file system full | rootfs_percent > 85 | MAJOR |
| Guest CPU | guests.100.cpu_percent > 90 for 10 min | WARNING |
| Guest memory | guests.100.memory_percent > 90 for 10 min | WARNING |
| Container disk | guests.200.disk_percent > 90 | WARNING |
| Guest network | guests.100.net_in_bytes_per_sec > 100 MB/s for 5 min | WARNING |
| Storage almost full | storages.local-lvm.used_percent > 85 | MAJOR |
| Storage unavailable | storages.nfs-backup.active = 0 | CRITICAL |
In the dashboard, a condition such as guests.100.running is set by choosing Guests as the metric, then the VM ID (100), then the field (running). Storage conditions work the same way with Storages, the storage name and the field.
6. Guest migration
Guest and storage triggers are tied to a VM ID or storage name on one server. If a guest migrates to another node, its trigger on the original server has no value and does not raise an incident. Add the trigger on the server of the new node as well.
7. Next steps
- Add PING and HTTP(s) checks for the services that run inside your guests.
- Create triggers for your most important VM IDs and storages.
- Chart guest CPU, memory and network graphs next to node load to find noisy neighbours.