May 16, 2018

Netdata

install in 1 command

see https://github.com/firehol/netdata/wiki/Installation for explaination

curl -Ss 'https://raw.githubusercontent.com/firehol/netdata-demo-site/master/install-required-packages.sh' >/tmp/kickstart.sh && bash /tmp/kickstart.sh -i netdata-all

download it - the directory 'netdata' will be created

git clone https://github.com/firehol/netdata.git --depth=1
cd netdata

build it, install it, start it

./netdata-installer.sh

auto update

sudo crontab -e
0 6 * * * /path/to/git/downloaded/netdata/netdata-updater.sh

ex:

0 6 * * * /home/user/netdata/netdata-updater.sh

netdata registry

To turn any netdata into a registry just edit /etc/netdata/netdata.conf and set:

[registry]
    enabled = yes
    registry to announce = http://your.registry:19999

Restart your netdata to activate it.

Then, you need to tell all your other netdata servers to advertise your registry, instead of the default. To do this, on each of your netdata servers, edit /etc/netdata/netdata.conf and set:

DONT FORGET THE PORT AT THE END

[registry]
    enabled = no
    registry to announce = http://MACHINEYOUWANTASMASTER:19999

then on the netdata machines you want to talk to registry
settings, impersonate, copy the ID from MASTER netdata