Advice for Traffic Accounting (bytes-in, bytes-out) on Bridge Ports or VXLAN for many VMs

eugenevdm

Member
Dec 13, 2020
51
8
13
52
Our network consists mostly of 10 Gbit/s switched backbones to the internet.
On the network we have a cluster of Proxmox VM hosts with around a 100 VMs.

We have the need to do traffic accounting, per VM, in the most efficient manner.
We don't need to count protocol traffic flowing via internet, but merely the bytes-in and bytes-out.

My switch specialist recommended VXLAN port accounting instead of Netflow, as Netflow appears to be very resource heavy when you're doing bulk.

I need to do this en-mass to assist with network balancing - we need to understand which clients are using a lot more gigabytes/terabytes than others so that we can route their traffic properly.

I am open to using any tools. I'm happy to use Zabbix, Nagios, Cacti, LibreNMS, etc.

I just need basic traffic accounting for many VMs. Any tips will be appreciated.
 
Last edited:
If you have a dedicated interface per-vm on the upstream host/gw (e.g. a sub-interface). The interface will be exposed via SNMP. And you could use any monitoring solution to moniter on per-interface basis. (e.g. https://docs.librenms.org/Extensions/Billing-Module/)

On Proxmox VE. Does your VMs not have a tap interface attached you could monitor the counters on?

tap<[SIZE=14px][FONT=Open Sans]VM_ID[/FONT][/SIZE]>i<[SIZE=14px][FONT=Open Sans]INT_ID[/FONT][/SIZE]>
  • VM_ID - PVE assigned ID to the VM in the cluster
  • INT_ID - The `netX` number as seen in the PVE Web-GUI.
 
Last edited:
  • Like
Reactions: eugenevdm

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!