This is my flux query, where I have removed the field check I usually have there:
from(bucket: "telegraf-misc")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "sofar.logger.ActivePower_Load_Sys")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")
When running this query for the last 6 months I get a lot of data, both for the start_time_unix_nano
field and the gauge
field.
But when I select last 7 months, I suddenly don’t get data for the gauge
field anymore, only for the start_time_unix_nano
field.
(Sorry I had to cram the images together, the forum only allows one image)
I think this is happening since I tried to import data from an older database via the “Upload a CSV” feature, and it didn’t quite work. Similar to this issue, I could only ever see either the imported data or the data from telegraf. When I selected a timeframe which would have both, I saw no data.
I tried deleting it like so:
influx delete --bucket telegraf-misc --predicate _measurement=\"sofar.logger.ActivePower_Load_Sys\" --start "2023-01-01T23:55:00Z" --stop "2023-07-10T23:00:00Z"
The deletion worked, but ever since then I have this issue and I don’t know what to do about it/how to debug it.