Skip to content

Commit

Permalink
Merge pull request #44 from novu/master
Browse files Browse the repository at this point in the history
Fix handler use_ec2_instance_id options
  • Loading branch information
alq666 committed Feb 6, 2013
2 parents 09a675a + 51e636a commit 47ba8e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@
# 15 and 60 is a reasonable interval.
default['datadog']['check_freq'] = 15

# If running on ec2, use the instance-id as the host identifier
# rather than the hostname.
# If you have set up meaningful hostnames for your EC2 instances, set this to "no"
# If running on ec2, if true, use the instance-id as the host identifier
# rather than the hostname for the agent or nodename for chef-handler.
default['datadog']['use_ec2_instance_id'] = false

# Use mount points instead of volumes to track disk and fs metrics
Expand Down
3 changes: 2 additions & 1 deletion recipes/dd-handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
source "chef/handler/datadog"
arguments [
:api_key => node['datadog']['api_key'],
:application_key => node['datadog']['application_key']
:application_key => node['datadog']['application_key'],
:use_ec2_instance_id => node['datadog']['use_ec2_instance_id']
]
supports :report => true, :exception => true
action :nothing
Expand Down

0 comments on commit 47ba8e6

Please sign in to comment.