Skip to content

Instantly share code, notes, and snippets.

@VirtuBox
Last active September 1, 2018 15:01
Show Gist options
  • Save VirtuBox/a50731b044f38bb9f06f7d6840bdb049 to your computer and use it in GitHub Desktop.
Save VirtuBox/a50731b044f38bb9f06f7d6840bdb049 to your computer and use it in GitHub Desktop.
netdata : adding slave

1) enable stream on the slave

In /etc/netdata/stream.conf (git install) : use the command uuidgen to generate your api key :

[stream]
    enabled = yes
    destination = IP:PORT
    api key = XXXXXXXXXXX

2) On the master

In /etc/netdata/stream.conf (git install)

# replace API_KEY by XXXXXXXXXXX defined in the slave configuration 
[API_KEY]
   enabled = yes
   default history = 3600
   default memory mode = save
   health enabled by default = auto
   allow from = *

3) On both servers

service netdata restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment