netdata is a extremely optimized Linux utility that provides real-time (per second) performance monitoring for Linux systems, applications, SNMP devices, etc. and shows full interactive charts that absolutely render all collected values over the web browser to analyze them.
It has been developed to be installed on each Linux system, without interrupting the current running applications on it. You can use this tool to monitor and get overview of what is happening in real-time and what just happened, on your Linux systems and applications.
This is what it monitors:
- Total and Per Core CPU usage, interrupts, softirqs and frequency.
- Total Memory, RAM, Swap and Kernel usage.
- Disk I/O (per disk: bandwidth, operations, backlog, utilization, etc).
- Monitors Network interfaces including: bandwidth, packets, errors, drops, etc).
- Monitors Netfilter / iptables Linux firewall connections, events, errors, etc.
- Processes (running, blocked, forks, active, etc).
- System Applications with the process tree (CPU, memory, swap, disk reads/writes, threads, etc).
- Apache and Nginx Status monitoring with mod_status.
- MySQL database monitoring: queries, updates, locks, issues, threads, etc.
- Postfix email server message queue.
- Squid proxy server bandwidth and requests monitoring.
- Hardware sensors (temperature, voltage, fans, power, humidity, etc).
- SNMP devices.
netdata Installation on Linux Systems
The latest release of netdata can be easily installed on Arch Linux, Gentoo Linux, Solus Linux and Alpine Linux using your package manager as shown.
$ sudo pacman -S netdata [Install Netdata on Arch Linux] $ sudo emerge --ask netdata [Install Netdata on Gentoo Linux] $ sudo eopkg install netdata [Install Netdata on Solus Linux] $ sudo apk add netdata [Install Netdata on Alpine Linux]
On Debian/Ubuntu and RHEL/CentOS/Fedora, there is one line installation script that will install latest netdata and also keep it up to date automatically.
$ bash <(curl -Ss https://my-netdata.io/kickstart.sh [On 32-bit] $ bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) [On 64-bit]
The above script will:
- discover the distribution and installs the needed software packages for building netdata (will ask for confirmation).
- downloads the latest netdata source tree to /usr/src/netdata.git.
- installs netdata by executing
./netdata-installer.shfrom the source tree.
netdata-updater.shto cron.daily, so your netdata will be updated daily (you will receive a alert from cron only if the update fails).
kickstart.sh script progress all its parameters to
netdata-installer.sh, so you can define more parameters to modify the installation source, enable/disable plugins, etc.
Alternatively, you can also install latest netdata manually by cloning its repository, but before you start installing netdata, make sure you have these basic build environment packages installed on the system, if not install it using your respective distribution package manager as shown:
On Debian / Ubuntu
# apt-get install zlib1g-dev gcc make git autoconf autogen automake pkg-config
On Centos / Redhat / Fedora
# yum install zlib-devel gcc make git autoconf autogen automake pkgconfig
Next, clone the netdata repository from git and run netdata installer script to build it.
# git clone https://github.com/firehol/netdata.git --depth=1 # cd netdata # ./netdata-installer.sh
netdata-installer.sh script will build netdata and install it on your Linux system.
Once the netdata installer finishes, the file
/etc/netdata/netdata.conf will be created in your system.
Now it’s time to start netdata by executing the following command from the terminal.
You can also stop netdata by terminating it’s process with killall command as shown.
# killall netdata
Note: Netdata saves on exit its round robbin database information under
/var/cache/netdata file, so that when you start again netdata, it will continue from where it was stopped last time.
Starting and Testing netdata
Now open your browser and navigate to the following address to access the web site for all graphs:
Check out the video that shows how Real-time Linux performance monitoring done here: https://www.youtube.com/watch?v=QIZXS8A4BvI
You can also view the running configuration of netdata at any time, by going to:
You can update netdata daemon to the most recent version by going into
netdata.git directory you downloaded before and running:
# cd /path/to/netdata.git # git pull # ./netdata-installer.sh
The above netdata installer script will build new version and restart netdata.