netdata汇聚多个节点的监测数据到一个中心节点

netdata proxy data config
the UUID generate from uuidgen
example is : a0047db7-6088-438a-b607-7f3b3e2e15a9
you can enable dbengine on the center to storage all data

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# center conf

# config revice data rule
# by https://learn.netdata.cloud/docs/agent/streaming/#options-for-the-receiving-node
# /etc/netdata/stream.conf
[a0047db7-6088-438a-b607-7f3b3e2e15a9]
enabled = yes
default history = 3600
default memory mode = dbengine
health enabled by default = auto
allow from = *

# enable dbengine on center
# by https://learn.netdata.cloud/docs/agent/database/engine/#configuration
# /etc/netdata/netdata.conf
[global]
memory mode = dbengine
page cache size = 32
dbengine disk space = 256
1
2
3
4
5
6
7
# node conf
# by https://learn.netdata.cloud/docs/agent/streaming/#options-for-the-sending-node
# /etc/netdata/stream.conf
[stream]
enabled = yes
destination = 192.168.137.164:19999
api key = a0047db7-6088-438a-b607-7f3b3e2e15a9

出现节点数量始终不能超过某一数值,例如slave节点数量始终不能超过4个的现象时,可能是因为文件打开句柄数受限了

可以使用以下方法在systemd配置文件中扩大句柄数限制

systemctl edit netdata

1
2
[Service]
LimitNOFILE=65536