Use these scripts to collect bandwidth data for each container. You can view the data on a graph and total usage by months.
The scripts are originally received from Hutzoft but modified to work with the Proxmox directory structure.
1. Install rrdtool and PHP support
apt-get install rrdtool php5