Docs

v2.0

stddev() function

The stddev() function computes the standard deviation of non-null records in specified columns.

Function type: Aggregate
Output data type: Float

stddev(columns: ["_value"])

Parameters

columns

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

Data type: Array of strings

Examples

from(bucket: "telegraf/autogen")
  |> range(start: -5m)
  |> filter(fn: (r) =>
    r._measurement == "cpu" and
    r._field == "usage_system"
  )
  |> stddev()

STDDEV()


Bug Reports and Feedback

Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation.

Submit feedback in the InfluxData Community