How do you want to merge them. Just flatten them all into a single point or perform some aggregation across them? To flatten them see https://docs.influxdata.com/kapacitor/v1.2/nodes/flatten_node/ or to aggregate them first change the groupBy dimension to be empty by using `|groupBy()` then pipe it into an aggregate method like `|sum()`
On Tuesday, February 7, 2017 at 3:00:12 AM UTC-7, [email protected] wrote: > > Hi team, > > In the document, it says **A GroupByNode will group the incoming data. > Each group is then processed independently for the rest of the pipeline. ** > > I have TICK script like this > > var data = batch > |query('''select mean("value") from "some"."rp"."measurement"''') > .period(30m) > .every(1m) > .groupBy('host') > > data > |alert() > .crit(lambda: TRUE) > .log('/tmp/kapacitor.log') > > If there are 5 hosts, then in each tick, 5 point sets(groups) will be > generated and logged as 5 different messages. > > As "group by" clause is not allowed in query statement, my question is, is > there any way to merge the point sets(groups) into one and log as a single > message? > > Thanks, > Troy > > -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/9f028001-d5ed-4b15-b433-e75447784f2c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
