Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run dd-agent inside same docker container as my application? #3921

Open
AttilaTheFun opened this issue Dec 7, 2021 · 2 comments

Comments

@AttilaTheFun
Copy link

Hi I was wondering if it's possible to run the Datadog Agent in the same container as my Go application. I'm currently able to run Datadog in a separate container, but this requires some kind of container orchestration tool like Docker Compose or Amazon ECS.

Ideally I'd like to be able to package my whole app in a single container which makes it much easier to experiment with different hosting providers and interesting Serverless offerings like Cloud Run.

Is this currently possible? Alternately, do you have any suggestions for how to deploy the Datadog Agent to work with single-container applications? Thanks!

@djmitche
Copy link
Contributor

It is possible, but has some downsides.

  • The agent container typically needs enhanced access to the host (the docker socket, among other things), which may be more privilege than you want to give to your application.
  • You would need to build the agent into your container, and ensure any dependencies for the agent are in place.
  • For a serverless execution, the 100's of ms that the serverless task runs is probably too short to start, run, and stop an agent.

I'd encourage you to contact DD support about this, as they may be able to recommend solutions for your particular case.

@ai-rohit
Copy link

ai-rohit commented Jan 4, 2024

Hi I was wondering if it's possible to run the Datadog Agent in the same container as my Go application. I'm currently able to run Datadog in a separate container, but this requires some kind of container orchestration tool like Docker Compose or Amazon ECS.

Ideally I'd like to be able to package my whole app in a single container which makes it much easier to experiment with different hosting providers and interesting Serverless offerings like Cloud Run.

Is this currently possible? Alternately, do you have any suggestions for how to deploy the Datadog Agent to work with single-container applications? Thanks!

Any updated on this @AttilaTheFun ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants