project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Feature] Monitoring guest filesystems via API

Open hniedlich opened this issue 7 months ago • 2 comments

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.

hniedlich avatar Apr 22 '26 08:04 hniedlich

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.

mkellermann97 avatar Apr 22 '26 19:04 mkellermann97

Done in v0.9.8

MrMasterbay avatar Apr 27 '26 15:04 MrMasterbay