lxc and qemu disk usage

LodgedDrip

New Member
Feb 26, 2021
21
2
3
Hi,

We've setup Proxmox metrics which is sending data in to an influxdb instance, this is then displayed using Grafana.

We've noticed that the disk usage stat (disk) in a query like this:
SELECT "cpu", "cpus", "mem", "maxmem" , "disk" ,"maxdisk" FROM "system" WHERE ("object" = 'qemu' OR "object" = 'lxc') AND $timeFilter GROUP BY "host", "object" LIMIT 1

is only working for LXC objects, qemu returns no data. Is this likely to be an issue with our metrics configuration or to do with how Proxmox can/can't see the disk when using qemu? Maybe something to do with LVM?
 
Hi,
the problem is that the information is not readily available with VMs as it's not obvious how the disk is used within the VM from the outside. There is an open feature request, using the QEMU guest agent to get the information, but apparently it wasn't working in all cases.