Welcome to our article on how to install InfluxDB on Fedora 39/38/37/36/35. 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:
- Install InfluxDB on Ubuntu and Debian
- Install Grafana and InfluxDB on CentOS 7
- Install InfluxDB on CentOS 8
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 the repository contents.
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/influxdata-archive_compat.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 y key
Importing GPG key 0x7DF8B07E:
Userid : "InfluxData Package Signing Key <[email protected]>"
Fingerprint: 9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E
From : https://repos.influxdata.com/influxdata-archive_compat.key
Is this ok [y/N]: y
The version of InfluxDB installed can be confirmed using the rpm
command:
$ rpm -qi influxdb2
Name : influxdb2
Version : 2.7.3
Release : 1
Architecture: x86_64
Install Date: Wed 15 Nov 2023 01:11:55 AM UTC
Group : default
Size : 103314793
License : MIT
Signature : RSA/SHA512, Wed 18 Oct 2023 04:46:54 PM UTC, Key ID d8ff8e1f7df8b07e
Source RPM : influxdb2-2.7.3-1.src.rpm
Build Date : Tue 17 Oct 2023 03:47:18 PM UTC
Build Host : ip-10-0-34-101.ec2.internal
Relocations : /
Packager : [email protected]
Vendor : InfluxData
URL : https://influxdata.com
Summary : Distributed time-series database.
....
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)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: active (running) since Wed 2023-11-15 01:12:24 UTC; 8s ago
Docs: https://docs.influxdata.com/influxdb/
Main PID: 68168 (influxd)
Tasks: 8 (limit: 4520)
Memory: 95.5M
CPU: 777ms
CGroup: /system.slice/influxdb.service
└─68168 /usr/bin/influxd
Nov 15 01:12:22 fed39.mylab.io influxd-systemd-start.sh[68168]: ts=2023-11-15T01:12:22.971052Z lvl=info msg="Starting retention policy enforcement service" log_id=0lW8QtIW000 service=retention chec>
Nov 15 01:12:22 fed39.mylab.io influxd-systemd-start.sh[68168]: ts=2023-11-15T01:12:22.971190Z lvl=info msg="Starting precreation service" log_id=0lW8QtIW000 service=shard-precreation check_interva>
Nov 15 01:12:22 fed39.mylab.io influxd-systemd-start.sh[68168]: ts=2023-11-15T01:12:22.973954Z lvl=info msg="Starting query controller" log_id=0lW8QtIW000 service=storage-reads concurrency_quota=10>
Nov 15 01:12:22 fed39.mylab.io influxd-systemd-start.sh[68168]: ts=2023-11-15T01:12:22.985594Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0lW8QtIW000 >
Nov 15 01:12:22 fed39.mylab.io influxd-systemd-start.sh[68190]: Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running s>
Nov 15 01:12:23 fed39.mylab.io influxd-systemd-start.sh[68168]: ts=2023-11-15T01:12:23.006522Z lvl=info msg=Starting log_id=0lW8QtIW000 service=telemetry interval=8h
Nov 15 01:12:23 fed39.mylab.io influxd-systemd-start.sh[68167]: InfluxDB API at http://localhost:8086/ready unavailable after 1 attempts...
Nov 15 01:12:23 fed39.mylab.io influxd-systemd-start.sh[68168]: ts=2023-11-15T01:12:23.009747Z lvl=info msg=Listening log_id=0lW8QtIW000 service=tcp-listener transport=http addr=:8086 port=8086
Nov 15 01:12:24 fed39.mylab.io influxd-systemd-start.sh[68167]: InfluxDB started
Nov 15 01:12:24 fed39.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 dev (git: none) build_date: 2023-04-28T14:24:14Z
You have successfully installed InfluxDB on Fedora. Also read How to Install Telegraf on Fedora
For Monitoring with InfluxDB, check:
- Monitor Linux System with Grafana and Telegraf
- How to Monitor Zimbra Server with Grafana, Influxdb and Telegraf
- How to Monitor VMware ESXi with Grafana and Telegraf