It's a tricky one to address, but we probably do want to look at whether there's a way to detect missing windows and create them so that we can insert a 0. If we pass createEmpty: true into window it'll create the tables for us, but we'll have to discern column values from the group key.
Activity
11-Feb-23 00:18
assigned to @btasker
11-Feb-23 00:21
The stats on the left were written into 1 bucket via a Kapacitor Flux Task, the stats on the right by my cronjob
They weren't matched when I first checked them though, which looks to have been the result of a timing issue.
The cronjob is scheduled to run every 15 minutes.
The telegraf plugin which fetches the underlying stats runs once an hour (apparently around the 15 minute mark), but is sometimes a little delayed.
Because the downsample task was configured to query a range of 1 hour, we sometimes missed out on the stat.
Updating the job to use a range of 2 hours fixed it.
11-Feb-23 00:36
The requests graph highlights a curious difference
Both use
But, the flux-task originated one has a point at 22:00 with a value of 0 - the cronjob task does not (so the earlier previous value continues).
This seems to be something that the Fluxtask has done, if I run the same query against the source
I don't get a window at 22:00.
It's a tricky one to address, but we probably do want to look at whether there's a way to detect missing windows and create them so that we can insert a 0. If we pass
createEmpty: true
intowindow
it'll create the tables for us, but we'll have to discern column values from the group key.11-Feb-23 09:32
mentioned in issue #20
11-Feb-23 23:30
The above has been fixed in #20
14-Feb-23 08:44
mentioned in issue jira-projects/LAN#88