How to Install and Configure NetData on AlmaLinux 10 for Per Process Monitoring

How to Install and Configure Netdata on AlmaLinux 10 for Per-Process Monitoring

Netdata is an open-source server monitoring application that collects metrics in real time. This includes, but is not limited to, disk read/write activity, CPU usage, bandwidth usage, and more. Netdata is designed to run on physical servers or containers. It offers real-time performance and health monitoring with easy-to-interpret charts. It displays all data in interactive graphs through a web-based dashboard. In this tutorial, we will show you how to install and configure Netdata on AlmaLinux 10 for per-process monitoring.

Prerequisites

Conventions

# – given commands should be executed with root privileges either directly as a root user or by use of sudo command
$ – given commands should be executed as a regular user

Step 1: Log in to your server via SSH

We will use root to install everything and run commands. If you are using another system user with sudo privileges, add ‘sudo’ to the commands. First, let’s log in to our AlmaLinux 10 machine.

ssh root@IP_Address -p Port_number

Replace ‘IP_Address’ and ‘Port_number’ with your server’s IP address and SSH port number. Additionally, replace ‘root’ with the username of the system user with sudo privileges.

You can check whether you have the proper AlmaLinux version installed on your server with the following command:

# cat /etc/almalinux-release

You will see this output:

AlmaLinux release 10.2 (Lavender Lion)

Step 2: Update the System

Before we can configure Netdata on AlmaLinux 10, you have to make sure that all AlmaLinux OS package information about applications installed on the server is up to date. You can do this by running the following commands:

# dnf update

That’s it. The system package information should be updated now.

Step 3. Install Netdata

Netdata provides a one-click installer for various Linux distributions, which is the standard method recommended on the Netdata Cloud dashboard. To get the list of supported Linux distributions, you can refer to their page at https://learn.netdata.cloud/docs/netdata-agent/versions-&-platforms#currently-supported-platforms. Now, we can run the one-click installer to install Netdata on our system.

# wget https://get.netdata.cloud/kickstart.sh -O /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh

The command above will install everything, including the dependencies, binary download, systemd service creation, and enable auto-updates. You would just need to answer the Yes/No questions and hit ENTER when prompted. Once the installation is completed, you should be able to access Netdata at http://YOUR_SERVER_IP_ADDRESS:19999

You can log in anonymously.

Step 4. Configure Netdata

At this point, you should be able to open Netdata at http://YOUR_SERVER_IP_ADDRESS:19999. However, if you cannot access it, most likely the service is not starting automatically. Simply run the command below:

# systemctl start netdata

At this point, your /etc/netdata/netdata.conf is empty. Let’s run the command below to get the configuration file:

# netdatacli dumpconfig > /etc/netdata/netdata.conf

Step 5. Configure Reverse Proxy

To secure your Netdata installation and the information inside it, we can install and configure a web server to run as a reverse proxy. In this step, we will install and configure Nginx.

Let’s install it now

# dnf install nginx -y

Once installed, nginx will run automatically on Debian/Ubuntu. If you are running CentOS/AlmaLinux/RockyLinux, you need to execute the command below to enable it.

# systemctl enable --now nginx

Next, we can continue with the configuration. Let’s create an Nginx server block.

# nano /etc/nginx/conf.d/netdata.conf

Insert the following into the file.

upstream netdata {
    server 127.0.0.1:19999;
    keepalive 64;
}

server {
    listen 80;
    server_name netdata.yourdomain.com;

    location / {
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass netdata;
        proxy_http_version 1.1;
        proxy_pass_request_headers on;
        proxy_set_header Connection "keep-alive";
        proxy_store off;
    }
}

Replace netdata.yourdomain.com with your actual domain name pointing to your server. Save the file, exit, then restart nginx

# systemctl restart nginx

Now that you are able to access Netdata through http://netdata.yourdomain.com, we can close port 19999 or restrict Netdata to listen only on localhost. Let’s edit the Netdata configuration file.

# nano

Find [web] and add this line under that [web] section

    bind to = 127.0.0.1

Save the file, then restart Netdata

# systemctl restart netdata

Now, your should not be able to access Netdata at http://YOUR_SERVER_IP_ADDRESS:19999 because it is now listening only on localhost.

Step 6. Configure Per-Process Monitoring

Netdata routes per-process monitoring using groups defined in the apps_groups.conf file. If a process is not explicitly grouped, Netdata attributes its metrics to the generic catch-all group called other.

Let’s open the process configuration file and edit it using Netdata’s built-in editor.

# /etc/netdata/edit-config apps_groups.conf

Now, let’s scroll to the bottom of the file (or right above the # NETDATA processes accounting marker). Here, add your custom processes in the format group_name: process_pattern. You can use multiple space-separated string patterns or wildcards.

custom_web: *nginx* *httpd* apache
custom_db: *mariadb* *mysql* redis-server
nodejs_app: nodejs-backend node-app python3-api

Note: Netdata checks these rules from top to bottom. The first group that matches a process name takes priority, so put explicit patterns at the top if needed. Save and exit the editor.

After saving the file, restart the Netdata Agent to apply your configuration changes:

# systemctl restart netdata

To ensure Netdata is mapping the processes to the correct group, we can query Netdata’s internal debugging mechanism via the terminal:

# /usr/libexec/netdata/plugins.d/apps.plugin debug

The command above prints a live stream showing exactly how Netdata parses your running processes and which group label it assigns to each PID. Look for your custom group name to confirm it has successfully claimed your target processes.

Or, you can also check the dashboard at http://netdata.yourdomain.com, then click on the Charts menu on your right, then navigate to Process – Apps; you will see the custom_web and custom_db there. If you have NodeJS or a Python API running on your server, you will also see the nodejs_app there.

Conclusion

That’s it! You have learned, installed, and configured Netdata on AlmaLinux 10 for per-process monitoring. If you subscribe to our monthly server management support, or even get a one-off per-incident server support, we can take care of the installation and configuration for you.

If you liked this post about how to install and Configure Netdata on AlmaLinux 10 for per-process monitoring, please share it with your friends or leave a comment below.

Leave a Reply

Your email address will not be published. Required fields are marked *