提前安裝好prometheus也榄,grafana服務
Ceph Manager內置了眾多模塊,包括prometheus模塊司志,?于直接輸出Prometheus的指標數(shù)據(jù)
#開啟ceph內置prometheus模塊
$ ceph mgr module enable prometheus
#增加監(jiān)控ceph文件配置
$ vim /etc/ceph/prometheus.yml
- job_name: 'ceph-exporters'
static_configs:
- targets:
- 192.168.11.109:9128
#重啟prometheus服務
$ systemctl restart prometheus
查看是否抓取到ceph數(shù)據(jù)
image.png
配置Grafana Dashboard
image.png
導入模板 2842
效果圖讓如下
image.png