Among many Time Series databases (TSDB), InfluxDB is able to secure its position in the market. This is because InfluxDB provides many features that give added advantages and make it sustainable in various scenarios. Besides these, it also provides easy installation and configuration. InfluxDB gives flexibility to the user to install a single instance, QuickStart
cluster for the non-production environment, and complete cluster solution for a production environment. With all such types of products supported, it would be great to start with a single instance installation.
There are many versions of InfluxDB you can found for download, hence it is important to check which version you are downloading. You should go for Latest version. This blog is dealing version 1.5. At the time of this blog, “InfluxDB 2.0 Beta” is already out.
Before proceeding with installation, your VM should be ready with OS already installed.
Any online installation utility can be utilized which is supported by OS. For RedHat, the YUM installation repository is used here.
[sanjeevakumar@influxdb yum.repos.d]$ sudo yum install influxdb
Loaded plugins: fastestmirror, langpacks
CustomRPM | 2.1 kB 00:00:00
Updates | 2.1 kB 00:00:00
base | 2.1 kB 00:00:00
basei-epel | 2.6 kB 00:00:00
influxdb | 2.5 kB 00:00:00
pbiso | 2.5 kB 00:00:00
influxdb/7/x86_64/primary_db | 26 kB 00:00:00
Loading mirror speeds from cached hostfile
Resolving Dependencies
–> Running transaction check
—> Package influxdb.x86_64 0:1.5.0-1 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================
Installing:
influxdb x86_64 1.5.0-1 influxdb 21 M
Transaction Summary
==============================================================================================================================================================
Install 1 Package
Total download size: 21 M
Installed size: 21 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/influxdb/packages/influxdb-1.5.0.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 2582e0c5: NOKEY/s | 20 MB 00:00:00 ETA
Public key for influxdb-1.5.0.x86_64.rpm is not installed
influxdb-1.5.0.x86_64.rpm | 21 MB 00:00:05
Retrieving key from https://repos.influxdata.com/influxdb.key
Importing GPG key 0x2582E0C5:
Userid : “InfluxDB Packaging Service <support@influxdb.com>”
Fingerprint: 05ce 1508 5fc0 9d18 e99e fb22 684a 14cf 2582 e0c5
From : https://repos.influxdata.com/influxdb.key
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : influxdb-1.5.0-1.x86_64 1/1
Created symlink from /etc/systemd/system/influxd.service to /usr/lib/systemd/system/influxdb.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/influxdb.service to /usr/lib/systemd/system/influxdb.service.
Verifying : influxdb-1.5.0-1.x86_64 1/1
Installed:
influxdb.x86_64 0:1.5.0-1
Complete!
[sanjeevakumar@influxdb yum.repos.d]$
This will install InfluxDB on single instances. This will also create a directory “influxdb
” under folder /etc. This folder contains files which is utilized by InfluxDB for any configurational changes. File “influxdb.conf
” contains both meta and data sections where anyone can make changes as per one’s environment. configurational changes will be covered in details in next blog which will explain “QuickStart Cluster” installations and configurations.