lib/logstash/outputs/metriccatcher.rb in logstash-output-metriccatcher-2.0.4 vs lib/logstash/outputs/metriccatcher.rb in logstash-output-metriccatcher-3.0.0

- old
+ new

@@ -1,11 +1,10 @@ # encoding: utf-8 require "logstash/outputs/base" require "logstash/namespace" require "logstash/json" - # This output ships metrics to MetricCatcher, allowing you to # utilize Coda Hale's Metrics. # # More info on MetricCatcher: https://github.com/clearspring/MetricCatcher # @@ -84,11 +83,9 @@ @socket = UDPSocket.new end # def register public def receive(event) - - @@metric_types.each do |metric_type| if instance_variable_defined?("@#{metric_type}") instance_variable_get("@#{metric_type}").each do |metric_name, metric_value| message = [{ "name" => event.sprintf(metric_name),