influx query
- influx CLI 2.0.0+
- InfluxDB 2.0.0+
- Updated in CLI v2.0.5
Remove unnecessary columns in large datasets
// ...
|> drop(columns: ["_start", "_stop"])
Authentication credentials
Query InfluxDB with a Flux string
Query InfluxDB with a Flux file
influx query --file /path/to/example-query.flux
Query InfluxDB and return annotated CSV
Query InfluxDB and append query profile data to results
influx query \
'from(bucket:"example-bucket") |> range(start:-1m)'