project Utilities / Python Influxdb Downsample avatar

utilities/python_influxdb_downsample#13: fill analog



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: vnext
Created: 06-Feb-23 16:09



Description

When downsampling with Flux you might choose to do something like

|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: true)

and/or

|> fill(value: 0)

Neither of which are currently possible. It'd be useful to add the ability to force creation (and population?) of empty windows



Toggle State Changes

Activity


assigned to @btasker

Adding this isn't particularly straight forward.

If we pass

|> window(every: 15m, createEmpty: true)

into the query, it won't do us any good - although the table might get created in the response, there are no rows to iterate over.

I had a look at the behaviour of a flux-task using Kapacitor, and actually it's not creating empty intervals either.

I think, really, we can close this as Won't Fix - it doesn't seem worth the effort required for implementation.