RRD Data API Help

  • Thread starter Thread starter kusman
  • Start date Start date
K

kusman

Guest
I am trying to get both the RRD data and RRD images using the api and have a question for providing the ds parameter (used pve2-api-doc as reference). The document says "The list of datasources you want to display". If anyone knows what format should be provided there and what is the list of data sources (with names). It doesn't seem to be documented anywhere and searching in google also didn't yield anything useful.
 
Sorry for the late reply. Thank you very much, this has worked for me. I have a question about time though. When using timeframe parameters, how far does it go back? I have only newly created VMs so I am not sure, but if I set the timeframe to day for example, it provides a 30 minute interval data of rrd. How far should it go though (how many days)? Is it from the time when the VM was created or something like from the start of the month?

Thank you in advance.
 
We use the following RRD definitions:

Code:
    "RRA:AVERAGE:0.5:1:70", // 1 min avg - one hour
    "RRA:AVERAGE:0.5:30:70", // 30 min avg - one day
    "RRA:AVERAGE:0.5:180:70", // 3 hour avg - one week
    "RRA:AVERAGE:0.5:720:70", // 12 hour avg - one month
    "RRA:AVERAGE:0.5:10080:70", // 7 day avg - ony year

So you have data for more than one year (I assume you understand how a RRD database works).
 
Thank you, so 70 last values are stored. The issue is solved and can be marked like this. Thank you once again.