mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
parent
e78fce609b
commit
b41407c99b
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ require "json"
|
|||
class MonitoringAPI
|
||||
|
||||
def pipeline_stats
|
||||
node_stats["pipeline"]
|
||||
resp = Manticore.get("http://localhost:9600/_node/stats/pipeline").body
|
||||
stats_response = JSON.parse(resp)
|
||||
stats_response["pipeline"]
|
||||
end
|
||||
|
||||
def event_stats
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue