Skip to content

Commit

Permalink
Add statsd-datadog agent v6 script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Schneider committed Nov 1, 2018
1 parent d98a876 commit a7ba9d9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/statsd-datadog.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
#!/usr/bin/env bash

datadog-agent start
if [ $# -eq 0 ]
then
echo "Supply a datadog API key as an argument to this script"
fi

docker run --name dd-agent \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc/:/host/proc/:ro \
-v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
-e DD_API_KEY=$1 \
-e DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true \
-p 8125:8125/udp \
datadog/agent:latest

0 comments on commit a7ba9d9

Please sign in to comment.