We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Learn how to – How To Install InfluxDB on Fedora 37/36/35/34/33/32

Learn how to – How To Install InfluxDB on Fedora 37/36/35/34/33/32.

Welcome to our article on how to install InfluxDB on Fedora 37/36/35/34/33/32. InfluxDB is an open-source time series database written in Go. InfluxDB is optimized for fast, high-availability storage and retrieval of time series data for metrics analysis.

I had earlier written similar articles for CentOS 7 and Ubuntu/Debian Linux distributions:

Follow the steps given in this article to get a working InfluxDB installation on Fedora.

Step 1: Add Influxdata RPM repository

Influxdata provides the repository for installing InfluxDB on Fedora. Add it to your system like below:

Add:

sudo tee /etc/yum.repos.d/influxdb.repo<<EOF
[influxdb]
name = InfluxDB Repository - RHEL 
baseurl = https://repos.influxdata.com/rhel/8/x86_64/stable/
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

Step 2: Install InfluxDB on Fedora

Now that InfluxDB repository has been added to your system, you can proceed to install InfluxDB on Fedora:

sudo dnf install influxdb2 influxdb2-cli

When asked to import GPG key for the repository, press 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

The version of InfluxDB installed can be confirmed using the rpmcommand:

$ rpm -qi influxdb2
Name        : influxdb2
Version     : 2.6.1
Release     : 1
Architecture: x86_64
Install Date: Wed 25 Jan 2023 12:14:34 PM UTC
Group       : default
Size        : 103813677
License     : MIT
Signature   : RSA/SHA512, Thu 29 Dec 2022 07:15:32 PM UTC, Key ID 684a14cf2582e0c5
Source RPM  : influxdb2-2.6.1-1.src.rpm
Build Date  : Thu 29 Dec 2022 03:56:55 PM UTC
Build Host  : ip-172-28-81-165.ec2.internal
Relocations : /
Packager    : support@influxdb.com
Vendor      : InfluxData
URL         : https://influxdata.com
....

Step 3: Start and enable InfluxDB service

InfluxDB service is not started by default after installation. You need to start it manually.

sudo systemctl start influxdb

Also enable the service to start on OS boot up.

sudo systemctl enable influxdb

If the start was successful, the check on status should indicate “running”

$ systemctl status influxdb
 influxdb.service - InfluxDB is an open-source, distributed, time series database
     Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; preset: disabled)
     Active: active (running) since Wed 2023-01-25 12:15:08 UTC; 6s ago
       Docs: https://docs.influxdata.com/influxdb/
   Main PID: 1168 (influxd)
      Tasks: 8 (limit: 4543)
     Memory: 51.0M
        CPU: 830ms
     CGroup: /system.slice/influxdb.service
             └─1168 /usr/bin/influxd

Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1168]: ts=2023-01-25T12:15:08.024903Z lvl=info msg="Open store (start)" log_id=0fbDVJnG000 service=storage-engine service=store op_name=tsdb>
Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1168]: ts=2023-01-25T12:15:08.025038Z lvl=info msg="Open store (end)" log_id=0fbDVJnG000 service=storage-engine service=store op_name=tsdb_o>
Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1168]: ts=2023-01-25T12:15:08.025080Z lvl=info msg="Starting retention policy enforcement service" log_id=0fbDVJnG000 service=retention chec>
Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1168]: ts=2023-01-25T12:15:08.025095Z lvl=info msg="Starting precreation service" log_id=0fbDVJnG000 service=shard-precreation check_interva>
Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1168]: ts=2023-01-25T12:15:08.026517Z lvl=info msg="Starting query controller" log_id=0fbDVJnG000 service=storage-reads concurrency_quota=10>
Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1168]: ts=2023-01-25T12:15:08.032352Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0fbDVJnG000 >
Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1168]: ts=2023-01-25T12:15:08.042288Z lvl=info msg=Starting log_id=0fbDVJnG000 service=telemetry interval=8h
Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1168]: ts=2023-01-25T12:15:08.043095Z lvl=info msg=Listening log_id=0fbDVJnG000 service=tcp-listener transport=http addr=:8086 port=8086
Jan 25 12:15:08 fedora.mylab.io influxd-systemd-start.sh[1167]: InfluxDB started
Jan 25 12:15:08 fedora.mylab.io systemd[1]: Started influxdb.service - InfluxDB is an open-source, distributed, time series database.

The service listens on port 8086

$ ss -tunelp| grep 8086
tcp   LISTEN 0      4096               *:8086            *:*    users:(("influxd",pid=1168,fd=9)) uid:993 ino:21975 sk:c cgroup:/system.slice/influxdb.service v6only:0 <->

Step 4: Configure InfluxDB on Fedora

Open your browser and visit the link http://localhost:8086. Click on Get Started to continue with the setup.

Input username, password, organization name and bucket name in the next window.

You should be ready to go – InfluxDB configured and can be used now.

Enjoy using InfluxDB on your Fedora system.

Step 5: Install InfluxDB CLI

InfluxDB CLI is a command-line interface (CLI) tool used to interact with your InfluxDB server. Confirm it’s installed.

$ influx version
Influx CLI 2.6.1 (git: 61c5b4d) build_date: 2022-12-29T15:41:09Z

You have successfully installed InfluxDB on Fedora. Also read How to Install Telegraf on Fedora

For Monitoring with InfluxDB, check:

Cart

Your Cart is Empty

Back To Shop