分布式存储系统之Ceph集群启用Dashboard及使用Prometheus监控Ceph( 七 )


部署Grafana展示ceph 指标数据
创建grafana的仓库配置文件
[root@ceph-mgr02 prometheus]# cat /etc/yum.repos.d/grafana.repo[grafana]name=grafanabaseurl=https://mirrors.aliyun.com/grafana/yum/rpmrepo_gpgcheck=0enabled=1gpgcheck=0[root@ceph-mgr02 prometheus]#安装grafana
[root@ceph-mgr02 prometheus]# yum install grafana -y启动grafana
[root@ceph-mgr02 prometheus]# systemctl start grafana-server.service[root@ceph-mgr02 prometheus]# ss -tnlStateRecv-Q Send-QLocal Address:PortPeer Address:PortLISTEN0128172.16.30.75:6800*:*LISTEN0128192.168.0.75:6800*:*LISTEN0128172.16.30.75:6801*:*LISTEN0128192.168.0.75:6801*:*LISTEN0128192.168.0.75:6802*:*LISTEN0128172.16.30.75:6802*:*LISTEN0128192.168.0.75:6803*:*LISTEN0128172.16.30.75:6803*:*LISTEN0128*:22*:*LISTEN0100127.0.0.1:25*:*LISTEN05*:8443*:*LISTEN0128[::]:22[::]:*LISTEN0128[::]:3000[::]:*LISTEN0100[::1]:25[::]:*LISTEN0128[::]:9090[::]:*LISTEN05[::]:9283[::]:*[root@ceph-mgr02 prometheus]#提示:grafana默认监听在tcp的3000端口,如果启动没有报错 , 对应3000端口处于监听 , 说明grafana就启动起来了;
访问grafana所在主机的3000端口配置grafana

分布式存储系统之Ceph集群启用Dashboard及使用Prometheus监控Ceph

文章插图
提示:grafana的默认用户名是admin,密码也是admin;第一进入要求更改密码,当然我这里测试不更改也行;不影响使用;
添加Prometheus数据源
分布式存储系统之Ceph集群启用Dashboard及使用Prometheus监控Ceph

文章插图
提示:这里只需要填写Prometheus server的地址即可;如果Prometheus开启了认证 , 对应认证信息也是需要填写的;
导入Prometheus摸板
分布式存储系统之Ceph集群启用Dashboard及使用Prometheus监控Ceph

文章插图
提示:这个模板是展示Prometheus的一个专用面板,当然我们也可以自己定义展示那些数据;
下载ceph模板:https://grafana.com/grafana/dashboards/7056-ceph-cluster/;
导入ceph模板
分布式存储系统之Ceph集群启用Dashboard及使用Prometheus监控Ceph

文章插图
ok , 基于Prometheus监控ceph的测试就到此为止;
【分布式存储系统之Ceph集群启用Dashboard及使用Prometheus监控Ceph】

推荐阅读