It’s a simple query, but every single time I get a different amount of data (sometimes 160 entries, sometimes 200 etc.). What could cause this problem ? Is it because I have a free tier of InfluxDB cloud ? (Although the queries are fine in the cloud query builder)
@katinas How quickly are new points written? When you use a relative duration as a start time, it is relative to now() (the current UTC time). So each time you execute the query using a relative duration, you’re actually querying a different time window. What happens when you use absolute start and stop times?
How are you counting the returned items? In Node? I’m just curious how Node is interpreting the result set and if there’s something in the response that differs each time. When you comes to the actual data, try counting the number of rows in Flux rather than Node.
fixed the problem! I noticed that if I write in start: -15d, -20d or any other, it returned the same results (even though actual data is different), but setting a date fixed it anyways.