how many data points to retain, old data will be removed
time interval between two data points.
(left, right) => true, return true when left > right We should compare to decide which data point to keep in current time interval. The data point which is max or min in value will be kept.
read latest inserted records
Metrics store to store history data points For each time point, we will store two data points, with one min, and one max.