Skip to content

Instantly share code, notes, and snippets.

@mapledyne
Created May 11, 2017 22:23
Show Gist options
  • Save mapledyne/844f382c8729aea279bc72635bb18453 to your computer and use it in GitHub Desktop.
Save mapledyne/844f382c8729aea279bc72635bb18453 to your computer and use it in GitHub Desktop.
datadog chef recipe excerpt
require 'ipaddr'
include_recipe 'datadog::dd-agent'
include_recipe 'datadog::dd-handler'
if node['platform'] == 'windows'
chef_gem 'win32-service' do
compile_time false
end
if node.attribute?('datadog')
# Include IIS monitoring if there's something to monitor:
include_recipe 'datadog::iis' if node['datadog'].attribute?('iis')
# Include service monitoring if there's something to monitor:
include_recipe 'datadog::windows_service' if node['datadog'].attribute?('windows_service')
# Include service monitoring if there's something to monitor:
include_recipe 'datadog::process' if node['datadog'].attribute?('process')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment