Install and Configure Netdata on Rocky Linux 8

In this guide, we want to teach you How To Install and Configure Netdata on Rocky Linux 8.

Netdata is an open-source, distributed, and real-time infrastructure monitoring platform. It keeps track of the performance and health of different environments using a per-second metric approach to monitoring.

Steps To Install and Configure Netdata on Rocky Linux 8

To complete this guide, you must log in to your server as a non-root user with sudo privileges and set up a basic firewall. To do this, you can follow our guide the Initial Server Setup with Rocky Linux 8.

Install Netdata Monitoring tool on Rocky Linux 8

First, you need to update your local package index with the following command:

sudo dnf update -y

Then, you need to install the Epel release on Rocky Linux 8 with the command below:

sudo dnf install epel-release -y

Netdata installation on Rocky Linux 8 needs some required packages, install them with the command below:

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

Here we install Netdata from Github. First, clone the Netdata with the following command:

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

Then, switch to the Netdata directory with the command below:

cd netdata

You need to install some required packages here with the following commands:

sudo dnf --enablerepo=powertools install autoconf-archive autogen libuv-devel
sudo ./packaging/installer/install-required-packages.sh --non-interactive --dont-wait netdata

Now run the script below to build and install Netdata on Rocky Linux 8:

sudo ./netdata-installer.sh
Output
 --- We are done! ---

  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata  .-.   .-.   .-.   .-.   .-.   .-
  |   '-'   '-'   '-'   '-'   '-'               '-'   '-'   '-'   '-'   '-'
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

 --- is installed and running now! ---
  enjoy real-time performance and health monitoring...

When your installation is completed, proceed to the next step.

Manage Netdata Service

At this point, you need to start your Netdata service with the command below:

sudo systemctl start netdata

To enable your service to start at boot, run the following command:

sudo systemctl enable netdata

Verify that your Netdata service is active and running on Rocky Linux 8 with the command below:

sudo systemctl status netdata

In your output you will see:

Output
● netdata.service - Real time performance monitoring
   Loaded: loaded (/usr/lib/systemd/system/netdata.service; enabled; vendor pre>
   Active: active (running) since Tue 2022-10-04 03:53:11 EDT; 2min 47s ago
 Main PID: 117414 (netdata)
    Tasks: 54 (limit: 23699)
   Memory: 112.8M
   CGroup: /system.slice/netdata.service
           ├─117414 /usr/sbin/netdata -P /run/netdata/netdata.pid -D
           ├─117417 /usr/sbin/netdata --special-spawn-server
           ├─117541 /usr/libexec/netdata/plugins.d/go.d.plugin 1
           ├─117547 /usr/libexec/netdata/plugins.d/apps.plugin 1
           └─117558 /usr/libexec/netdata/plugins.d/ebpf.plugin 1

Configure Firewall For Netdata

At this point, we assumed that you have enabled firewalld. By default, Netdata listens on port 19999.

Now you need to allow traffic for Netdata through the Rocky Linux 8 firewall with the command below:

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

Then, reload the firewall to apply the new rules:

sudo firewall-cmd --reload

Access Netdata Dashboard

Here you can access the Netdata dashboard on Rocky Linux 8 by typing your server’s IP address in your web browser followed by 19999:

http://server-ip-address:19999

You will your system overview on the Netdata dashboard:

Netdata dashboard

With Netdata, you can collect any available metric (on a per-second basis) from your systems and apps using more than 300 agent collectors or the Kubernetes service discovery. You can then visualize all collected data via charts or insights using the cloud-based Netdata dashboard. With access to such data, you can monitor the health and performance with the pre-configured alarms, detect and analyze anomalies, store metrics data for months, and export them to other systems.

For more information, you can visit the Netdata Documentation page.

Conclusion

At this point, you have learned to Install and Configure Netdata on Rocky Linux 8.

Hope you enjoy it.

Install and Configure Zabbix 6.0 on Rocky Linux 8

Install and Configure Grafana on Rocky Linux 8

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Stay informed and not overwhelmed, subscribe now!