chef-handler-librato 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/chef-handler-librato.gemspec +1 -1
- data/lib/chef/chef_handler_librato.rb +4 -0
- metadata +2 -2
@@ -60,7 +60,11 @@ class LibratoReporting < Chef::Handler
|
|
60
60
|
|
61
61
|
metrics.each do |metric, value|
|
62
62
|
Chef::Log.debug("#{metric} #{value} #{Time.now}")
|
63
|
+
begin
|
63
64
|
Librato::Metrics.submit :"#{metric}" => {:type => :"#{@metric_type}", :value => "#{value}", :source => "#{@source}" }
|
65
|
+
rescue Exception => e
|
66
|
+
puts "#{e}"
|
67
|
+
end
|
64
68
|
end
|
65
69
|
end
|
66
70
|
end
|