作者:尹正傑
版權宣告:原創作品,謝絕轉載!否則將追究法律責任。
目錄
- 一.ceph叢集的監控
- 1.檢視叢集的架構
- 2.檢視Prometheus的WEbUI
- 3.檢視grafana的WebUI
- 4.檢視node-exporter
- 5.檢視alertmanger
- 二.自實現Prometheus監控參考連結
一.ceph叢集的監控
1.檢視叢集的架構
[root@ceph141 ~]# ceph orch ls
NAME PORTS RUNNING REFRESHED AGE PLACEMENT
alertmanager ?:9093,9094 1/1 10m ago 47h count:1
ceph-exporter 3/3 10m ago 47h *
crash 3/3 10m ago 47h *
grafana ?:3000 1/1 10m ago 47h count:1
mds.oldboyedu-cephfs 2/2 10m ago 20h count:2
mgr 2/2 10m ago 47h count:2
mon 3/5 10m ago 47h count:5
node-exporter ?:9100 3/3 10m ago 47h *
osd 7 10m ago - <unmanaged>
prometheus ?:9095 1/1 10m ago 47h count:1
rgw.yinzhengjie ?:80 1/1 10m ago 104m ceph142
[root@ceph141 ~]#
溫馨提示:
不難發現,有grafana,alertmanager,ceph-exporter,Prometheus等元件預設都是安裝好的,說白了,無需手動安裝。
所以,基於cephadm方式部署的環境,可以直接使用Prometheus監控。若使用的ceph-deploy方式部署,則需要手動配置各元件。
2.檢視Prometheus的WEbUI
http://10.0.0.141:9095/targets?search=
3.檢視grafana的WebUI
https://10.0.0.141:3000/
4.檢視node-exporter
http://10.0.0.141:9100/metrics
5.檢視alertmanger
http://10.0.0.141:9093/#/status
二.自實現Prometheus監控參考連結
推薦閱讀:
https://github.com/digitalocean/ceph_exporter
https://github.com/blemmenes/radosgw_usage_exporter