<commit_before>#
# Cookbook Name:: rubygems
# Recipe:: datadog
#

execute 'pkill-collectd' do
  command '/usr/bin/pkill -9 collectd'
  only_if { ::File.exist?('/usr/sbin/collectd') }
end

package "collectd-core" do
  action :remove
end

include_recipe 'chef-vault'

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'<commit_msg>single quote collectd-core to make david happy<commit_after>#
# Cookbook Name:: rubygems
# Recipe:: datadog
#

execute 'pkill-collectd' do
  command '/usr/bin/pkill -9 collectd'
  only_if { ::File.exist?('/usr/sbin/collectd') }
end

package 'collectd-core' do
  action :remove
end

include_recipe 'chef-vault'

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'
{'fraction_non_alphanumeric': 0.15296198054818744, 'fraction_numerical': 0.0017683465959328027, 'mean_word_length': 6.7534246575342465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1542627', 'n_tokens_mistral': 433, 'n_tokens_neox': 432, 'n_words': 75}