Build and install Netdata under Ubuntu server

Install all the required packages for monitoring everything Netdata can monitor:

cd ~/
curl -Ss 'https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh' >/tmp/install-required-packages.sh && bash /tmp/install-required-packages.sh -i netdata-all

Git clone Netdata

cd ~/
git clone https://github.com/netdata/netdata.git --depth=100 --recursive
cd netdata

run script with root privileges to build, install, start Netdata

sudo ./netdata-installer.sh

Start netdata service

sudo systemctl start netdata
sudo systemctl enable netdata
sudo systemctl status netdata

Configuration is here and can be adjusted as required

sudo wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
sudo vim /etc/netdata/netdata.conf

For example, here is to retain longer history

history = 86400 # 24 hours = 24 * 60 * 60 = 86400 seconds

or

history = 864000 # 10 days = 10 * 24 * 60 * 60 = 864000 seconds