Datadog

You can add operational visibility to your Convox environments with Datadog.

Sign up for Datadog

If you don’t have an account already, sign up for Datadog. You’ll need an API key that lets you send data from Convox to the Datadog service.

Deploy the Datadog Agent

You can deploy the datadog agent as a Convox app with a very simple convox.yml manifest:

services:
  agent:
    agent:
      ports:
        - 8125/udp
        - 8126/tcp
    image: datadog/agent:latest
    environment:
      - DD_API_KEY
      - DD_APM_ENABLED=true
    privileged: true
    scale:
      cpu: 128
      memory: 128
    volumes:
      - /cgroup/:/host/sys/fs/cgroup/
      - /proc/:/host/proc/
      - /var/run/docker.sock:/var/run/docker.sock

Application Metrics

To forward application metrics to Datadog you’ll need the host IP address. You can get it with:

$ ip route list match 0/0 | awk '{print $3}'