In this article, we will have explained the necessary steps to installing and configure Netdata on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo
privileges. All the commands in this tutorial should be run as a non-root user.
Netdata is an open-source tool designed to collect real-time metrics, such as CPU usage, disk activity, bandwidth usage, website visits, etc., and then display them in live, easy-to-interpret charts. Netdata gives you modern interactive web dashboards for viewing your server metrics with support for various data stores for persistent storage.
Prerequisite:
- Operating System with Ubuntu 22.04
- Server IPv4 Address with Superuser Privileges (Root Access)
- Gnome Terminal for Linux Desktop
- PuTTy SSH client for Windows or macOS
- Powershell for Windows 10/11
- Familiar with APT Commands
Features of netdata
- Auto-scaling of chart units
- IP access lists for filtering access to netdata
- Enhanced VMs and container monitoring
- Highlighted time-frames across all charts of the dashboard
- Dashboard snapshots, for loading/saving of selected time-frames
- Timezone conversion at the dashboard to allow comparing charts with server logs
- Zero maintenance, configuration, and dependencies
- It is easily customizable, extensible, and embeddable
- Scales to infinity
- Time-series back-ends supported – it can archive its metrics on graphite, opentsdb, Prometheus, JSON document DBs, in the same or lower detail.
Install Netdata on CentOS 8
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo dnf install epel-release sudo dnf update
Step 2. Installing necessary packages for Netdata.
Now install the requisite software packages as shown:
sudo dnf install git zlib-devel libuuid-devel libmnl gcc make git autoconf automake pkgconfig curl findutils
Step 3. Install Netdata on the CentOS system.
Clone the Netdata script installer from the Git repository:
git clone https://github.com/netdata/netdata.git --depth=100
After that, switch to the Netdata directory and execute the below commands so all necessary packages will automatically install on your system:
cd netdata/ ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata
Once done, run the Netdata automated script:
sudo ./netdata-installer.sh
Finally, we need to start and enable Netdata services:
sudo systemctl start netdata sudo systemctl enable netdata sudo systemctl status netdata
Step 4. Configure Firewall.
We need to open this port on the firewall to have access to Netdata via a browser. Now run the commands below:
sudo firewall-cmd --add-port=19999/tcp --permanent sudo firewall-cmd --reload
Step 5. Accessing Netdata Web UI.
Now open the browser http://your_server_ip:19999/
to access the Netdata web interface.
That’s all you need to do to install Netdata on CentOS 8. I hope you find this quick tip helpful. For further reading on Netdata real-time monitoring, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.