Chapter 3. Configuring the Datadog Agent for Ceph
After installing the Datadog agent, configure the Datadog agent to report Ceph metrics to Datadog.
Navigate to the Datadog Agent configuration directory.
cd /etc/dd-agent/conf.d
# cd /etc/dd-agent/conf.dCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a
ceph.yamlfile from theceph.yml.samplefile.cp ceph.yaml.example ceph.yaml
# cp ceph.yaml.example ceph.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Modify the
ceph.yamlfile.vim ceph.yaml
# vim ceph.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow It will look like this:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For RHEL 7, modify the sudoers file.
visudo
# visudoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following line.
dd-agent ALL=(ALL) NOPASSWD:/usr/bin/ceph
dd-agent ALL=(ALL) NOPASSWD:/usr/bin/cephCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteFor Ubuntu, if
ceph.ymlenablesuse_sudo: True, perform this step, too.Enable the Datadog agent so that it will restart if the Ceph host reboots.
systemctl enable datadog-agent
# systemctl enable datadog-agentCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Finally, restart the Datadog agent.
systemctl status datadog-agent
# systemctl status datadog-agent