Aggregate the output from another aggregator?

I don’t think this is explained in the docs (and got ChatGPT completely confused), but according to the source code I can’t currently use the output from one aggregator in another. I am wondering if there’s plan to allow this?

My use case is integrating continuous voltage and current readings into energy. I want want to merge the two metrics to avoid a join operation later but I also need the basicstats plugin for down sampling.

Under the current implementation do you think it will be more efficient to use Starlark for this or loop the output back into telegraf?