Skip to content

Using InfluxDB

To start,

sh
sudo apt update
sudo apt install influxdb influxdb-client
sudo apt update
sudo apt install influxdb influxdb-client

Start the Influx database

sh
systemctl start influxdb
systemctl start influxdb

Manage the Influx database with the influx CLI command.

sh
$ influx
Connected to http://localhost:8086 version 1.6.4
InfluxDB shell version: 1.6.4
>
$ influx
Connected to http://localhost:8086 version 1.6.4
InfluxDB shell version: 1.6.4
>

Commands to know

  • show databases
  • create database NAME_OF_DATABASE
  • show measurements
  • insert cpu,host=node1 value=10
  • select * from cpu
  • drop measurement cpu
  • show series