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" <[email protected]> 
À: [email protected] 
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 
[email protected] 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to