api rrd ds cpu return old graph

adafos

New Member
Oct 3, 2019
3
0
1
53
Hi
i am using api rrd to show cpu graphs to my customers

While i get the graph the graph is an old one

Here is the graph i get with api rrd cpu
image001.png

and here is what i see in proxmox admin
image (3).png

Totally different graphs, and i dont know what i am doing wrong

The command i use is the following
/nodes/{node}/qemu/{vmid}/rrd?ds=cpu,maxcpu&timeframe=month&cf=AVERAGE

Thanks
 
Hi,

Totally different graphs, and i dont know what i am doing wrong

I mean, the RRD image one goes over multiple weeks and the Proxmox VE webinterface one is selected for hours, I'd guess comparing the x-axis.
Change the timeframe to month (average) in the Promxox VE gui so that you can compare the same data..
 
Thank for your suggestion,

i tried rrd hour-average but no luck, the graph is the same old graph

The proxmox admin give CPU USAGE GRAPH while rrd gives CPU GRAPH (not usage i underastand well) and rrd data sources dont have any choice for cpu usage only for cpu
 
the graph in the gui is generated in the browser with extjs charts, the data is queried at

/nodes/{node}/qemu/{vmid}/rrddata

not

/nodes/{node}/qemu/{vmid}/rrd