[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Xen-API update



Ewan Mellor wrote:
> On Fri, Feb 02, 2007 at 03:22:05PM +0100, Ingard Mevåg wrote:
>
>   
>> I just noticed there is no vm_metrics class available from xendapi.py
>> which makes it (as far as i understood) inacessible from the api. Is
>> this work in progress? If so, when is it planned to be included in the
>> unstable tree?
>>
>> I saw the documentation is in place already so that is why im asking. I
>> am pretty new to xen so i might have done something wrong when mirroring
>> the tree. I used the following command:
>>     "hg clone http://xenbits.xensource.com/xen-unstable.hg";
>>
>> Is this the correct thing to do to get the most updated copy?
>>     
>
> Yes, you've done the right thing.
>
> The VM_metrics class is planned for implementation next week, and I'll also
> put together some examples and docs (as you asked for the other day).
>
> Cheers,
>
> Ewan.
>   
Great news :)

I manged to find out most of it by trial and error and reading the
source code :)

Just a quick q, will the following methods, which i have listed below,
be able to give me the same metrics as xentop does?
And also, is the NETTX and NETRX values that is shows in xentop the same
as PIF_metrics i/o or am I missing something?

For each host:
    host_metrics:
       get_memory_total
       get_memory_free

    host_cpu:
        get_utilisation  

    PIF_metrics:
       get_io_read_kbs
       get_io_write_kbs

For each VM:
    vm_metrics:
        get_VCPUs_utilisation
        get_memory_actual

    VIF:
       get_io_read_kbs
       get_io_write_kbs

    VBD:
       get_io_read_kbs
       get_io_write_kbs

thx
ingard

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.