count() function

The count() function outputs the number of non-null records in each aggregated column.

Function type: Aggregate
Output data type: Integer

count(columns: ["_value"])

Parameters

columns

A list of columns on which to operate Defaults to ["_value"].

Data type: Array of strings

Examples

from(bucket: "telegraf/autogen")
  |> range(start: -5m)
  |> count()
from(bucket: "telegraf/autogen")
  |> range(start: -5m)
  |> count(columns: ["_value"])

COUNT()

This documentation is open source. See a typo? Please, open an issue.


Need help getting up and running? Get Support