Install Netdata on AlmaLinux 9 | Best Monitoring Tool
In this guide, we want to teach you How To Install Netdata on AlmaLinux 9. Netdata is an open-source, distributed, real-time, performance, and health monitoring tool for systems and applications, designed to help IT teams. The free, open-source Install Netdata on AlmaLinux 9 gives teams comprehensive, real-time visibility into the full technology stack, yet is easy to install with no configuration necessary and no limits on scalability.
You can now follow the steps below provided by the Orcacore website to Install Netdata on AlmaLinux 9.
Steps To Install and Configure Netdata on AlmaLinux 9
To Install Netdata on AlmaLinux 9, 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 on Initial Server Setup with AlmaLinux 9.
Step 1 – Install Netdata on AlmaLinux 9
First, you need to update your local package index with the command below:
sudo dnf update -y
Install Epel Repository
Then, you need to install the Epel repo on AlmaLinux 9 by using the command below:
sudo dnf install epel-release -y
Install Required Packages and Dependencies
Netdata installation on AlmaLinux 9 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.
Clone Netdata from GitHub
First, clone the Netdata on AlmaLinux 9 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
Enable PowerTools (crb) on AlmaLinux 9
Here you need to enable the power tools with the following command:
sudo dnf config-manager --set-enabled crb
Then, use the following commands to install the required packages:
# sudo dnf install autoconf-archive libuv-devel
# sudo ./packaging/installer/install-required-packages.sh --non-interactive --dont-wait netdata
Build and Install Netdata on AlmaLinux 9
Now run the script below to build and install Netdata on AlmaLinux:
sudo ./netdata-installer.sh
When your installation is completed, you will get the following output:
**Output**
--- We are done! ---
^
|.-. .-. .-. .-. .-. . **netdata** .-. .-. .-. .-. .-. .-
| '-' '-' '-' '-' '-' '-' '-' '-' '-' '-'
+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->
--- is installed and running now! ---
enjoy real-time performance and health monitoring...
Start and Enable Netdata Service
At this point, you need to start and enable the Netdata service on AlmaLinux 9. To do this, run the commands below:
# sudo systemctl start netdata
# sudo systemctl enable netdata
Verify that Netdata is active and running on your server:
sudo systemctl status netdata
**Output**
● netdata.service - Real time performance monitoring
Loaded: loaded (/usr/lib/systemd/system/netdata.service; enabled; vendor p>
Active: **active** (**running**) since Sun 2022-10-30 05:47:15 EDT; 6min ago
Main PID: 41963 (netdata)
Tasks: 75 (limit: 23609)
Memory: 159.6M
CPU: 14.746s
CGroup: /system.slice/netdata.service
....
Configure Firewall For Netdata
By default, Netdata listens on port 19999
.
At this point, we assumed that you have enabled firewalld.
Now you need to allow traffic for Netdata through the AlmaLinux 9 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
Step 2 – Access Netdata Dashboard
Here you can access the Netdata dashboard on AlmaLinux 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:
That’s it, you are done.
For more information, you can visit the Netdata Documentation page.
Conclusion
At this point, you have learned to Install Netdata on AlmaLinux 9. With Netdata, you can easily monitor your system and applications.
Hope you enjoy it. You may also like these articles:
How To Install and Configure Netdata on Debian 11
Install and Configure Netdata on Ubuntu 22.04
Install and Configure Netdata on AlmaLinux 8
Alternative Installation Methods for Netdata on AlmaLinux 9
While the above method of installing Netdata from the GitHub repository is functional, it requires a bit more manual configuration and dependency management. Let’s explore two alternative approaches to Install Netdata on AlmaLinux 9: using the Netdata package repository and using Docker.
1. Installing Netdata using the Netdata Package Repository
Netdata provides its own package repository, which simplifies the installation and update process. This method is generally recommended as it ensures you’re getting the latest stable version of Netdata and handles dependency management automatically.
Steps:
-
Add the Netdata Repository:
Create a new repository file for Netdata.
sudo nano /etc/yum.repos.d/netdata.repo
Add the following content to the file:
[netdata] name=Netdata baseurl=https://packagecloud.io/netdata/netdata/el/9/$basearch repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https://packagecloud.io/netdata/netdata/gpgkey sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300
Note: The
el/9
part of thebaseurl
is crucial for AlmaLinux 9. -
Install Netdata:
Now that the repository is configured, you can install Netdata using
dnf
:sudo dnf install netdata -y
-
Start and Enable Netdata:
Similar to the previous method, start and enable the Netdata service:
sudo systemctl start netdata sudo systemctl enable netdata
-
Verify Netdata Status:
Confirm that Netdata is running:
sudo systemctl status netdata
-
Configure Firewall:
Allow traffic to port 19999:
sudo firewall-cmd --permanent --add-port=19999/tcp sudo firewall-cmd --reload
This approach automates dependency resolution and provides a more streamlined installation experience for Install Netdata on AlmaLinux 9. Updates can be managed through dnf update
along with the rest of your system packages.
2. Installing Netdata using Docker
Docker provides a containerized environment, isolating Netdata from the host system and simplifying deployment. This method is especially useful for managing multiple Netdata instances or when you want to avoid conflicts with existing system packages.
Prerequisites:
-
Docker and Docker Compose must be installed on your AlmaLinux 9 system. If not, install them:
sudo dnf install docker -y sudo systemctl start docker sudo systemctl enable docker sudo dnf install docker-compose -y
Steps:
-
Create a
docker-compose.yml
file:Create a directory for your Docker Compose configuration:
mkdir netdata-docker cd netdata-docker nano docker-compose.yml
Add the following content to the
docker-compose.yml
file:version: '3.8' services: netdata: image: netdata/netdata container_name: netdata ports: - "19999:19999" cap_add: - SYS_PTRACE security_opt: - apparmor=unconfined volumes: - netdataconfig:/etc/netdata - netdatalib:/var/lib/netdata - /proc:/host/proc:ro - /sys:/host/sys:ro - /etc/passwd:/host/etc/passwd:ro - /etc/group:/host/etc/group:ro restart: unless-stopped volumes: netdataconfig: netdatalib:
Explanation:
image: netdata/netdata
: Specifies the official Netdata Docker image.ports: - "19999:19999"
: Maps port 19999 on the host to port 19999 in the container.cap_add: - SYS_PTRACE
: Grants the container theSYS_PTRACE
capability, which is required for some Netdata collectors.security_opt: - apparmor=unconfined
: Disables AppArmor confinement for the container (may be necessary depending on your AppArmor configuration). Use with caution and consider creating a custom AppArmor profile for more security.volumes
: Mounts several host directories into the container for Netdata to collect metrics. Thero
flag makes the/proc
,/sys
,/etc/passwd
and/etc/group
volumes read-only.restart: unless-stopped
: Automatically restarts the container unless it’s explicitly stopped.
-
Start the Netdata Container:
Run the following command in the
netdata-docker
directory:docker-compose up -d
This will download the Netdata image (if it’s not already present) and start the container in detached mode.
-
Access the Netdata Dashboard:
Open your web browser and navigate to
http://server-ip-address:19999/
.
The Docker method offers a portable and isolated way to run Netdata. It simplifies updates (by pulling a new image) and allows you to easily deploy Netdata on different systems without worrying about compatibility issues. To Install Netdata on AlmaLinux 9 using Docker is a robust choice.
By exploring these alternative installation methods, you can choose the approach that best suits your specific needs and environment for Install Netdata on AlmaLinux 9. The package repository method offers a streamlined experience with automatic dependency management, while the Docker method provides isolation and portability.