prometheus监控ceph集群

本文详细描述了如何在Ceph集群中启用和配置Prometheus监控,包括在cephmgr端安装Cherrypy模块、设置prometheus.yml文件、调整端口以及在Grafana中导入监控模板的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

prometheus监控ceph集群

1.ceph mgr端配置

1.1.ceph mgr 启动prometheus模块
 ceph mgr module enable prometheus

执行报错:

1.2下载 cherrypy模块
 
pip3 install cherrypy -i https://mirrors.aliyun.com/pypi/simple
1.3启动cherrypy模块:
 ceph mgr module enable cherrypy
  #执行报错使用--force
  #ceph mgr module enable cherrypy --force
1.4启动prometheus模块
 ceph mgr module enable prometheus
  #执行报错使用--force
  #ceph mgr module enable prometheus --force
1.5.检查端口
 ss -lnt 
 #默认监控模块端口号是9283

1.6 web 界面查看是否有数据

http://10.0.0.151:9283/metrics

2.prometheus配置监控ceph

2.1修改prometheus.yml配置文件
 #监控ceph集群
   - job_name: 'ceph'
     static_configs:
       - targets: ["10.0.0.151:9283"]
2.2 加载配置文件
 curl -X POST http://10.0.0.31:9090/-/reload

2.3 访问Prometheus 9090端口检查是否监控到ceph集群

2.4 配置grafana导入监控模板

模版ID:917

2.5 查看Dashboards

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值