How should I conigure my RRD4J persistance service in order to store only the needed values in a correct way?
I’m using OH2
I want to save price-data in 5 minute steps over a period of 4 weeks. The minimum price is 0, the maximum 3.
That is what I think is correct:
PriceLogger.def=GAUGE,300,0,3,60 PriceLogger.archives=LAST,.5,5, 8064 PriceLogger.items=Price1, Price2, Price3, Price4
I like to plot the actual values of each price-reading, so I’m using a GAUGE. The heartbeat is 300 secs or 5 minutes. Minimum price 0 Maximum price 3 and I take a reading every minute (60 seconds).
The archive is setup to take the last value of 5 (steps) readings and will keep 8064 readings (28 days every 5 minutes). Not sure about the .5 for “xff”.
And I’m logging the Items Price1, Price2,…
Am I on a good track?
As of now a persistence service is running, but I can’t see that my settings are even used???
For example the file …/userdata/persistence/rrd4j/Price1.rrd contains amongst all those unreadable characters only “AVERAGE” but not “LAST” as I would suspect.
Where would I use the name “PriceLogger”? As of now I can’t see where I should use it.