mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- add metrics to null output
This commit is contained in:
parent
171b38d2df
commit
8e4bede6e0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue