Hi all,
to create a custom graph I try to query rrd4j with a given start time stamp (to be able to plot the last day, week, month … etc). When I try request using a starttime I always get exactly 24 data points. Strangely the time stamps (according to my calculations, which might be wrong) do not match the period I requested:
http://haus:8080/rest/persistence/items/ItemServerCpuLoad?serviceId=rrd4j&starttime=2017-02-05T12%3A00%3A00.000
Reponse:
{
"name": "ItemServerCpuLoad",
"datapoints": "24",
"data": [
{
"time": 1495670400000,
"state": "22.713272311212794107859735959209501743316650390625"
},
{
"time": 1495713600000,
"state": "5.1359722222222199405905485036782920360565185546875"
},
{
...
},
{
"time": 1496664000000,
"state": "10.587078651685398966719731106422841548919677734375"
}
]
}
Which seems to be from “Thursday, May 25th 2017” to “Monday, June 5th 2017, 12:00:00”. Any advice what I do wrong here?
thanks & kind regards,
Patrik