lib/logstash/outputs/metriccatcher.rb in logstash-output-metriccatcher-0.1.0 vs lib/logstash/outputs/metriccatcher.rb in logstash-output-metriccatcher-0.1.1

- old
+ new

@@ -8,10 +8,11 @@ # utilize Coda Hale's Metrics. # # More info on MetricCatcher: https://github.com/clearspring/MetricCatcher # # At Clearspring, we use it to count the response codes from Apache logs: +# [source,ruby] # metriccatcher { # host => "localhost" # port => "1420" # type => "apache-access" # fields => [ "response" ] @@ -24,55 +25,55 @@ # The address of the MetricCatcher config :host, :validate => :string, :default => "localhost" # The port to connect on your MetricCatcher config :port, :validate => :number, :default => 1420 - # The metrics to send. This supports dynamic strings like %{host} + # The metrics to send. This supports dynamic strings like `%{host}` # for metric names and also for values. This is a hash field with key # of the metric name, value of the metric value. # # The value will be coerced to a floating point value. Values which cannot be # coerced will zero (0) config :gauge, :validate => :hash - # The metrics to send. This supports dynamic strings like %{host} + # The metrics to send. This supports dynamic strings like `%{host}` # for metric names and also for values. This is a hash field with key # of the metric name, value of the metric value. Example: - # + # [source,ruby] # counter => [ "%{host}.apache.hits.%{response}, "1" ] # # The value will be coerced to a floating point value. Values which cannot be # coerced will zero (0) config :counter, :validate => :hash - # The metrics to send. This supports dynamic strings like %{host} + # The metrics to send. This supports dynamic strings like `%{host}` # for metric names and also for values. This is a hash field with key # of the metric name, value of the metric value. # # The value will be coerced to a floating point value. Values which cannot be # coerced will zero (0) config :meter, :validate => :hash - # The metrics to send. This supports dynamic strings like %{host} + # The metrics to send. This supports dynamic strings like `%{host}` # for metric names and also for values. This is a hash field with key # of the metric name, value of the metric value. # # The value will be coerced to a floating point value. Values which cannot be # coerced will zero (0) config :biased, :validate => :hash - # The metrics to send. This supports dynamic strings like %{host} + # The metrics to send. This supports dynamic strings like `%{host}` # for metric names and also for values. This is a hash field with key # of the metric name, value of the metric value. # # The value will be coerced to a floating point value. Values which cannot be # coerced will zero (0) config :uniform, :validate => :hash # The metrics to send. This supports dynamic strings like %{host} # for metric names and also for values. This is a hash field with key # of the metric name, value of the metric value. Example: - # + # [source,ruby] # timer => [ "%{host}.apache.response_time, "%{response_time}" ] # # The value will be coerced to a floating point value. Values which cannot be # coerced will zero (0) config :timer, :validate => :hash