Este conteúdo não está disponível no idioma selecionado.

Chapter 3. Configuring the Datadog Agent for Ceph


After installing the Datadog agent, configure the Datadog agent to report Ceph metrics to Datadog.

  1. Navigate to the Datadog Agent configuration directory.

    # cd /etc/dd-agent/conf.d
  2. Create a ceph.yaml file from the ceph.yml.sample file.

    # cp ceph.yaml.example ceph.yaml
  3. Modify the ceph.yaml file.

    # vim ceph.yaml

    It will look like this:

    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

    Uncomment the -tags, -name, ceph_command and ceph_cluster lines. The default values for ceph_command and ceph_cluster are /usr/bin/ceph and ceph respectively. For RHEL 7, uncomment use_sudo: True; however, this step is optional for Ubuntu, since Ubuntu disables the root user and gives the initial admin user root permissions.

    When complete, it will look like this:

    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. For RHEL 7, modify the sudoers file.

    # visudo

    Add the following line.

    dd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph
    Note

    For Ubuntu, if ceph.yml enables use_sudo: True, perform this step, too.

  5. Enable the Datadog agent so that it will restart if the Ceph host reboots.

    # systemctl enable datadog-agent
  6. Finally, restart the Datadog agent.
# systemctl status datadog-agent
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2026 Red Hat
Voltar ao topo