lib/logstash/outputs/graphite.rb in logstash-output-graphite-0.1.6 vs lib/logstash/outputs/graphite.rb in logstash-output-graphite-0.1.7
- old
+ new
@@ -31,10 +31,10 @@
# The metric(s) to use. This supports dynamic strings like %{host}
# for metric names and also for values. This is a hash field with key
# being the metric name, value being the metric value. Example:
# [source,ruby]
- # [ "%{host}/uptime", "%{uptime_1m}" ]
+ # metrics => { "%{host}/uptime" => "%{uptime_1m}" }
#
# The value will be coerced to a floating point value. Values which cannot be
# coerced will be set to zero (0). You may use either `metrics` or `fields_are_metrics`,
# but not both.
config :metrics, :validate => :hash, :default => {}