Open hobinjk opened 5 years ago
Sound a bit like solving problems which are already solved. Timeseries databases like influxDB allow you to continuously downsample older data to save space while preserving high resolution for the near past.
Yes, this is absolutely intended to be reinventing the wheel. One of the priorities of our current logging system is to not add dependencies to cut down base image size (e.g. influxDB is 100MB) and keep our build process simple
It sounds to me like the Gateway needs a general settings page.
Yes, definitely! But in this case I would expect the setting to be per-log since the retention window is already an equivalent setting done for each log. I also think that while someone might not care about capturing the temperature more than once an hour, that same person might want to have second-resolution information about power fluctuations.
Something like "sample rate: 1min" would be good. I'm not sure what would be the most user-friendly options here, i.e. if people would want average over that minute, all data to be dropped for 1 minute, or another variation.