lib/deimos/metrics/datadog.rb in deimos-ruby-1.23.1.pre.beta6 vs lib/deimos/metrics/datadog.rb in deimos-ruby-1.23.2
- old
+ new
@@ -12,21 +12,19 @@
raise 'Metrics config must specify host_ip' if config[:host_ip].nil?
raise 'Metrics config must specify host_port' if config[:host_port].nil?
raise 'Metrics config must specify namespace' if config[:namespace].nil?
logger.info("DatadogMetricsProvider configured with: #{config}")
-
@client = ::Datadog::Statsd.new(
config[:host_ip],
config[:host_port],
tags: config[:tags],
namespace: config[:namespace]
)
end
# :nodoc:
def increment(metric_name, options={})
- Rails.logger.info("Incrementing #{metric_name} #{options}")
@client.increment(metric_name, options)
end
# :nodoc:
def gauge(metric_name, count, options={})