External Metrics dictionary and VM disk size/usage?

n1nj4888

Active Member
Jan 13, 2019
162
20
38
44
Hi There,

Is there a dictionary which defines the external metrics (and their meaning) that PVE pushes out to (for example) InfluxDB? For example, It's not clear to me how I'd get the VM disk size (and ideally usage but I suspect this is not possible from the metrics alone?) for the disk 'scsi0' of VMID 111 from the current "blockstat" metrics i.e.?

Code:
> select * from blockstat where vmid='111' and instance='scsi0' order by time desc limit 1;
name: blockstat
time                bavail bfree blocks failed_flush_operations failed_rd_operations failed_unmap_operations failed_wr_operations favail ffree files flush_operations flush_total_time_ns fper fused host            idle_time_ns instance invalid_flush_operations invalid_rd_operations invalid_unmap_operations invalid_wr_operations nodename  object per rd_bytes   rd_merged rd_operations rd_total_time_ns su_bavail su_blocks su_favail su_files unmap_bytes unmap_merged unmap_operations unmap_total_time_ns used user_bavail user_blocks user_favail user_files user_fused user_used vmid wr_bytes   wr_highest_offset wr_merged wr_operations wr_total_time_ns
----                ------ ----- ------ ----------------------- -------------------- ----------------------- -------------------- ------ ----- ----- ---------------- ------------------- ---- ----- ----            ------------ -------- ------------------------ --------------------- ------------------------ --------------------- --------  ------ --- --------   --------- ------------- ---------------- --------- --------- --------- -------- ----------- ------------ ---------------- ------------------- ---- ----------- ----------- ----------- ---------- ---------- --------- ---- --------   ----------------- --------- ------------- ----------------
1606205451000000000                     0                       0                    0                       0                                       22415            62812623434                    pve-vm-111      69076477026  scsi0    0                        0                     0                        0                     pve-host1 qemu       2468386304 0         48735         7708243409                                              0           0            0                0                                                                                            111  5219168768 36121452544       0         83302         56795479658
>

As can be seen above, there is nothing output for the the following metrics so it's not clear whether (A) What these mean, (B) Whether they should be output and (C) Which I'd use to get VM disk size and usage (if even possible)?...
Code:
bavail, bfree, blocks, favail, ffree, files, fused, su_bavail, su_blocks, su_favail, su_files, used, user_bavail, user_blocks, user_favail, user_files, user_used

Thanks!
 
Last edited:

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!