一、上传grafana.tar并解压(grafana.tar在108服务器)
$:tar -xvf grafana.tar
$:cd grafana
二、安装ceph_exporter
$:yum -y install net-tools //安装net-tools包
$:rpm -ivh ceph_exporter-2.0.0-1.x86_64.rpm //安装ceph_exporter
$:systemctl start ceph_exporter //启动ceph_exporter
$:systemctl enable ceph_exporter //加入开机自启动
$:netstat -antlp |grep 9128 //查看开放的端口号
三、安装prometheus
$: rpm -ivh prometheus-2.3.2-1.x86_64.rpm ////安装prometheus
$:systemctl start prometheus
$:systemctl enable prometheus
$:netstat -antlp |grep 9090
浏览器访问:http://10.2.151.230:9090
四、安装grafanna
$: rpm -ivh grafana-5.2.1-1.x86_64.rpm //安装grafanna
$:systemctl start grafana-server
$::systemctl enable grafana-server
$:netstat -antlp |grep 3000
浏览器登录:http://10.2.151.230:3000
初始密码为:admin;admin
登录后会让你修改一次密码。
添加数据源
点击:
点击add data source
点击save保存
点击+号,导入模板,输入973直接下载
在Grafana.com Dashboad输入973下载模板
查看状态