Skip to content

Commit

Permalink
Fix missing dogstatsd.yaml when running DogStatsD (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
NouemanKHAL authored Aug 23, 2023
1 parent 82b7703 commit 862f11f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/run-datadog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ start_datadog() {
if [ "${DD_LOGS_ENABLED}" = "true" ] && [ "${DD_LOGS_VALID_ENDPOINT}" = "false" ]; then
echo "Log endpoint not valid, not starting agent"
else
export DD_LOG_FILE=agent.log
export DD_LOG_FILE="${DATADOG_DIR}/agent.log"
export DD_IOT_HOST=false

echo "Starting Datadog agent"
Expand All @@ -163,11 +163,11 @@ start_datadog() {
fi
else
echo "Starting dogstatsd agent"
export DD_LOG_FILE=dogstatsd.log
export DD_LOG_FILE="${DATADOG_DIR}/dogstatsd.log"
if [ "${SUPPRESS_DD_AGENT_OUTPUT}" = "true" ]; then
env -u DD_TAGS ./dogstatsd start --cfgpath dist/ > /dev/null 2>&1 &
env -u DD_TAGS ./dogstatsd start --cfgpath dist/datadog.yaml > /dev/null 2>&1 &
else
env -u DD_TAGS ./dogstatsd start --cfgpath dist/ &
env -u DD_TAGS ./dogstatsd start --cfgpath dist/datadog.yaml &
fi
echo $! > run/dogstatsd.pid
fi
Expand Down

0 comments on commit 862f11f

Please sign in to comment.