netdata官網
netdata操作文檔
前言:
netdata是一款監控軟件,可以監控多臺主機也可以監控單臺主機,監控單臺主機時,開箱即用,web ui很棒。
環境:
[root@192 ~]# cat /etc/system-release
CentOS Linux release 7.9.2009 (Core)
[root@192 ~]# systemctl disable firewalld --now
[root@192 ~]# setenforce 0
1.使用第三方源
curl -o /etc/yum.repos.d/aliyun-epel7.repo http://mirrors.aliyun.com/repo/epel-7.repo
makecache
- 安裝netdata
# yum -y install netdata
# systemctl enable netdata --now
- 訪問netdata
3.1. 當前默認僅當前主機可訪問,需要修改為所有主機可訪問。
cat /etc/netdata/netdata.conf[web]web files owner = rootweb files group = netdata# by default do not expose the netdata portbind to = 0.0.0.0
# systemctl restart netdata
3.2. 查看netdata listen端口
[root@192 ~]# netstat -tnlp|grep netdata
tcp 0 0 127.0.0.1:8125 0.0.0.0:* LISTEN 2973/netdata
tcp 0 0 0.0.0.0:19999 0.0.0.0:* LISTEN 2973/netdata
tcp6 0 0 ::1:8125 :::* LISTEN 2973/netdata
3.3. 訪問netdata
附言: 其他功能需要自行研究!