DC/OS™ 1.12 and later sends metrics using 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 logincommand.
Configuring Telegraf to export metrics to Datadog
-
Create a file named
datadog.confwith the following content:# Transmit all metrics to Datadog [[outputs.datadog]] ## Datadog API key apikey = "my-secret-key" ## Connection timeout # timeout = "5s" -
Replace the
apikeyvalue with your Datadog API key. -
On every node in your cluster, do the following tasks:
- Upload the
datadog.conffile to/var/lib/dcos/telegraf/telegraf.d/datadog.conf. - Restart the Telegraf process with your new configuration by running
sudo systemctl restart dcos-telegrafcommand. - Check the Datadog UI to see the incoming DC/OS metrics.
- Upload the
DC/OS Documentation