Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions providers/monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def whyrun_supported?

service 'datadog-agent' do
service_name node['datadog']['agent_name']
# HACK: the restart can fail when we hit systemd's restart limits (by default, 5 starts every 10 seconds)
# To workaround this, retry once after 5 seconds, and a second time after 10 seconds
retries 2
retry_delay 5
end
end

Expand Down
4 changes: 4 additions & 0 deletions recipes/dd-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def template_vars # rubocop:disable Metrics/AbcSize
supports :restart => true, :status => true, :start => true, :stop => true
end
subscribes :restart, "template[#{agent_config_file}]", :delayed unless node['datadog']['agent_start'] == false
# HACK: the restart can fail when we hit systemd's restart limits (by default, 5 starts every 10 seconds)
# To workaround this, retry once after 5 seconds, and a second time after 10 seconds
retries 2
retry_delay 5
end

# Install integration packages
Expand Down