Public Repository

Last pushed: 3 years ago
Short Description
DataDog agent
Full Description

Datadog Agent Dockerfile

This repository is meant to build the base image for a Datadog Agent container. You will have to use the resulting image to configure and run the Agent.

This container is build from with added support for network metrics. Thanks Dennis!

For more information, see:

Quick Start

The default image is ready-to-go. You just need to set your hostname and API_KEY in the environment.

docker run -d --name dd-agent -h `hostname` -v /var/run/docker.sock:/var/run/docker.sock -v /proc/mounts:/host/proc/mounts:ro -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro -e API_KEY={your_api_key_here} datadog/docker-dd-agent

Service file (fleet)

Description=DataDog agent service

ExecStartPre=-/usr/bin/docker rm -f -v dd-agent
ExecStartPre=-/usr/bin/docker pull egbertp/dd-agent
ExecStart=/bin/sh -c "/usr/bin/docker run --privileged --net=host --name dd-agent -v /var/run/docker.sock:/var/run/docker.sock -v /proc/mounts:/host/proc/mounts:ro -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro -e API_KEY=`etcdctl -C http://${COREOS_PRIVATE_IPV4}:4001 --no-sync get /ddapikey` egbertp/dd-agent"
ExecStop=/usr/bin/docker kill dd-agent


Set the DataDog API key into etcd

etcdctl set /ddapikey "<YOUR DATADOG API KEY>"
Docker Pull Command