准备好环境,预先安装好一些依赖的软件

sudo yum install epel-release

 

sudo yum install autoconf automake curl gcc git libmnl-devel libuuid-devel openssl-devel libuv-devel lz4-devel Judy-devel lm_sensors make MySQL-python nc pkgconfig python python-psycopg2 PyYAML zlib-devel

 

 

Git克隆NetData仓库

git clone https://github.com/netdata/netdata.git --depth=100

 

安装

./netdata-installer.sh

 

执行成功会看到如下页面

centos 7安装netdata

 

centos 7安装netdata

 

看到上面的内容的话,就在地址栏输入  IP地址:19999,可以看到如下的界面,表示netdata安装成功,可以开始监控数据了

centos 7安装netdata

 

添加apache配置:

cd /etc/netdata/python.d/

vi apache.conf

# 配置文件内容

localhost:

  name: 'local'

  url: 'http://localhost/server-status?auto'

 

localipv4:

  name: 'local'

  url: 'http://127.0.0.1/server-status?auto'

 

localipv6:

  name: 'local'

  url: 'http://::1/server-status?auto'

 

# 重启netstat

systemctl restart netdata

apache的监控内容

centos 7安装netdata

 

相关文章:

  • 2021-08-10
  • 2021-07-21
  • 2022-02-08
  • 2021-08-26
  • 2021-12-27
  • 2022-01-25
  • 2021-10-31
猜你喜欢
  • 2021-12-02
  • 2021-06-17
  • 2022-12-23
  • 2021-07-31
  • 2021-09-17
  • 2022-12-23
  • 2021-07-30
相关资源
相似解决方案