mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
- include all fields by default (include_fields being empty is default,
so we want all by default!)
This commit is contained in:
parent
4127bf0497
commit
6171c77ae4
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class LogStash::Outputs::Graphite < LogStash::Outputs::Base
|
|||
if @fields_are_metrics
|
||||
@logger.debug("got metrics event", :metrics => event.fields)
|
||||
event.fields.each do |metric,value|
|
||||
next unless @include_metrics.any? {|regexp| metric.match(regexp)}
|
||||
next unless @include_metrics.empty? || @include_metrics.any? { |regexp| metric.match(regexp) }
|
||||
next if @exclude_metrics.any? {|regexp| metric.match(regexp)}
|
||||
messages << "#{construct_metric_name(metric)} #{event.sprintf(value.to_s).to_f} #{timestamp}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue