Centos7下设置ceph 12.2.1 (luminous)dashboard UI监控功能

前言

本文所使用的集群是作者在博客 Centos7下部署ceph 12.2.1 (luminous)集群及RBD使用  中所搭建的集群

dashboard是为了完成对集群状态进行UI监控所开发的功能,是ceph luminous版本的新特性,是基于mgr模块构建

本文参考网址为http://docs.ceph.com/docs/master/mgr/dashboard/

正文

为了使用dashboard功能, 首先应该确保集群已经安装mgr,如果没有安装执行下面操作进行安装

将mgr安装在master节点

$ ceph-deploy create mgr master

开启dashboard模块

$ ceph mgr module enable dashboard

设置监控的ip和端口号

$  ceph config-key set mgr/dashboard/master/192.168.1.100
$  ceph config-key set mgr/dashboard/master/7000

注意:上述命令中指定是master上的mgr进程对192.168.1.100:7000进行监控,可以自定义设置,本文master节点ip为192.168.1.100

设置网址前缀

$ ceph config-key set mgr/dashboard/url_prefix pcxie

注意:经过博主测试,该步可以省略

下面就可以通过ip:端口:网址前缀进行访问

在浏览器中输入http://192.168.1.1000:7000/pcxie获得返回页面

注意:貌似只有节点能够翻墙,才能成功加载页面的内容

原文地址:https://www.cnblogs.com/pcxie/p/7985615.html