Using InfluxDB as a time series storage

For our purposes, as described in the subsequent section, we will use InfluxDB, because it is fast and mature, and allows us to perform analytical operations. The easiest way to start InfluxDB locally is by using a Docker container. All you need to do is to run the following command:

docker run -p 8086:8086 -v $PWD:/var/lib/influxdb influxdb
The $PWD value stands for the default path to the folder for saving the database data (current working dir). To specify another path, change the value as appropriate.

The return of the command will be as shown in the following screenshot:

Console output after starting ...

Get Industrial Internet Application Development 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.