File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
x-pack/qa/integration/monitoring Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ def pipeline_stats(pipeline_id)
31
31
stats_response . fetch ( "pipelines" ) . fetch ( pipeline_id )
32
32
end
33
33
34
+ def pipelines_stats
35
+ resp = Manticore . get ( "http://localhost:#{ @port } /_node/stats/pipelines" ) . body
36
+ stats_response = JSON . parse ( resp )
37
+ stats_response . fetch ( "pipelines" )
38
+ end
39
+
34
40
def event_stats
35
41
resp = Manticore . get ( "http://localhost:#{ @port } /_node/stats" ) . body
36
42
stats_response = JSON . parse ( resp )
Original file line number Diff line number Diff line change 31
31
32
32
include_examples "record monitoring data to es"
33
33
34
+ it "gives pipelines stats" do
35
+ api = MonitoringAPI . new
36
+ stats = api . pipelines_stats
37
+ expect ( stats . keys ) . not_to be_nil
38
+ end
39
+
34
40
after :all do
35
41
@logstash_service . stop unless @logstash_service . nil?
36
42
@elasticsearch_service . stop unless @elasticsearch_service . nil?
You can’t perform that action at this time.
0 commit comments