After having played around with collectd and InfluxDB for a while, I've realized that the uptime is stored each and every time as a single data point, e.g. leading to measurements looking like this:
1469552552940296000 localhost uptime 426568
1469552931893217000 localhost uptime 426947
1469552991889480000 localhost uptime 427007
1469553051889521000 localhost uptime 427067
1469553111890071000 localhost uptime 427127
1469553171889512000 localhost uptime 427187
1469553231889512000 localhost uptime 427247
This seems inefficient to me, since it is kind of redundant. Given the last measurement, I can calculate all others, so why store them in the first place? I'm now looking into retention policies, but I'm not quite sure how to apply them here. What would be a good strategy for this kind of data?
I definitely want to have the information when the system was powered off available, so basically I want to store the "start" point along with the latest uptime_value. Everything in between is redundant.