Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datadog/chef-handler-datadog#85 - adding the ability to blacklist the… #347

Closed

Conversation

ABrehm264
Copy link
Contributor

… tags that the host sends to datadog

@olivielpeau
Copy link
Member

Thanks @ABrehm264!

You also need to pass the attribute to the handler in this hash.

# This affects not only event tags but also the host-level tags.
# 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_.*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: just for consistency with the lower case of the tags in Datadog it might be better to use a lower-cased pattern in the example. What do you think?

@ABrehm264
Copy link
Contributor Author

ABrehm264 commented Oct 6, 2016

@olivielpeau - oh man, I'm sorry I thought I had gotten around to updating my comments to fall more in line with what you had in mind. Please take a gander at it now, it should satisfy the lower case request on the example along with changing the description on what it does.

@olivielpeau
Copy link
Member

@ABrehm264 sorry to respond so late, but I realize now that you've missed one of my comments: the cookbook has to pass the attribute to the handler in this hash, otherwise the handler won't be configured with it ;)

Once you've changed this the PR looks good to me!

@ABrehm264 ABrehm264 force-pushed the datadog/chef-handler-datadog#85 branch from bffd489 to b005f1e Compare November 2, 2016 17:54
@ABrehm264
Copy link
Contributor Author

ABrehm264 commented Nov 2, 2016

@olivielpeau, check it out now please. I think I got it. crosses fingers
Also, my gif fu is not good, so please make sure that the other changes that you want still exist. I'm going to go find a git master to make sure my rebase didn't screw me over too bad. :(

@ABrehm264 ABrehm264 force-pushed the datadog/chef-handler-datadog#85 branch from b005f1e to 23e5097 Compare November 2, 2016 17:58
@ABrehm264 ABrehm264 force-pushed the datadog/chef-handler-datadog#85 branch from 23e5097 to 041f916 Compare November 2, 2016 17:58
Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more comment to address and it should be good to go, thanks @ABrehm264

@@ -60,7 +60,8 @@
: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 => ['datadog']['tags_blacklist_regex']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

['datadog']['tags_blacklist_regex'] should read node['datadog']['tags_blacklist_regex'] instead

@ABrehm264
Copy link
Contributor Author

@olivielpeau - alright, that should now be done

@degemer
Copy link
Member

degemer commented Jan 23, 2017

Hello @ABrehm264, I rebased your changes in #397, it'll go out with the next release. Thanks again for the contribution!

@degemer degemer closed this Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants