How To Install Netdata on CentOS 7

Netdata is a performance monitoring system that allocates resources and availability in real time.

Install dependencies

To install Netdata, you first need to install the following:

$ sudo yum install zlib-devel libuuid-devel libmnl-devel gcc make git autoconf autogen automake pkgconfig
$ sudo yum install curl jq nodejs

Install netdata

Installation using an official script. Make sure you run bash for your shell

$ bash

After, Install Netdata directly from GitHub source

$ bash <(curl -Ss https://my-netdata.io/kickstart.sh)

If no errors occur during installation, the Netdata daemon will start.

Change firewall rules

Before you can access Netdata, you need to change your firewall rules. This is necessary to allow traffic through port 19999 (this port is set by default for Netdata)

$ sudo firewall-cmd --permanent --zone=public --add-port=19999/tcp
$ sudo firewall-cmd --reload

View monitoring interface

After successfully changing the firewall rules, it is mandatory to confirm the installation by opening a web browser and visiting the monitoring interface at http://192.0.2.123:19999

Setup Systemd Service Unit

For your comfort, put Netdatd under systemd control

$ sudo yum install psmisc
$ sudo killall netdata
$ sudo cp ~/netdata/system/netdata.service /etc/systemd/system/
$ sudo systemctl daemon-reload
$ sudo systemctl start netdata.service
$ sudo systemctl enable netdata.service

To further configure Netdata, you must edit the configuration file

$ sudo vi /etc/netdata/netdata.conf

To view the current configuration, you can visit the page http://192.0.2.123:19999/netdata.conf

Was this article helpful?

Related Articles