prometheus、Node_exporter、grafana安装

一、安装prometheus、Node_exporter、grafana
1、centos 监控主机上安装 Prometheus
1)下载

# wget https://github.com/prometheus/prometheus/releases/download/v2.5.0/prometheus-2.5.0.linux-amd64.tar.gz
# tar xf prometheus-2.5.0.linux-amd64.tar.gz
# cp prometheus-2.5.0.linux-amd64/{prometheus,promtool} /usr/local/bin/
# prometheus --version
# cd prometheus-2.5.0.linux-amd64
# cp prometheus.yml prometheus.yml.orig
# mkdir -p /etc/prometheus
# cp prometheus.yml /etc/prometheus/
2)使用promtool工具检验配置文件是否正确
  # promtool check config /etc/prometheus/prometheus.yml
3)启动prometheus 
# prometheus --config.file /etc/prometheus/prometheus.yml指定配置文件启动


2、在被监控服务器上安装 Node exporter
1)安装

# wget https://github.com/prometheus/node_exporter/releases/download/v0.16.0/node_exporter-0.16.0.linux-amd64.tar.gz
# tar xf node_exporter-*
# cp node_exporter-*/node_exporter /usr/local/bin/
# node_exporter --version
# node_exporter –help

2)使用需要在prometheus的配置文件中配置jop ,服务器才能发现服务,纤细配置在下面的文档
3)注意事项
 如果数据没有更新,请注意,是否关闭了Node exporter

3、grafana 安装
1)安装

# wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.3.2-1.x86_64.rpm
# yum -y localinstall grafana-5.3.2-1.x86_64.rpm

 2)使用service启动
service grafana-server start
```
访问:
默认运⾏在 3000端口
直接 ip:3000 即可


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值