Write data with Telegraf - data filtered by flux()

That’s not possible.

If you want something that custom you can develop your own data gatherer. (and still pass by telegraf using the execd input)