Skip to content

Commit

Permalink
This will add the sites config to the yaml file generated for iis
Browse files Browse the repository at this point in the history
  • Loading branch information
cobusbernard committed Dec 7, 2015
1 parent 4e59a32 commit 131f670
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion recipes/iis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
# node.datadog.iis.instances = [
# {
# "host" => "localhost",
# "tags" => ["prod", "other_tag"]
# "tags" => ["prod", "other_tag"],
# "sites" => ["Default Web Site"]
# },
# {
# "host" => "other.server.com",
Expand Down
8 changes: 7 additions & 1 deletion templates/default/iis.yaml.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# By default, this check will run against a single instance - the current
# machine that the Agent is running on. It will check the WMI performance
# counters for IIS on that machine.
# counters for IIS on that machine.
#
# If you want to check other remote machines as well, you can add one
# instance per host. Note: If you also want to check the counters on the
Expand All @@ -23,6 +23,12 @@ instances:
- <%= t %>
<% end -%>
<% end -%>
<% if i.key?('sites') -%>
sites:
<% i['sites'].each do |s| -%>
- <%= s %>
<% end -%>
<% end -%>
<% end -%>

init_config:

0 comments on commit 131f670

Please sign in to comment.