Proxmox VE cluster (proxmox_cluster)
Whether a Proxmox VE cluster has quorum and all its nodes, read from /cluster/status through the REST API with a read-only API token. A Proxmox cluster that loses quorum stops accepting changes and, with HA, fences nodes, and it is easy to miss until something needs changing.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
port | 8006 | API port. |
verify_tls | true | Check the API certificate. |
tls_fingerprint | none | Pin the API certificate, see the Proxmox page. |
Credential: a secret holding the API token, as for the other Proxmox sensors. The PVEAuditor role is enough. Ask any one node of the cluster, ideally by an address that does not depend on a single node. Suggested interval: 60 seconds.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
clustered | Part of a cluster | none | none: 1 cluster, 0 standalone |
quorate | Quorum | none | Down when 0. Unknown on a standalone node. |
nodes_expected | Nodes expected | none | none. The number of nodes the cluster is configured with. Unknown on a standalone node. |
nodes_online | Nodes online | none | none |
nodes_offline | Nodes offline | none | warning above 0 |
api_ms | API response time | ms | none |
What it says
| Situation | Health | Message |
|---|---|---|
| A node that is not part of a cluster | up | pve is a standalone node, not part of a cluster |
| Quorum and every node online | up | cluster lab has quorum, all 3 nodes online |
| A node offline while quorum holds | warning | cluster lab has quorum, but a node is offline: pve3 (several: nodes are offline: pve2, pve3, always in name order) |
| Quorum lost | down | cluster lab has lost quorum: 1 of 3 nodes online |
A single node reads as healthy: there is nothing to lose quorum with. Put this sensor on a standalone node anyway and it starts watching the day the node joins a cluster.
Failures
As for the other Proxmox sensors: a refused token, a missing role, a certificate problem or an unreachable host is a collection failure with a message that names the cause.
Verification
A single node was checked against a real Proxmox VE 9.1 host. A three-node Proxmox VE 9.3 cluster was checked in three states, and the answers recorded: all nodes up, one node shut down while quorum held (a warning), and two nodes shut down so that the survivor lost quorum (down). The cluster lists its nodes in a different order from one answer to the next, so the sensor sorts the names it reports. A cluster running HA, with more than three nodes or with a second corosync link was not available. Please report any difference.