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

eugenevdm

Member
Dec 13, 2020
55
11
13
53
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
Hi @whitemeercat68 ,

Thank you! You reminded me what a great product LibreNMS so I revived an old installation. It turns for now at least LibreNMS perfectly suits my need. As an aside I also use PRTG which has exceptional reporting and push (incessant) notifications.

In summary:
Bash:
root@proxmox-ve-host-X:~# /usr/local/bin/proxmox
<<<app-proxmox>>>
cluster
101/net0/1651196487/308551337/mail.example.com
104/net0/9336041233/3055200977/mssql./mail.example.com
108/net0/3126480056/110328490/example.com
118/net0/8420242931/1998319860/accounts.example.com
121/net0/8648026247/61587408740/host2.example.com
  • These stats are then viewable as an App:
download.png

This is giving me the power to quickly see some of our busy users and think about the next steps. I guess technically the next amazing thing would be percentile integration but that can wait.
 
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!