[pve-devel] Count monthly traffic

Stefan Priebe s.priebe at profihost.ag
Sun Mar 10 20:07:08 CET 2013


do i need to add pve2.4?

sub extract_vm_stats

Am 10.03.2013 20:00, schrieb Stefan Priebe:
> Where does this stuff go into rrd? My idea would be to split receive /
> transmit into a subkey in $d.
>
> So:
> $d->{net0}{netin/out}
> $d->{net1}{netin/out}
> ...
>
> Stefan
>
> Am 09.03.2013 11:04, schrieb Alexandre DERUMIER:
>> Currently we sum all the nics values in netin && netout
>>
>> sub QemuServer::vmstatus
>>
>> foreach my $dev (keys %$netdev) { next if $dev !~
>> m/^tap([1-9]\d*)i/; my $vmid = $1; my $d = $res->{$vmid}; next if
>> !$d;
>>
>> $d->{netout} += $netdev->{$dev}->{receive}; $d->{netin} +=
>> $netdev->{$dev}->{transmit}; }
>>
>>
>> So for the moment it's not possible.
>>
>>
>> Maybe can we improve stats with more detailled values for each nics,
>> each disk && each cpu cores ?
>>
>>
>> ----- Mail original -----
>>
>> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> À:
>> pve-devel at pve.proxmox.com Envoyé: Samedi 9 Mars 2013 10:48:46 Objet:
>> [pve-devel] Count monthly traffic
>>
>> Is there a way to get monthly traffic per nic per vm?
>>
>> Stefan _______________________________________________ pve-devel
>> mailing list pve-devel at pve.proxmox.com
>> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>>
> a


More information about the pve-devel mailing list