@@ -20,6 +20,22 @@ init_config:
2020 tls_cacert: <%= @tls_cacert %>
2121 tls_verify: <%= @tls_verify %>
2222
23+ # Initialization retries
24+ #
25+ # if the agent is expected to start before Docker,
26+ # use these settings to configure the retry policy.
27+
28+ # init_retry_interval defines how long (in seconds) the docker client
29+ # will wait before retrying initialization.
30+ # Defaults to 0.
31+ #
32+ init_retry_interval: <%= @init_retry_interval %>
33+
34+ # init_retries configures how many retries are made before failing permanently.
35+ # Defaults to 0.
36+ #
37+ init_retries: <%= @init_retries %>
38+
2339instances:
2440 - ## Daemon and system configuration
2541 ##
@@ -37,6 +53,11 @@ instances:
3753 #
3854 collect_events: <%= @collect_events %>
3955
56+ # By default we do not collect events with a status ['top', 'exec_start', 'exec_create'].
57+ # Here can be added additional statuses to be filtered.
58+ # List of available statuses can be found here https://docs.docker.com/engine/reference/commandline/events/#object-types
59+ filtered_event_types: [<%= @filtered_event_types && !@filtered_event_types.empty? ? '"' + @filtered_event_types.reject(&:empty?).join('", "') + '"' : nil %> ]
60+
4061 # Collect disk usage per container with docker.container.size_rw and
4162 # docker.container.size_rootfs metrics.
4263 # Warning: This might take time for Docker daemon to generate,
@@ -45,6 +66,34 @@ instances:
4566 #
4667 collect_container_size: <%= @collect_container_size %>
4768
69+ # Do you use custom cgroups for this particular instance?
70+ # Note: enabling this option modifies the way in which we inspect the containers and causes
71+ # some overhead - if you run a high volume of containers we may timeout.
72+ #
73+ custom_cgroups: <%= @custom_cgroups %>
74+
75+ # Report docker container healthcheck events as service checks
76+ # Note: enabling this option modifies the way in which we inspect the containers and causes
77+ # some overhead - if you run a high volume of containers we may timeout.
78+ # Container Healthchecks are available starting with docker 1.12, enabling with older
79+ # versions will result in an UNKNOWN state for the service check.
80+ #
81+ # You must whitelist the containers you wish to submit health service checks for.
82+ # Use the same mechanism as the tagging system (see Tag:performance_tags section).
83+ # Example: ["docker_image:tomcat", "container_name:web_front_nginx"]
84+ #
85+ health_service_check_whitelist: [<%= @health_service_check_whitelist && !@health_service_check_whitelist.empty? ? '"' + @health_service_check_whitelist.reject(&:empty?).join('", "') + '"' : nil %> ]
86+
87+ # Collect the container count tagged by state (running, paused, exited, dead)
88+ # Defaults to false.
89+ #
90+ collect_container_count: <%= @collect_container_count %>
91+
92+ # Collect the volume count for attached and dangling volumes.
93+ # Defaults to false.
94+ #
95+ collect_volume_count: <%= @collect_volume_count %>
96+
4897 # Collect images stats
4998 # Number of available active images and intermediate images as gauges.
5099 # Defaults to false.
@@ -58,6 +107,20 @@ instances:
58107 #
59108 collect_image_size: <%= @collect_image_size %>
60109
110+ # Collect disk metrics (total, used, free) through the docker info command for data and metadata.
111+ # This is useful when these values can't be obtained by the disk check.
112+ # Example: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
113+ # Note that it only works when the storage driver is devicemapper.
114+ # Explanation of these metrics can be found here:
115+ # https://github.com/docker/docker/blob/v1.11.1/daemon/graphdriver/devmapper/README.md
116+ # Defaults to false.
117+ #
118+ collect_disk_stats: <%= @collect_disk_stats %>
119+
120+ # Collect containers exit codes and send service checks critical when exit code is not 0
121+ # Defaults to false.
122+ #
123+ collect_exit_codes: <%= @collect_exit_codes %>
61124
62125 # Exclude containers based on their tags
63126 # An excluded container will be completely ignored. The rule is a regex on the tags.
@@ -113,3 +176,8 @@ instances:
113176 # Default to None
114177 # Example:
115178 collect_labels_as_tags: [<%= @collect_labels_as_tags && !@collect_labels_as_tags.empty? ? '"' + @collect_labels_as_tags.reject(&:empty?).join('", "') + '"' : nil %> ]
179+
180+ # List of docker event attributes to add as tags of the datadog events
181+ # Defaults to None.
182+ #
183+ event_attributes_as_tags: [<%= @event_attributes_as_tags && !@event_attributes_as_tags.empty? ? '"' + @event_attributes_as_tags.reject(&:empty?).join('", "') + '"' : nil %> ]
0 commit comments