[pve-devel] API - Read VM RRD statistics

Dietmar Maurer dietmar at proxmox.com
Thu Nov 17 06:05:48 CET 2011


> 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",

...




More information about the pve-devel mailing list