As you can see, that task should be executed once a day via cron (0 0 * * *).
The reason I’m posting here is that, for example if I run that query in the data explorer for source-bucket, it would show a MIN-value of 3.4°C and a MAX-value of 11.1°C for 05.11.2021.
If I do the same for the downsample-buckets, the graph shows those values with a _time of 2021-11-06 01:00:00 GMT+1 (so basically “+1 day”).
Could you please tell me what’s needed so that my downsampled data would show up “correctly” for the actual day they were retrieved from?
Is at 05.11.2021?
Can you verify that please?
My guess is that aggregateWindow() puts the timestamp at the end of the window period.
Give this a whirl:
yes - I can confirm this works well until I put it in a task, then it would show the data for “date+1d” at 00:30.
I can also confirm that this query shows 2 curves, “raw” and “final”, while “final” has the correct date. Many thanks for that - I’ve put it in a task and added
Anyhow, can you tell me why - eventhough the CRON is set to 00:00 - the result of the query would show the data-points at 01:00 (and not at 00:00)? I have several systems reporting to influxDB and if let’s say data is being sent at 14:21, influxDB also shows a data-point at 14:21 (so I’m trying to say there shouldn’t be a TZ-conflict).
Helo @Influx_Compensator,
The Flux team had to make an executive decision about whether to put the data points at the start or after a window period duration. I don’t think you should encounter a problem.
However, this might be helpful to you: