第 2 章 安装 Datadog 进行 Ceph 集成


安装 Datadog 代理后,配置 Datadog 代理,以向 Datadog 报告 Ceph 指标。

先决条件

  • Ceph 监控节点的根级别访问权限。
  • 适当的 Ceph 密钥提供对红帽 Ceph 存储集群的访问权限。
  • 互联网访问.

流程

  1. 安装 Ceph 集成。

    1. 登录 Datadog 应用.用户界面将显示在屏幕左侧的导航。
    2. 点 Integrations。
    3. 在搜索字段中输入 ceph,或者滚动以查找 Ceph 集成。用户界面将显示 Ceph 集成 是否可用 或 已安装。
    4. 如果 可用,请单击 按钮进行安装。

      Datadog 集成
  2. 为 Ceph 配置 Datadog 代理

    1. 进入 Datadog Agent 配置目录:

      [root@mon ~]# cd /etc/dd-agent/conf.d
    2. 从 ceph. yml.sample 文件创建 ceph. yaml 文件:

      [root@mon ~]# cp ceph.yaml.example ceph.yaml
    3. 修改 ceph.yaml 文件:

      [root@mon ~]# vim ceph.yaml

      示例

      以下是修改后的 ceph.yaml 文件的示例。

      init_config:
      
      instances:
      #  - tags:
      #    - name:mars_cluster
      #
      #    ceph_cmd: /usr/bin/ceph
      #    ceph_cluster: ceph
      #
      # If your environment requires sudo, please add a line like:
      #          dd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph
      # to your sudoers file, and uncomment the below option.
      #
      #    use_sudo: True

      取消注释 -tags、-name、ceph_command、ceph_cluster 和 use_sudo: True 行。ceph_command 和 ceph_ cluster 的默认值分别为 /usr/bin/ceph 和 ceph。

      完成后,它类似如下:

      init_config:
      
      instances:
        - tags:
          - name:ceph-RHEL
      #
          ceph_cmd: /usr/bin/ceph
          ceph_cluster: ceph
      #
      # If your environment requires sudo, please add a line like:
      #          dd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph
      # to your sudoers file, and uncomment the below option.
      #
          use_sudo: True
    4. 修改 sudoers 文件:

      [root@mon ~]# visudo
    5. 添加以下行:

      dd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph
    6. 启用 Datadog 代理,以便在 Ceph 主机重启时重启它:

      [root@mon ~]# systemctl enable datadog-agent
    7. 重启 Datadog 代理:

      [root@mon ~]# systemctl status datadog-agent
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部