[pve-devel] Count monthly traffic

Stefan Priebe s.priebe at profihost.ag
Thu Apr 18 08:31:47 CEST 2013


Am 18.04.2013 06:32, schrieb Dietmar Maurer:
>> Then let's go this way. It's much simpler than adding RRD.
>>
>> So the question is should this be a completely new call
>
> Yes, I think this should be a new call:
>
> GET /nodes/<nodename>/netstat
>
> [
> {vmid => 100, dev => net0, in => XXX, out => YYY},
> {vmid => 100, dev => net1, in => XXX, out => YYY},
> {vmid => 200, dev => net0, in => XXX, out => YYY},
> ]
>
> So that we can get all data with one API call.

Patch sent. I used a different output format which has the vmid as a key 
so it is easier to access the right information as nobody needs to loop 
through the array.

Greets,
Stefan



More information about the pve-devel mailing list