prometheus-pve / prometheus-pve-exporter

Exposes information gathered from Proxmox VE cluster for use by the Prometheus monitoring system
Apache License 2.0
809 stars 95 forks source link

Monitoring only selected resource pool #253

Open ppiskula opened 4 months ago

ppiskula commented 4 months ago

I am working with infrastructure built around shared Proxmox nodes, resources are separated via resource pools and I have access only to my pool. The cluster administrator created a user for pve-exporter, but it only has permissions to access my pool (/pool/) and not for the entire node (/). In exporter I have an error called "403 Forbidden: Permission check failed (/, Sys.Audit)".

Is there a current or planned option to monitor only the selected resource pool?

znerol commented 4 months ago

Thanks for this feature request. This seems like an interesting idea. The API documentation for the pools endpoint regrettably is quite sparse. But judging from the go-proxmox source, there should be a members field with a list of cluster resources available from the response. Hence, it might be possible to create a new collector based on the ClusterResourceCollector but aimed at a specific pool.