influx query

  • influx CLI 2.0.0+
  • InfluxDB 2.0.0+
  • Updated in CLI v2.0.5

Remove unnecessary columns in large datasets

  1. // ...
  2. |> drop(columns: ["_start", "_stop"])

Authentication credentials

Query InfluxDB with a Flux string
Query InfluxDB with a Flux file
  1. influx query --file /path/to/example-query.flux
Query InfluxDB and return annotated CSV
Query InfluxDB and append query profile data to results
  1. influx query \
  2. 'from(bucket:"example-bucket") |> range(start:-1m)'