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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值