telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

Proxmox quorum status

Open haeiven opened this issue 2 years ago • 5 comments

Use Case

Actually, the proxmox input plugin is only to gather VMs info, but do not give any informations about the cluster state.

Reporting the quorum state and stats about votes, etc... would help to create alerts.

Expected behavior

Reporting VMs stats + quorum state (and probably some other stats)

Actual behavior

Reporting VMs stats

Additional info

No response

haeiven avatar Nov 25 '22 10:11 haeiven

Hi,

Can you specify which APIs, specific values, and permissions might be needed to gain this information?

Thanks!

powersj avatar Nov 28 '22 19:11 powersj

Hello,

https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/status

This can return a cluster state or a node status, depending if it's running in a cluster or no.

Needed informations if cluster:

  • online
  • nodes
  • quorate
  • version

needed permission: Sys.Audit in /

Best regards,

haeiven avatar Nov 28 '22 23:11 haeiven

Thanks for the pointer to the docs and what info might be useful

needed permission: Sys.Audit in /

Is this the same as "PVEAuditor" that we document in the permissions section of the plugin readme?

powersj avatar Nov 29 '22 13:11 powersj

i think yes, i can't verify right now.

haeiven avatar Nov 29 '22 18:11 haeiven

Hello, I've recently made the external plugin for this purpose, but it uses different method to get quorum status from cluster node: instead of using Proxmox API, it gather status directly from corosync cluster engine, which means it can be used to monitor other software that uses corosync (Asterisk or Pacemaker). Currently I'm using this plugin on one of my small Proxmox clusters and it working perfectly.

niasar avatar Mar 14 '24 00:03 niasar