influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.47k stars 5.55k forks source link

Proxmox quorum status #12283

Open haeiven opened 1 year ago

haeiven commented 1 year ago

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

powersj commented 1 year ago

Hi,

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

Thanks!

haeiven commented 1 year ago

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:

needed permission: Sys.Audit in /

Best regards,

powersj commented 1 year ago

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?

haeiven commented 1 year ago

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

niasar commented 5 months ago

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.