Monitor Data Transfer

nitaish

Well-Known Member
Feb 1, 2014
53
4
48
Mumbai
www.techknowlogy.in
Hello,

We want to monitor the data transfer of the VMs created in Proxmox. The current Proxmox GUI shows only the bandwidth consumption, but it does not show the actual the data transfer. We can check it by setting up MRTG but one of our customers has disabled SNMP on his VM and he wants the data transfer to be monitored. He is not ready to enable SNMP on the VM. Is there any way to calculate the data transfer from the bandwidth data that Proxmox displays for the VMs?

- Nitesh
 
with an api call

/nodes/<NODENAME>/qemu/<VMID>/status/current

there is a 'netin' and 'netout' field for every nic and the vm as a whole
this gets reset when the vm stops, or the nic device is removed/added (e.g. hotplugged)
i currently do not know if this is reset at different times, but i guess this is what you want?
 

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!