netdata部署步骤记录
安装步骤的总结
1.wget https://github.com/netdata/netdata/archive/v1.16.1.tar.gz
tar -zxvf v1.16.1.tar.gz 解压
2.# CentOS / Red Hat Enterprise Linux
yum install autoconf automake curl gcc git libmnl-devel libuuid-devel openssl-devel libuv-devel lz4-devel Judy-devel make nc pkgconfig python zlib-devel
# openSUSE 目前的suse 11 sp4没有装成功
zypper install zlib-devel libuuid-devel libuv-devel liblz4-devel judy-devel libopenssl-devel libmnl-devel gcc make git autoconf autoconf-archive autogen automake pkgconfig curl findutils python
3../netdata-installer.sh --install /data
yum -y update nss
netdata-1.16.1目录下再一次 ./netdata-installer.sh --install /data
4./data/netdata/usr/sbin/netdata 启动
killall netdata 停止
systemctl restart netdata (centos)
service netdata restart (Redhat)
linux-netdata监控配置-master配置【redhat6.5】
1.修改/data/netdata/etc/netdata/netdata.conf中的如下配置:
[global]
hostname = [改成需要设置的主机标识名]
2.在netdata.conf的同一目录下新建stream.conf并写入如下配置:
[6144ca2d-2f55-4ca9-b989-7b484879c90a]
# enable/disable this API key
enabled = yes
# one hour of data for each of the slaves
default history = 3600
# do not save slave metrics on disk
default memory = ram
# alarms checks, only while the slave is connected
health enabled by default = auto
linux-netdata监控配置-slave配置【centos7.2】
1.修改/data/netdata/etc/netdata/netdata.conf中的如下配置:
[global]
# disable the local database
memory mode = none
[health]
# disable health checks
enabled = no
2.在netdata.conf的同一目录下新建stream.conf并写入如下配置:
[stream]
# stream metrics to another netdata
enabled = yes
# the IP and PORT of the master
destination = 10.11.12.13:19999
# the API key to use
api key = 6144ca2d-2f55-4ca9-b989-7b484879c90a