前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >centos7 安装netdata及使用

centos7 安装netdata及使用

作者头像
shaonbean
发布2019-08-29 11:24:27
2.3K0
发布2019-08-29 11:24:27
举报
文章被收录于专栏:运维前线运维前线

netdata

  • netdata简介

构建最佳的实时健康监控和性能故障排除解决方案

netdata官网:https://www.netdata.cloud/about netdata文档:https://docs.netdata.cloud/

netdata安装

  • 参考:https://docs.netdata.cloud/packaging/installer/#install-netdata
代码语言:javascript
复制
# 安装依赖包
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
# 下载源码
git clone https://github.com/netdata/netdata.git --depth=100
cd netdata
# 执行安装,以root权限执行下面命令
./netdata-installer.sh (需在线,涉及下载github上依赖包)
  • 安装成功如下:
代码语言:javascript
复制
etdata by default listens on all IPs on port 19999,
so you can access it with:

  http://this.machine.ip:19999/

To stop netdata run:

  systemctl stop netdata

To start netdata run:

  systemctl start netdata

Uninstall script copied to: /usr/libexec/netdata/netdata-uninstaller.sh

 --- Install netdata updater tool --- 
Update script is located at /usr/libexec/netdata/netdata-updater.sh

 --- Check if we must enable/disable the netdata updater --- 
You chose *NOT* to enable auto-update, removing any links to the updater from cron (it may have happened if you are reinstalling)

Did not find any cron entries to remove
 --- Wrap up environment set up --- 
Preparing .environment file
Setting netdata.tarball.checksum to 'new_installation'

 --- We are done! --- 

  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-'  
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  enjoy real-time performance and health monitoring...

离线安装

  • 参考:https://blog.csdn.net/waplys/article/details/88187438
代码语言:javascript
复制
# 外网安装时自动从git拉取,内网可提前下载文件置于http上,或者直接修改脚本,跳过下载步骤,手动上传并读取本地文件即可。
curl -sSL --connect-timeout 10 --retry 3 https://github.com/netdata/go.d.plugin/releases/download/v0.8.0/go.d.plugin-v0.8.0.linux-amd64.tar.gz 
curl -sSL --connect-timeout 10 --retry 3 https://github.com/netdata/go.d.plugin/releases/download/v0.8.0/config.tar.gz
  • 配置本下载
代码语言:javascript
复制
# yum install -y httpd 
# mkdir -p /var/www/html/netdata/go.d.plugin/releases/download/v0.8.0
# 上传文件<go.d.plugin-v0.8.0.linux-amd64、config.tar.gz>至此目录
# 重启Http:systemctl restart httpd
# 测试:wget "http://127.0.0.1:80/netdata/go.d.plugin/releases/download/v0.8.0/go.d.plugin-v0.8.0.linux-amd64"
  • 修改脚本
代码语言:javascript
复制
vim netdata-installer.sh
更改810和812行的github地址为本地:
github.com换成127.0.0.1
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年08月19日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • netdata
    • netdata安装
      • 离线安装
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档