DC/OS 1.12 and later sends metrics via Telegraf, which may be configured to export metrics to Datadog. There is no need to install a metrics plugin, as in DC/OS 1.9, 1.10, and 1.11. This page explains how to add the appropriate configuration to DC/OS.
Prerequisite:
- You must have the DC/OS CLI installed and be logged in as a superuser via the
dcos auth login
command.
Configuring Telegraf to export metrics to Datadog
-
Create a file named
datadog.conf
with the following content:# Transmit all metrics to Datadog [[outputs.datadog]] ## Datadog API key apikey = "my-secret-key" ## Connection timeout # timeout = "5s"
-
Replace the
apikey
value with your Datadog API key. -
On every node in your cluster, do the following tasks:
- Upload the
datadog.conf
file to/var/lib/dcos/telegraf/telegraf.d/datadog.conf
. - Restart the Telegraf process with your new configuration by running
sudo systemctl restart dcos-telegraf
command. - Check the Datadog UI to see the incoming DC/OS metrics.
- Upload the