轻量级前端框架在提升开发效率与用户体验中的重要作用
1001
2022-09-27
Ceph 普罗米修斯和granfan监控ceph
ceph mgr prometheus插件配置
在ceph集群里面将prometheus组件打开
[root@cephnode01 ~]# ceph mgr module enable prometheus检查端口[root@cephnode03 ~]# netstat -nltp | grep mgr tcp 0 0 192.168.179.104:7000 0.0.0.0:* LISTEN 952/ceph-mgr tcp 0 0 0.0.0.0:6810 0.0.0.0:* LISTEN 952/ceph-mgr tcp 0 0 0.0.0.0:6811 0.0.0.0:* LISTEN 952/ceph-mgr tcp6 0 0 :::9283 :::* LISTEN 952/ceph-mgr [root@cephnode03 ~]# curl 127.0.0.1:9283/metrics ceph_pg_forced_recovery{pool_id="1"} 0.0ceph_pg_forced_recovery{pool_id="2"} 0.0# HELP ceph_osd_recovery_bytes recovery bytes# TYPE ceph_osd_recovery_bytes counterceph_osd_recovery_bytes{ceph_daemon="osd.1"} 0.0ceph_osd_recovery_bytes{ceph_daemon="osd.2"} 0.0ceph_osd_recovery_bytes{ceph_daemon="osd.0"} 0.0# HELP ceph_prioritycache:inc_pri4_bytes bytes allocated to pri4# TYPE ceph_prioritycache:inc_pri4_bytes gaugeceph_prioritycache:inc_pri4_bytes{ceph_daemon="mon.cephnode02"} 0.0ceph_prioritycache:inc_pri4_bytes{ceph_daemon="mon.cephnode01"} 0.0ceph_prioritycache:inc_pri4_bytes{ceph_daemon="mon.cephnode03"} 0.0
配置promethus
[root@localhost prometheus]# vim prometheus.yml static_configs: - targets: ['localhost:9090'] - job_name: 'ceph_cluster' static_configs: - targets: ['192.168.179.104:9283'] labels: instance: ceph[root@localhost prometheus]# ./promtool check config prometheus.yml Checking prometheus.yml SUCCESS: 1 rule files foundChecking rules/node.yml SUCCESS: 1 rules found[root@localhost prometheus]# systemctl restart prometheus
配置grafana
1、浏览器登录 grafana 管理界面
4、搜索ceph的dashboard
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~