-
Notifications
You must be signed in to change notification settings - Fork 257
datadog_monitor doesn't automatically restart the Agent #596
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
Conversation
…ef-datadog into remeh/notification-handlers
… dd-agent recipe.
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
a6d9e2f
to
917b1f7
Compare
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