Documentation

tickscript.groupBy() function

The tickscript.groupBy() function is a user-contributed function maintained by the package author and can be updated or removed at any time.

The tickscript.groupBy() function groups results by the _measurement column and other specified columns.

This function is comparable to Kapacitor QueryNode .groupBy.

To group by intervals of time, use window() or tickscript.selectWindow().

import "contrib/bonitoo-io/tickscript"

tickscript.groupBy(
  columns: ["exampleColumn"]
)

Parameters

columns

(Required) List of columns to group by.

Data type: Array of Strings

Examples

Group by host and region
import "contrib/bonitoo-io/tickscript"

data
  |> tickscript.groupBy(
    columns: ["host", "region"]
  )

Package author and maintainer

Github: @bonitoo-io, @alespour
InfluxDB Slack: @Ales Pour


Select your region

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.