- add metrics to null output

This commit is contained in:
Jordan Sissel 2012-02-09 18:42:58 -08:00
parent 171b38d2df
commit 8e4bede6e0

View file

@ -9,11 +9,11 @@ class LogStash::Outputs::Null < LogStash::Outputs::Base
public
def register
# Nothing to do
@metric_hits = @logger.metrics.meter(self, "events")
end # def register
public
def receive(event)
# Do nothing
@metric_hits.mark
end # def event
end # class LogStash::Outputs::Null