Skip to content

Commit

Permalink
Fixed datadog
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisassad committed Oct 16, 2024
1 parent 8aef5b5 commit fe2615c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.datadog
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ RUN apt-get update && apt-get -y install --reinstall datadog-agent
# Expose DogStatsD and trace-agent ports
EXPOSE 8125/udp 8126/tcp

RUN mkdir -p /var/run/datadog

COPY datadog-config/ /etc/datadog-agent/
4 changes: 2 additions & 2 deletions scripts/datadog-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

if [ "$APP_ENV" = "production" ]; then
if [ "$APP_ENV" = "production" ] || [ "$APP_ENV" = "frick" ]; then
datadog-agent run &
/opt/datadog-agent/embedded/bin/trace-agent --config=/etc/datadog-agent/datadog.yaml &
/opt/datadog-agent/embedded/bin/process-agent --config=/etc/datadog-agent/datadog.yaml &
Expand All @@ -12,4 +12,4 @@ if [ -z "$1" ]; then
exit 1
fi

exec "$@"
exec "$@"

0 comments on commit fe2615c

Please sign in to comment.