Skip to content
This repository has been archived by the owner on Dec 2, 2018. It is now read-only.

Add datadog tags. #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extra/run-dogstatsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ else
exit 1
fi

if [[ $DATADOG_TAGS ]]; then
sed -i -e "s/^.*tags:.*$/tags: ${DATADOG_TAGS}/" /app/.apt/opt/datadog-agent/agent/datadog.conf
fi

if [[ $HEROKU_APP_NAME ]]; then
sed -i -e "s/^.*hostname:.*$/hostname: ${HEROKU_APP_NAME}/" /app/.apt/opt/datadog-agent/agent/datadog.conf
else
Expand Down