Failing: InfluxDB2 null as zero (float())
Issues appeared with float values ,
where a virtual instance not running for a (missing) timeframe
appeared as constantly-cpu-consuming...
Influxdb connects series without 0 ,here a cpu graph with missing timeframes

fill()
only works on integers,
- non-existing datapoints can't be if-catched by value (...)
aggregateWindow()
finally helped
Solution: InfluxDB2 null as zero (float())
from(bucket: "sys")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r._measurement == "docker_cpu_percent" )
// |> window(every: 5m, period: 5m, createEmpty: true)
|> aggregateWindow(every: 5m, fn: mean, createEmpty: true)
|> map(fn: (r) => ({
r with
_value: if exists r._value then float(v: r._value) * 1.0 else 0.0
})
)

Resources
You might refer to