User Tools

Site Tools


devops:monitoring:datadog:docker_agent

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
devops:monitoring:datadog:docker_agent [2025/02/14 14:22] – created 85.219.17.206devops:monitoring:datadog:docker_agent [2025/02/14 14:24] (current) 85.219.17.206
Line 22: Line 22:
  
 - **Step 1: Create a Datadog Agent container**: - **Step 1: Create a Datadog Agent container**:
-  Run the following Docker command to start the Datadog Agent container: +Run the following Docker command to start the Datadog Agent container: 
-  ```bash+<code:bash>
   docker run -d --name datadog-agent \   docker run -d --name datadog-agent \
     -e DD_API_KEY=<YOUR_DATADOG_API_KEY> \     -e DD_API_KEY=<YOUR_DATADOG_API_KEY> \
Line 34: Line 34:
     --restart=unless-stopped \     --restart=unless-stopped \
     datadog/agent:latest     datadog/agent:latest
-     +</code>     
-    Replace <YOUR_DATADOG_API_KEY> with your Datadog API key.+Replace <YOUR_DATADOG_API_KEY> with your Datadog API key.
  
-    The -v /var/run/docker.sock:/var/run/docker.sock option allows the agent to monitor Docker containers by interacting with the Docker daemon.+The -v /var/run/docker.sock:/var/run/docker.sock option allows the agent to monitor Docker containers by interacting with the Docker daemon.
  
-    Step 2: Verify the Agent: After starting the agent, check that it’s running properly by looking for the "Docker" section in the Datadog dashboard. If you’ve configured the agent correctly, you should start seeing metrics from your Docker environment.+Step 2: Verify the Agent: After starting the agent, check that it’s running properly by looking for the "Docker" section in the Datadog dashboard. If you’ve configured the agent correctly, you should start seeing metrics from your Docker environment.
  
     Step 3: Monitor Containers and Hosts: Once the Docker Agent is deployed, Datadog will automatically collect metrics related to the Docker containers, including:     Step 3: Monitor Containers and Hosts: Once the Docker Agent is deployed, Datadog will automatically collect metrics related to the Docker containers, including:
devops/monitoring/datadog/docker_agent.1739542971.txt.gz · Last modified: 2025/02/14 14:22 by 85.219.17.206