Expose pipeline metrics to /_node/stats/pipelines

Fixes #5472
This commit is contained in:
Jordan Sissel 2016-06-04 08:42:15 -07:00
parent 5a4d4bc3ba
commit 1eef8c9be7
2 changed files with 12 additions and 0 deletions

View file

@ -33,6 +33,10 @@ module LogStash
)
end
def pipeline
service.get_shallow(:stats, :pipelines)
end
def memory
memory = service.get_shallow(:jvm, :memory)
{

View file

@ -50,6 +50,10 @@ module LogStash
respond_with :mem => mem_payload
end
get "/pipeline" do
respond_with :pipeline => pipeline_payload
end
private
def events_payload
@ -67,6 +71,10 @@ module LogStash
def mem_payload
@stats.memory
end
def pipeline_payload
@stats.pipeline
end
end
end
end