mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
add namespaced metrics for inputs (#5668)
This commit is contained in:
parent
1002d50524
commit
cfd331b230
1 changed files with 3 additions and 1 deletions
|
@ -438,7 +438,9 @@ module LogStash; class Pipeline
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue