[handler] add the ability to blacklist host tags
Ref: datadog/chef-handler-datadog#85
MODIFY
attributes/default.rb
attributes/default.rb
@@ -59,6 +59,13 @@ default['datadog']['create_dd_check_tags'] = nil
# Collect EC2 tags, set to 'yes' to collect
default['datadog']['collect_ec2_tags'] = nil
+# Set this regex to exclude some Chef node tags from the host tags that the datadog handler sends to Datadog
+# https://github.com/DataDog/chef-handler-datadog/issues/85
+# This means that all the metrics and service checks coming from the
+# host/Agent would also stop being tagged with these excluded tags.
+# EX: 'app_.*' allows all tags except those which look like app_.*
+default['datadog']['tags_blacklist_regex'] = nil
+
# Autorestart agent
default['datadog']['autorestart'] = false

MODIFY
recipes/dd-handler.rb
recipes/dd-handler.rb
@@ -60,7 +60,8 @@ handler_config = {
:use_ec2_instance_id => node['datadog']['use_ec2_instance_id'],
:tag_prefix => node['datadog']['tag_prefix'],
:url => node['datadog']['url'],
- :extra_endpoints => extra_endpoints
+ :extra_endpoints => extra_endpoints,
+ :tags_blacklist_regex => node['datadog']['tags_blacklist_regex']
}
unless node['datadog']['use_ec2_instance_id']

[handler] add the ability to blacklist host tags

Ref: datadog/chef-handler-datadog#85