Skip to content

Instantly share code, notes, and snippets.

@LotharSee
Last active March 13, 2019 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LotharSee/d07cd03162da1c30443f to your computer and use it in GitHub Desktop.
Save LotharSee/d07cd03162da1c30443f to your computer and use it in GitHub Desktop.
DogStatsD Dockerfile
FROM datadog/docker-dogstatsd
# Set your API key
RUN sed -i -e"s/^.*api_key:.*$/api_key: EXAMPLE_API_KEY/" /etc/dd-agent/datadog.conf
@lobster1234
Copy link

Apparently environment variable works as well, so custom image may not be needed.

bash-3.2$ docker run datadog/docker-dogstatsd
You must set API_KEY environment variable to run the DogStatsD container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment