keys() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.24 is the most recent stable version of Flux.

The keys() function returns a table with the input table’s group key columns, plus a _value column containing the names of the input table’s columns.

Function type: Transformation
Output data type: Object

keys(except: ["_time", "_value"])

Parameters

except

Exclude the specified column names in the output. Defaults to ["_time", "_value"].

Data type: Array of strings

Examples

from(bucket: "telegraf/autogen")
  |> range(start: -30m)
  |> keys(except: ["_time", "_start", "_stop", "_field", "_measurement", "_value"])

SHOW MEASUREMENTS
SHOW FIELD KEYS
SHOW TAG KEYS
SHOW SERIES