OK, understood.
I want to display my total monthly energy consumption.
Currently I am saving the energy counter number each minute resulting in a continuously increasing graph.
My idea was via cron to fill on the first of each month the recent counter value to a new rrd4j schema and in addition put in the diff value.
Is there ( I am sure there is) a smarter way to achieve this?
At the end of the month set the Item back to zero. That will save a zero to database and it will start increasing for the next month. Use a cron builder to get the cron job right.