Add a gauge 'name' that shows the plugin's name in metrics

Fixes #5472
This commit is contained in:
Jordan Sissel 2016-06-14 06:23:00 -07:00
parent 07be0dcb3b
commit 97a2f16b48

View file

@ -24,6 +24,7 @@ module LogStash
namespaced_metric = metric.namespace(@filter.plugin_unique_name.to_sym)
@filter.metric = metric
namespaced_metric.gauge(:name, config_name)
@metric_events = namespaced_metric.namespace(:events)
# Not all the filters will do bufferings