Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created July 14, 2014 22:27
Show Gist options
  • Save kelseyhightower/55aa36f9417c9c4f0697 to your computer and use it in GitHub Desktop.
Save kelseyhightower/55aa36f9417c9c4f0697 to your computer and use it in GitHub Desktop.
coreos:
units:
- name: dd-agent.service
command: start
content: |
[Unit]
Description=Datadog Agent
Author=CoreOS
After=docker.service
[Service]
Restart=always
ExecStart=docker run --privileged --name ddagent \
-h `hostname` -e API_KEY=`etcdctl get ddapikey` datadog/docker-dd-agent
ExecStop=/usr/bin/docker stop -t 2 ddagent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment