同样由于项目需要,在节点上部署了influxdb,Prometheus,Grafana三个工具。
若直接使用搭建好的服务器,请登陆101节点,启动三个服务
Influxdb:
service influxdb start
Prometheus:
systemctl start prometheus.service
Grafana:
systemctl start grafana-server.service
一、Ceph文件系统指标监控
解决方案:Prometheus+ceph_exporter+Grafana
服务器需求:ceph_exporter安装在ceph服务器上
Prometheus和Grafana安装在一个独立服务器(pve)上
1、ceph_export搭建(在任意一台ceph_monitor上搭建)
(1)下载ceph_exporter
·Wget http://static.zybuluo.com/zphj1987/jiwx305b8q1hwc5uulo0z7ft/ceph_exporter-2.0.0-1.x86_64.rpm
(2)安装
rpm -qpl ceph_exporter-2.0.0-1.x86_64.rpm
rpm -ivh ceph_exporter-2.0.0-1.x86_64.rpm
(3)启动
/usr/bin/ceph_exporter &
2、Prometheus搭建(安装在独立服务器中)
(1)下载安装
wget http://static.zybuluo.com/zphj1987/jiwx305b8q1hwc5uulo0z7ft/ceph_exporter-2.0.0-1.x86_64.rpm`
wget https://github.com/prometheus/prometheus/releases/download/v2.0.0/prometheus-2.0.0.linux-amd64.tar.gz
tar zxvf prometheus-2.0.0.linux-amd64.tar.gz
cd prometheus-2.0.0.li