Skip to content

Instantly share code, notes, and snippets.

@pierot
Created October 31, 2019 09:50
Show Gist options
  • Save pierot/5e5436149d2a5e208ad3d6e01867563d to your computer and use it in GitHub Desktop.
Save pierot/5e5436149d2a5e208ad3d6e01867563d to your computer and use it in GitHub Desktop.
datadog docker
- name: Datadog installation production
hosts: prod
become: yes
roles:
- datadog
vars:
datadog_api_key: "xxxx"
datadog_site: "datadoghq.eu"
datadog_agent_version: "1:6.13.0-1"
datadog_checks:
docker:
init_config:
instances:
- url: "unix://var/run/docker.sock"
file_system_blacklist:
- tmpfs
- none
- shm
- nsfs
- netns
- binfmt_misc
- autofs
- tmpfs$
- none$
- shm$
- nsfs$
- netns$
- binfmt_misc$
- autofs$
- .*tmpfs
- .*none
- .*shm
- .*nsfs
- .*netns
- .*binfmt_misc
- .*autofs
- .*tmpfs.*
- .*none.*
- .*shm.*
- .*nsfs.*
- .*netns.*
- .*binfmt_misc.*
- .*autofs.*
mount_point_blacklist:
- /var/lib/docker/(containers|overlay2)/
- /run/docker/netns/
- /sys/kernel/debug/
- /run/user/1000/
# excluded_mountpoint_re: (/var/lib/docker/.*|/run/docker/netns/.*)
tags:
- datadog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment