[pve-devel] Count monthly traffic

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Sat Mar 9 18:13:45 CET 2013


Yes if you want to charge traffic you just need the external one.

But also for debugging I think it would be useful to have traffic on a net basis. 

Stefan

Am 09.03.2013 um 15:04 schrieb Dietmar Maurer <dietmar at proxmox.com>:

> 
> 
>> -----Original Message-----
>> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
>> bounces at pve.proxmox.com] On Behalf Of Dietmar Maurer
>> Sent: Samstag, 09. März 2013 14:55
>> To: Alexandre DERUMIER; Stefan Priebe - Profihost AG
>> Cc: pve-devel at pve.proxmox.com
>> Subject: Re: [pve-devel] Count monthly traffic
>> 
>>> 
>>>        $d->{netout} += $netdev->{$dev}->{receive};
>>>        $d->{netin} += $netdev->{$dev}->{transmit};
>>>    }
>>> 
>>> 
>>> So for the moment it's not possible.
>> 
>> Why is it not possible? You can simply query the rrd database?
> 
> Oh, I see - you want that for every nic?
> 



More information about the pve-devel mailing list