[pve-devel] Count monthly traffic

Alexandre DERUMIER aderumier at odiso.com
Sat Mar 9 11:04:30 CET 2013


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 



More information about the pve-devel mailing list