Difference between revisions of "Datadog agent compose example"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
*  https://docs.datadoghq.com/containers/guide/compose-and-the-datadog-agent/
 
*  https://docs.datadoghq.com/containers/guide/compose-and-the-datadog-agent/
  
  version: '3'
+
  {{dd example}}
services:
 
  redis:
 
    image: redis
 
  datadog:
 
    build: datadog
 
    pid: host
 
    environment:
 
      - DD_API_KEY=${DD_API_KEY}
 
      - DD_SITE=datadoghq.com
 
    volumes:
 
      - /var/run/docker.sock:/var/run/docker.sock
 
      - /proc/:/host/proc/:ro
 
      - /sys/fs/cgroup:/host/sys/fs/cgroup:ro
 
  
  
 +
== Related ==
 +
* [[Docker compose examples]]
  
  
{{dd agent}}
+
== See also ==
 +
* {{dd agent}}
 +
 
 +
[[Category:Datadog agent]]

Latest revision as of 09:17, 28 August 2024

 version: '3'
services:
  redis:
    image: redis
  datadog:
    build: datadog
    pid: host
    environment:
     - DD_API_KEY=${DD_API_KEY}
     - DD_SITE=datadoghq.com
    volumes:
     - /var/run/docker.sock:/var/run/docker.sock
     - /proc/:/host/proc/:ro
     - /sys/fs/cgroup:/host/sys/fs/cgroup:ro


Related[edit]


See also[edit]

Advertising: