The prediction of my Flux query is wrong and I don’t know why.
I only know that the second calculated “_value” of the holtWinters() output is weird (or wrong calculated):
→ And because of this second calculated “_value” the whole prediction is wrong!
Here my Flux query:
//define variables window = 1d data = from(bucket: "telegraf_365d") |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r._measurement == "cluster_csv" and r._field == "SizeUsed" and r.Label == "CSV01") |> group(columns: ["FileSystemLabel"]) |> keep(columns: ["_time", "_value", "FileSystemLabel"]) |> aggregateWindow(every: window, fn: first, createEmpty: false) data |> holtWinters(n: 20, interval: window, withFit: true) |> yield(name: "predictive") data |> yield(name: "raw_data")
My Environment InfluxDB v2.0.5 OSS, but the same issue occurs with InfluxDB v.2.1.1 OSS.
My UseCase is very simple: I only want to predict the future like a “trend” does.
I hope someone can help me.