In this article, we will have explained the necessary steps to install and configure Netdata on Ubuntu 20.04 LTS. 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 a free, open-source, simple, and real-time performance and health monitoring tool with a beautiful web front-end. NetData can be installed as an agent on systems/containers/applications so as to collect in real-time, the system/container/application metrics and displays them on an interactive web interface. It can store all these metrics for a predefined time period. It can be integrated with other monitoring tools such as Prometheus, Graphite, OpenTSDB, Kafka, Grafana, and more.
- Operating System with Ubuntu 20.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
Install Netdata on Ubuntu 20.04
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade
Step 2. Install Netdata on the Ubuntu system.
- Install Netdata using Automatic Installation Script
Run the below script to install Netdata with automatic updates:
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
The NetData Kickstart script installs NetData systemd service unit. It also starts and enables NetData service to run on system boot:
sudo systemctl status netdata
- Install Netdata From Source Manually.
First, install dependency packages:
sudo apt install zlib1g-dev uuid-dev libuv1-dev liblz4-dev libjudy-dev libssl-dev libmnl-dev gcc make git autoconf autoconf-archive autogen automake pkg-config curl python cmake
Then, We have to Clone the Netdata Packages from Git:
sudo git clone https://github.com/netdata/netdata.git --depth=100
After that, follow the prompts to install NetData on Ubuntu 20.04:
ls cd netdata/ sudo ./netdata-installer.sh
Finally, we need to start and enable the Netdata service to make the changes effect:
sudo systemctl start netdata sudo systemctl enable netdata sudo systemctl status netdata
Step 3. Configure Firewall Rule.
To allow traffic on port 19999 enter the below command:
sudo ufw allow 19999/tcp
Step 4. Accessing Netdata Web Interface.
You can now access your NetData Web interface via the address
http://your-ip-address:19999. This should land you on the beautiful various system metrics NetData dashboard.
That’s all you need to do to install Netdata on Ubuntu 20.04 Focal Fossa. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.