Answers: <p>I'm not sure I understand what you're trying to do, but .. DataDog has a Docker Intergration, which when configured provides a status of every single container on a host. Then, by simply <a href="https://docs.datadoghq.com/api/?lang=python#metrics" rel="nofollow noreferrer">querying</a> the DataDog metrics, you can see if  a particular container is up or not, or how many containers you have available per image, or what's the CPU consumption etc. </p>
  
Answers: CC BY-SA 4.0
Answers: 2019-08-26T12:27:49.730Z
Answers: 2019-08-26T12:27:49.730Z
Answers: 13dimitar
Body: <p>I have a running DataDog-Agent on a Docker server.</p>
  
  <p>Is there a function in the DataDog API to get the stats of every single container, so I could print the stats to an external Webpage?</p>
  
  <p>Or is there an alternative?</p>
  
Tags: <docker><monitoring><api>
Title: How to get Docker Container stats using DataDog API?
UserDisplayName: Deeonix
ThreadText: # How to get Docker Container stats using DataDog API?
  
  (Asked by: username_0 on 2019-08-25)
  
  I have a running DataDog-Agent on a Docker server.
  
  Is there a function in the DataDog API to get the stats of every single container, so I could print the stats to an external Webpage?
  
  Or is there an alternative?
  
  **Tags:** docker, monitoring, api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-26. Score: 1
  
  I'm not sure I understand what you're trying to do, but .. DataDog has a Docker Intergration, which when configured provides a status of every single container on a host. Then, by simply [querying](https://docs.datadoghq.com/api/?lang=python#metrics) the DataDog metrics, you can see if a particular container is up or not, or how many containers you have available per image, or what's the CPU consumption etc.
  
  
  ---
  
  