Skip to content

Commit

Permalink
add namespaced metrics for inputs (#5668)
Browse files Browse the repository at this point in the history
  • Loading branch information
purbon authored and Suyog Rao committed Jul 21, 2016
1 parent 1002d50 commit cfd331b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion logstash-core/lib/logstash/pipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ def plugin(plugin_type, name, *args)
LogStash::FilterDelegator.new(@logger, klass, pipeline_scoped_metric.namespace(:filters), *args)
else
new_plugin = klass.new(*args)
new_plugin.metric = pipeline_scoped_metric.namespace(:inputs)
inputs_metric = pipeline_scoped_metric.namespace(:inputs)
namespaced_metric = inputs_metric.namespace(new_plugin.plugin_unique_name.to_sym)
new_plugin.metric = namespaced_metric
new_plugin
end
end
Expand Down

0 comments on commit cfd331b

Please sign in to comment.