NetData介绍
NetData:官网
安装方法
ubuntu 18的源是有NetData,可以直接
sudo apt-get update
sudo apt-get install netdata
或者用官方提供的方法
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
配置局域网访问
查看配置文件
cat /etc/netdata/netdata.conf
修改IP地址监听和端口号
sudo nano /etc/netdata/netdata.conf
# NetData Configuration
# The current full configuration can be retrieved from the running
# server at the URL
#
# http://localhost:19999/netdata.conf
#
# for example:
#
# wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
#
[global]
run as user = netdata
web files owner = root
web files group = root
# Netdata is not designed to be exposed to potentially hostile
# networks.See https://github.com/firehol/netdata/issues/164
bind socket to IP = 0.0.0.0
# 默认为19999
default port = 6513
重启服务让配置生效
systemctl restart netdata
这样就可以通过IP+端口在局域网内访问了
相关命令
启动
sudo systemctl start netdata
停止
sudo systemctl stop netdata
重启
sudo systemctl restart netdata
开机启动
sudo systemctl enable netdata