Join Tables in InfluxDB 2.0

Here is what I’ve got, this is the correct way right?

      |> group(columns: ["region", "_field"])
      |> aggregateWindow(every: 86400s, fn: sum, createEmpty: false)
      |> schema.fieldsAsCols()
      |> keep(columns: ["_time", "cpu", "memory", "disk"])

This is life saver, thank you very much!

1 Like