lib/logstash/outputs/statsd.rb in logstash-output-statsd-0.1.6 vs lib/logstash/outputs/statsd.rb in logstash-output-statsd-1.0.0

- old
+ new

@@ -28,9 +28,19 @@ # # With regards to this plugin, the default namespace is "logstash", the default sender # is the `${host}` field, and the metric name depends on what is set as the metric name # in the `increment`, `decrement`, `timing`, `count, `set` or `gauge` variable. # +# Example: +# [source,ruby] +# output { +# statsd { +# host => "statsd.example.org" +# count => { +# "http.bytes" => "%{bytes}" +# } +# } +# } class LogStash::Outputs::Statsd < LogStash::Outputs::Base ## Regex stolen from statsd code RESERVED_CHARACTERS_REGEX = /[\:\|\@]/ config_name "statsd"