mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
pass namespaced metric to output plugin instance
This commit is contained in:
parent
3986667f96
commit
cf0f2ebcda
1 changed files with 5 additions and 5 deletions
|
@ -15,14 +15,14 @@ module LogStash class OutputDelegator
|
|||
|
||||
raise ArgumentError, "No strategy registry specified" unless strategy_registry
|
||||
raise ArgumentError, "No ID specified! Got args #{plugin_args}" unless id
|
||||
|
||||
@strategy = strategy_registry.
|
||||
class_for(self.concurrency).
|
||||
new(@logger, @output_class, @metric, execution_context, plugin_args)
|
||||
|
||||
|
||||
@namespaced_metric = metric.namespace(id.to_sym)
|
||||
@namespaced_metric.gauge(:name, config_name)
|
||||
@metric_events = @namespaced_metric.namespace(:events)
|
||||
|
||||
@strategy = strategy_registry.
|
||||
class_for(self.concurrency).
|
||||
new(@logger, @output_class, @namespaced_metric, execution_context, plugin_args)
|
||||
end
|
||||
|
||||
def config_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue