/plushcap/analysis/influxdata/tldr-influxdb-tech-tips-multiple-aggregations-with-yield-in-flux

TL;DR InfluxDB Tech Tips: Multiple Aggregations with yield() in Flux

What's this blog post about?

The yield() function in Flux is used to determine which table inputs should be returned in a script and assigns a name to the output of a query. This function allows multiple aggregations to be returned simultaneously by invoking multiple yield() functions within a single Flux script. By using variables, users can store the base query and reference it for multiple aggregations without querying the entire dataset multiple times. The yield() function is important because it enables the return of multiple table streams from a single Flux script at different points in time.

Company
InfluxData

Date published
Sept. 27, 2021

Author(s)
Anais Dotis-Georgiou

Word count
1445

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.