In order to send stats to DataDog, you will have to install and configure a plugin on every node in your cluster. The plugin reads from the dcos-metrics API and transmits data to the DataDog server. The procedure is similar for all node types.
- A cluster running DC/OS 1.9 or newer
- The DC/OS CLI installed
- A DataDog account (an account can be created free of charge at datadoghq.com)
SSH into every node and become root:
$ dcos node ssh --master-proxy --private-ip=<ip-address>
$ sudo su
Download the plugin and make sure it's executable
$ curl -o /opt/mesosphere/bin/dcos-metrics-datadog -L https://downloads.mesosphere.io/dcos-metrics/plugins/datadog
$ chmod +x /opt/mesosphere/bin/dcos-metrics-datadog
Download the systemd configuration for your plugin
$ curl -o /etc/systemd/system/dcos-metrics-datadog.service -L https://downloads.mesosphere.io/dcos-metrics/plugins/datadog.service
Change the --dcos-role flag to ‘agent’, ‘agent_public' or ‘master'. Change the --datadog-key flag to your DataDog API key.
$ vi /etc/systemd/system/dcos-metrics-datadog.service
Load the new configuration and start the plugin
$ systemctl daemon-reload
$ systemctl start dcos-metrics-datadog.service