ceph集群监控

Ceph Dashboard

ceph-dashboard官方介绍:https://docs.ceph.com/en/latest/mgr/dashboard/

Ceph Dashboard是一个内置的ceph管理和监控的web应用程序,通过ceph dashboard可以监控和管理ceph集群中的资源。ceph dashboard是作为ceph-mgr中的一个模块实现的。

启用dashboard插件

在所有mgr节点安装依赖包

apt-cache madison ceph-mgr-dashboard
apt -y install ceph-mgr-dashboard

启用dashboard模块

#在主mgr节点执行
ceph-mgr module enable dashboard

ceph-mgr module ls	#列出所有的模块

在这里插入图片描述

查看dashboard的访问地址

ceph mgr services

在这里插入图片描述

浏览器访问验证

集群概览信息
在这里插入图片描述

主机信息
在这里插入图片描述

monitor节点信息
在这里插入图片描述
osd状态
在这里插入图片描述

配置管理
在这里插入图片描述

dashboard启用ssl

https://docs.ceph.com/en/quincy/mgr/dashboard/#ssl-tls-support

ceph dashboard启用ssl时可以通过ceph命令快速签发证书,也可以使用自签证书。

ceph dashboard create-self-signed-cert	#通过ceph命令快速签发证书
ceph config set mgr mgr/dashboard/ssl true	#启用ssl

ceph mgr module disable dashboard	#禁用再启用dashboard模块使ssl配置生效
ceph mgr module enable dashboard

在这里插入图片描述

访问测试
在这里插入图片描述

ceph dashboard的更多配置可以参考官方文档:https://docs.ceph.com/en/quincy/mgr/dashboard/

Promethues监控ceph

ceph mgr内部包含了prometheus模块,可以通过每个节点的9283端口向prometheus提供监控数据。https://docs.ceph.com/en/quincy/mgr/prometheus/

启用prometheus模块
ceph mgr module enable prometheus
ceph mgr module ls	#查看启用的模块

在这里插入图片描述

在mgr节点验证端口监听
在这里插入图片描述

访问mgr节点,验证metrics数据
在这里插入图片描述

配置prometheus采集数据

编辑prometheus配置文件,添加job配置

vim /usr/local/prometheus/prometheus.yml
###################
  - job_name: "ceph"
    static_configs:
      - targets: ["192.168.211.23:9283", "192.168.211.24:9283", "192.168.211.25:9283"]
###################

systemctl restart prometheus-server.service

验证target状态
在这里插入图片描述

grafana数据展示

导入模板,ceph集群状态模板:https://grafana.com/grafana/dashboards/2842-ceph-cluster/

在这里插入图片描述

集群模板2:https://grafana.com/grafana/dashboards/17600-ceph-rgw-new/
在这里插入图片描述

ceph osd模板:https://grafana.com/grafana/dashboards/5336-ceph-osd-single/

在这里插入图片描述

osd-模板2:https://grafana.com/grafana/dashboards/9551-ceph-osd/
在这里插入图片描述

ceph pool模板:https://grafana.com/grafana/dashboards/5342-ceph-pools/

在这里插入图片描述

cephfs模板:https://grafana.com/grafana/dashboards/9340-ceph-cephfs/

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ceph是一个可靠的、数据自动重均衡、自动恢复的SDS(软件定义存储)分布式存储系统,功能主要有三大块:块存储、对象存储、文件系统。Ceph不但是提供了统一存储,并且同时还充分利用了客户端的计算能力,在存储每一个数据时,都会通过计算得出该数据存储的位置,尽量将数据分布均衡,同时由于Ceph的设计,采用了CRUSH算法、HASH环等方法,使得它不存在传统的单点故障的问题,且随着规模的扩大性能并不会受到影响。不管是私有云还是公有云,随着云架构的发展,Ceph 成为了OpenStack、Proxmox标配的后端存储,不光如此,就连目前最火的容器编排 Kubernetes 持久存储也都支持 Ceph ,让 Ceph 成为当前主流的存储系统,而对 Ceph 存储的学习也就变的刻不容缓。 该课程属于比较基础的 Ceph 存储课程,旨在让大家能快速上手对 Ceph 集群的部署以及操作,主要讲解以下几个方面: 1.     架构的介绍2.     集群的多种部署方式3.     块存储部署,客户端使用及快照、克隆和镜像4.     对象存储的部署及简单使用5.     Ceph FS 文件系统的部署、客户端使用及导出为NFS6.     集群的操作和管理,包括服务,集群扩展,缩减和集群维护7.     Ceph 基础知识的介绍,包括集群map,PG和身份验证8.     Ceph 集群监控

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值