Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
add datadog
Browse files Browse the repository at this point in the history
dwradcliffe committed Jan 29, 2015
1 parent 2a8899a commit e67e3f1
Showing 3 changed files with 20 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -118,6 +118,10 @@ GRAPH
mysql-chef_gem (>= 0.0.0)
postgresql (>= 1.0.0)
xfs (>= 0.0.0)
datadog (2.0.0)
apt (>= 0.0.0)
chef_handler (~> 1.1.0)
yum (>= 0.0.0)
dmg (2.2.0)
dns (0.0.2)
dnsimple (>= 0.0.0)
@@ -293,11 +297,12 @@ GRAPH
rubygems-logging (0.0.6)
chef-vault (>= 0.0.0)
rsyslog (>= 0.0.0)
rubygems-metrics (0.0.8)
rubygems-metrics (0.1.1)
chef-vault (>= 0.0.0)
collectd (>= 0.0.0)
collectd-librato (>= 0.0.0)
collectd_plugins (>= 0.0.0)
datadog (>= 0.0.0)
rubygems-monitoring (0.0.16)
chef-vault (>= 0.0.0)
cpan (>= 0.0.0)
3 changes: 2 additions & 1 deletion cookbooks/rubygems-metrics/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name 'rubygems-metrics'
maintainer 'RubyGems.org ops team'

version '0.0.8'
version '0.1.1'

depends 'chef-vault'
depends 'collectd'
depends 'collectd-librato'
depends 'collectd_plugins'
depends 'datadog'
12 changes: 12 additions & 0 deletions cookbooks/rubygems-metrics/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -5,6 +5,8 @@

include_recipe 'chef-vault'

# Librato

librato_creds = chef_vault_item('librato', 'credentials')

node.default['collectd_librato']['email'] = librato_creds['email']
@@ -22,3 +24,13 @@
include_recipe 'collectd_plugins::memory'
include_recipe 'collectd_plugins::swap'
include_recipe 'collectd_plugins::syslog'

# Datadog

datadog_creds = chef_vault_item('datadog', 'credentials')

node.default['datadog']['api_key'] = datadog_creds['api_key']
node.default['datadog']['application_key'] = datadog_creds['application_key']

include_recipe 'datadog::dd-agent'
include_recipe 'datadog::dd-handler'

0 comments on commit e67e3f1

Please sign in to comment.