To see the current InfluxDB configuration, just run the InfluxDB config command:
$influxd config
This command will return all of the configuration sections. The options part in each configuration is optional. The default value will be used if the option is not specified. Here is the list of configuration sections:
reporting, meta, data, cluster, retention, shard-precreation, admin, monitor, subscriber, graphite, collectd, opentsdb, udp, continuous_queries, hinted-handoff.
- [meta]: This maintains InfluxDB cluster parameters
- [data]: This tells write ahead log (WAL) how to store and flush data
- [cluster]: This controls how the data is shared between shards in a non-raft cluster
- [retention]: This handles the InfluxDB retention polices behavior
- [shard-precreation]: This makes sure that new shards are created and are available before the data arrives
- [http]: It handles the InfluxDB HTTP endpoints configuration when called from CLI or an other client
In the most use cases, the default configuration is sufficient. In case the application needs customized configuration, you can open the configuration file and edit them. The file is located in the directory /etc/InfluxDB/InfluxDB.conf:
sudo nano /etc/InfluxDB/InfluxDB.conf
At long last, you are ready to get your hands dirty. It is time to run and use InfluxDB.
To start InfluxDB instance, use the following command:
sudo service InfluxDB start
This command doesn't show any output. Now connect to InfluxDB:
$ influx
Connected to http://localhost:8086 version 1.5
InfluxDB shell version: 1.5
>
Congratulations! Your InfluxDB installation is completed.