PVEAPI: rrddata replies sometimes with time only

devzero

New Member
May 13, 2025
8
1
3
Hi,

I am querying the rrddata for a specific vm:


"https://$APINODE:8006/api2/json/nodes/$TARGETNODE/qemu/122/rrddata?timeframe=hour&cf=MAX" |jq


generally it works fine, however sometimes it ends with a single time response in the whole array:


Code:
    {
      "disk": 0,
      "maxmem": 2147483648,
      "maxcpu": 1,
      "diskread": 0,
      "maxdisk": 34359738368,
      "netout": 0,
      "mem": 1219237106,
      "netin": 0,
      "time": 1754050980,
      "diskwrite": 0,
      "cpu": 0.0125752520266843
    },
    {
      "diskread": 0,
      "maxcpu": 1,
      "maxmem": 2147483648,
      "disk": 0,
      "netin": 0,
      "mem": 1219237106,
      "cpu": 0.0126159918156209,
      "diskwrite": 0,
      "time": 1754051040,
      "netout": 0,
      "maxdisk": 34359738368
    },
    {
      "time": 1754051100
    }
  ]
}
What is the reason why this happens? I tried to find a relation to it, but it seems completely random, however if it happens it is always the last one.

thanks Martin
 
Last edited:
Hi,
please file a bug report in https://bugzilla.proxmox.com/ linking back to this thread.

I can see the issue on both PVE 8 and the PVE 9 beta right after the minute changes. My suspicion is that the data for that newest minute simply hasn't been written yet, but the API endpoint already returns an entry for the newest minute.
 
Last edited: