InfluxDB Docs

length() function

The length() function returns the number of items in an array.

Function type: Miscellaneous

length(arr: [])

Parameters

arr

The array to evaluate.

Examples

people = ["John", "Jane", "Abed"]

length(arr: people)

// Returns 3

New! Cloud or OSS?