InfluxDB CLI

InfluxDB Query Language (IFQL) is used to interact with InfluxDB to retrieve data that has data written in the InfluxDB Line Protocol. Refer to the docs for more information at InfluxData-InfluxDB: InfluxDB Line Protocol: https://docs.influxdata.com/influxdb/v1.6/write_protocols/line_protocol_tutorial/ and InfluxData-InfluxDB: InfluxDB command line interface (CLI/shell): https://docs.influxdata.com/influxdb/v1.6/tools/shell/.

# initialize CLI and connect to local InfluxDBinflux# create database telegrafcreate database telegraf# show list of databasesshow databases# use telegraf databaseuse telegraf# show list of measurementsshow measurements# show series from cpushow series from cpu

The corresponding output is as follows:

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.