WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] Xen-API update

To: Xen-API <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-API] Xen-API update
From: Ingard Mevåg <ingard.mevag@xxxxxxxxxxxxxx>
Date: Fri, 02 Feb 2007 16:29:47 +0100
Delivery-date: Fri, 02 Feb 2007 07:29:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070202144041.GA25772@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <20070130232504.GA4206@xxxxxxxxxxxxxxxxxxxxxx> <45C3490D.2020100@xxxxxxxxxxxxxx> <20070202144041.GA25772@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20070103)
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

<Prev in Thread] Current Thread [Next in Thread>