Skip to content

Conversation

remeh
Copy link
Contributor

@remeh remeh commented Mar 22, 2019

It must now be done explicitly while using the datadog_monitor resource. See the change in the README.

This PR has been first created by @someara in #323

@remeh remeh added the ready label Mar 22, 2019
@remeh remeh added this to the 3.0 milestone Mar 22, 2019
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 comment, feel free to merge once addressed!

README.md Outdated
### Example

This example enables the ElasticSearch integration by using the `datadog_monitor` resource. It provides the instance configuration (in this case: the url to connect to ElasticSearch) and set the `use_integration_template` flag to use the default configuration template.
This example enables the ElasticSearch integration by using the `datadog_monitor` resource. It provides the instance configuration (in this case: the url to connect to ElasticSearch) and set the `use_integration_template` flag to use the default configuration template. Also, it notifies the `service[datadog-agent]` resource in order to restart the Agent. If you use multiple times the resource `datadog_monitor` in your cookbook, it's recommended for speed purpose to restart the Agent only with the last call.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This example enables the ElasticSearch integration by using the `datadog_monitor` resource. It provides the instance configuration (in this case: the url to connect to ElasticSearch) and set the `use_integration_template` flag to use the default configuration template. Also, it notifies the `service[datadog-agent]` resource in order to restart the Agent. If you use multiple times the resource `datadog_monitor` in your cookbook, it's recommended for speed purpose to restart the Agent only with the last call.
This example enables the ElasticSearch integration by using the `datadog_monitor` resource. It provides the instance configuration (in this case: the url to connect to ElasticSearch) and sets the `use_integration_template` flag to use the default configuration template. Also, it notifies the `service[datadog-agent]` resource in order to restart the Agent.

(note: no need to use notifies only once: by default notifies is used with the :delayed option, which means that Chef will queue the notifies until the end of the Chef run, dedupe them, and actually restart the service only once at the end of the run. Pretty neat stuff)

@remeh remeh force-pushed the remeh/notification-handlers branch from a6d9e2f to 917b1f7 Compare April 26, 2019 10:03
@remeh remeh merged commit df7fcc2 into master Apr 26, 2019
@remeh remeh deleted the remeh/notification-handlers branch April 26, 2019 12:39
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