[Feature] Monitoring guest filesystems via API
Describe the feature
API endpoint for getting VM filesystem usage, similar to Proxmox endpoint "api2/json/nodes/{node}/qemu/{vmid}/agent/get-fsinfo"
Use Case
Monitoring mounted filesystem usage via API, just like cpu or memory. At this point we can only receive total raw virtual disk usage, without any details where is it mounted, or cut via LVM.
Alternatives considered
One workaround is to get VM details via PegaProx API, do the magic via scripts and call Proxmox API, but this involves calling two different API endpoints. It will be much more convinient to use just PegaProx API for this.
How important is this for you?
Very important, preventing fullfilling filesystems is crucial.
Checklist
API docs for PegaProx do not have any info about that, we were trying devtools to find similar API endpoint while using PegaProx, but without success.
Hey @hniedlich — reasonable request. The underlying Proxmox endpoint qemu/{vmid}/agent/get-fsinfo needs the qemu-guest-agent to be running inside the VM, but assuming that's already in place we can surface it through our API without much fuss — it's essentially a pass-through with optional caching.
No commitment on a timeline right now — we'll look into it for a future release. Self-assigning so it doesn't slide off.
In the meantime, if you want to unblock your monitoring today: you can call the Proxmox endpoint directly via the cluster's own API token and side-step PegaProx. Two calls aren't ideal but the shape of the data is exactly what you'd expect.
Done in v0.9.8