[pve-devel] API - Read VM RRD statistics

Christian Bourque christian.bourque at gmail.com
Thu Nov 17 06:15:18 CET 2011


Cool thanks!

On Thu, Nov 17, 2011 at 12:05 AM, Dietmar Maurer <dietmar at proxmox.com>wrote:

> > I'm currently working on an Android app for Proxmox 2.0 and I'm trying
> to read
> > the rrd statistics of a virtual machine but I don't understand one of the
> > parameter I have to specify: "ds" (This list of datasources you want to
> display).
> >
> > Is there a list of the possible values available somewhere?
>
> see pve-cluster/data/src/status.c
>
> for example the vm rrd file contains:
>
> static const char *rrd_def_vm[] = {
>        "DS:maxcpu:GAUGE:120:0:U",
>        "DS:cpu:GAUGE:120:0:U",
>        "DS:maxmem:GAUGE:120:0:U",
>        "DS:mem:GAUGE:120:0:U",
>        "DS:maxdisk:GAUGE:120:0:U",
>        "DS:disk:GAUGE:120:0:U",
>        "DS:netin:COUNTER:120:0:U",
>        "DS:netout:COUNTER:120:0:U",
>        "DS:diskread:COUNTER:120:0:U",
>        "DS:diskwrite:COUNTER:120:0:U",
>
> ...
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20111117/176feee6/attachment.htm>


More information about the pve-devel mailing list