I'm investigating using VictoriaMetrics for some metrics collected from remote sites with intermittent network connectivity. So the data will have gaps. But some of the metrics are counters that only increase.
For these counters, we would like to use the interpolate() function to calculate the increase per hour or day.
I've inserted some test data in my VM instance:
Time Counter
00:30 2
01:15 5
01:30 10
01:45 12
02:30 15
04:15 22
04:45 24
When I try to query it I get this result:
Between 2:30 and 4:15 I can see the interpolate() function interpolates values. But it seems like it interpolates between 3:20 and 4:15 instead of 2:30 and 4:15. It seems the data point at 2:30 is extended until 3:20. And the same happens between 01:45 and 02:30 where no interpolation is happening.
How do I get it to interpolate between each data point?