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

Add support for collect_instance_metadata and collect_security_groups config options. #268

Closed
wants to merge 1 commit into from

Conversation

moneill
Copy link

@moneill moneill commented Jan 14, 2016

This adds support for the collect_instance_metadata and collect_security_groups configuration options supported by datadog.conf. See https://github.com/DataDog/dd-agent/blob/master/datadog.conf.example for more information.

@moneill moneill closed this Jan 14, 2016
@moneill
Copy link
Author

moneill commented Jan 14, 2016

Oops, apologies for the open-close-open nonsense! Spot checking on some of our instances this appears to be setting the properties correctly in datadog.conf, so hopefully some other folks will find this useful!

@moneill moneill reopened this Jan 14, 2016
@miketheman miketheman added this to the Next minor milestone Jan 14, 2016
@miketheman
Copy link
Contributor

Thanks! Would sure be nice to see some tests added to cover this behavior.

@moneill
Copy link
Author

moneill commented Jan 14, 2016

@miketheman sure thing, I was running off of this as an example: https://github.com/DataDog/chef-datadog/pull/159/files. Can you point me to something similar with tests and I'll get those added?

@miketheman
Copy link
Contributor

@moneill That's fair. I just looked, and it turns out we don't have any spec tests that encompass the base config file. Sigh.

miketheman referenced this pull request in DataDog/dd-agent Apr 16, 2016
As this option should be used with a lot of caution. It's better to not display it.
[skip ci]
@miketheman miketheman removed this from the Next minor milestone Apr 21, 2016
@miketheman
Copy link
Contributor

@remh There is an open question from this commit.

@degemer
Copy link
Member

degemer commented Dec 20, 2016

Hello @moneill !
Sorry for the late response, it is now (since 2.7.0) possible to use any configuration option in datadog.conf: #375. Since these options are not often used (collect_instance_metadata is by default true), I don't think it would make sense to add them to our recipe (now that there is another way to use them). I'm going to go ahead and close this PR, let me know if you think it should be available by default.

@degemer degemer closed this Dec 20, 2016
@moneill
Copy link
Author

moneill commented Dec 20, 2016

Sounds great @degemer, thanks for following up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants