Created
May 11, 2017 22:23
-
-
Save mapledyne/844f382c8729aea279bc72635bb18453 to your computer and use it in GitHub Desktop.
datadog chef recipe excerpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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