【ceph监控】Prometheus+Grafana+exporter

背景:

从L版本的ceph后mgr内置自带Prometheus监控模块了,方便了对ceph集群的监控。

操作流程:

一、ceph mgr启动Prometheus监控模块

#开启监控模块

ceph mgr module enable prometheus

#查询已开启模块

ceph mgr module ls | grep enable -A 5

#查看是否起来,一般默认监听端口为9283,http://<MGR>:9283/metrics

netstat -nltp | grep mgr

二、安装Prometheus

Download | Prometheus

怎么安装就不细说了,自行找相关部署文档

这里说一下配置ceph-exporter的config, 即mgr的节点

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "prometheus"

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["localhost:9090"]

  # 新增如下部分采集ceph exporter监控数据,targets指定所有MGR的IP,端口为9283
  - job_name: "Ceph"
    static_configs:
      - targets: ["172.26.2.234:9283","172.26.2.233:9283"]

三、在grafana上添加ceph的json模版,在grafana官网找自己想要的Dashboard模版即可。

 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值