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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!