linux-netdata監控配置

netdata部署步驟記錄


linux-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


分享到:


相關文章: