How to Install Netdata on CentOS 8

Netdata is an Open Source real-time server monitoring tool. It collects real-time data like CPU usage, RAM usage, Load, SWAP usage, Bandwidth usage, Disk usage, etc.

Installing EPEL Repo

Install EPEL Repo by running following command.

dnf install epel-release -y

Output:

[root@vps ~]# dnf install epel-release -y
Last metadata expiration check: 0:02:01 ago on Fri 02 Jul 2021 11:46:10 AM EDT.
Dependencies resolved.
================================================================================
 Package               Architecture    Version            Repository       Size
================================================================================
Installing:
 epel-release          noarch          8-11.el8           extras           24 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 24 k
Installed size: 35 k

Install required packages for Netdata

Install required packages for Netdata by running following command.

dnf install git libuuid-devel autoconf automake pkgconfig zlib-devel curl findutils libmnl gcc make -y

Clone Netdata from github

Clone Netdata from gituhub by running the following command.

git clone https://github.com/netdata/netdata.git --depth=100

Output:

[root@vps ~]# git clone https://github.com/netdata/netdata.git --depth=100
Cloning into 'netdata'...
remote: Enumerating objects: 3086, done.
remote: Counting objects: 100% (3086/3086), done.
remote: Compressing objects: 100% (2308/2308), done.
remote: Total 3086 (delta 1140), reused 1511 (delta 696), pack-reused 0
Receiving objects: 100% (3086/3086), 11.60 MiB | 12.68 MiB/s, done.
Resolving deltas: 100% (1140/1140), done.

Build and Install Netdata

Switch to Netdata directory and install required packages by running the following command.

cd netdata

./packaging/installer/install-required-packages.sh --non-interactive --dont-wait netdata

Run the following script to build and install Netdata.

./netdata-installer.sh

Once the installation is complete, start and enable the Netdata and verify the status using the commands below.

systemctl start netdata

systemctl enable netdata

systemctl status netdata

Output:

[root@vps netdata]# systemctl status netdata
● netdata.service - Real time performance monitoring
   Loaded: loaded (/usr/lib/systemd/system/netdata.service; enabled; vendor pre>
   Active: active (running) since Fri 2021-07-02 11:55:42 EDT; 1min 11s ago
 Main PID: 29695 (netdata)
    Tasks: 42 (limit: 11412)
   Memory: 61.3M
   CGroup: /system.slice/netdata.service
           ├─29695 /usr/sbin/netdata -P /var/run/netdata/netdata.pid -D
           ├─29720 /usr/sbin/netdata --special-spawn-server
           ├─29857 /usr/libexec/netdata/plugins.d/go.d.plugin 1
           ├─29860 /usr/libexec/netdata/plugins.d/apps.plugin 1
           └─29861 /usr/libexec/netdata/plugins.d/ebpf.plugin 1

Firewall Configuration

Netdata listens on port 19999 by default, enable ports in firewall to use Netdata from browser.

firewall-cmd --permanent --add-port=19999/tcp
firewall-cmd --reload

Netdata Dashboard

Enter the following URL on the browser to access the Netdata dashboard. By default netdata works on 19999 port.

http://<Enter Your IP Here>:19999/

The dashboard will look like this.

image