Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 619 Bytes

Prometheus监控Ceph.md

File metadata and controls

41 lines (29 loc) · 619 Bytes

Prometheus 监控 Ceph

新版本的 Ceph 原生支持 Prometheus。

开启 :

$ sudo ceph mgr module enable prometheus --force

查看端口:

$ sudo netstat -nltp | grep mgr
tcp6       0      0 :::9283                 :::*                    LISTEN      51889/ceph-mgr

测试访问:

$ curl 127.0.0.1:9283/metrics

添加 prometheus 配置:

  - job_name: 'ceph'
    honor_labels: true
    static_configs:
     - targets:
        - drift-1:9283
       labels:
         instance: ceph

重启 Prometheus :

$ sudo systemctl restart prometheus