@@ -39,13 +39,14 @@ public void checkLegacyPaging_MajfltRate() throws Exception {
39
39
public void checkPaging_MajfltRate (String paBaseUri ) throws Exception {
40
40
// read metric from local node
41
41
List <JsonResponseNode > responseNodeList =
42
- readMetric (paBaseUri + "/metrics?metrics=Paging_MajfltRate&agg=max" );
42
+ readMetric (paBaseUri + "/_agent/ metrics?metrics=Paging_MajfltRate&agg=max" );
43
43
Assert .assertEquals (1 , responseNodeList .size ());
44
44
validateMajorPageFaultMetric (responseNodeList .get (0 ));
45
45
46
46
// read metric from all nodes in cluster
47
47
responseNodeList =
48
- readMetric (paBaseUri + "/metrics?metrics=Paging_MajfltRate&agg=max&nodes=all" );
48
+ readMetric (
49
+ paBaseUri + "/_agent/metrics?metrics=Paging_MajfltRate&agg=max&nodes=all" );
49
50
int nodeNum = getNodeIDs ().size ();
50
51
Assert .assertEquals (nodeNum , responseNodeList .size ());
51
52
for (int i = 0 ; i < nodeNum ; i ++) {
@@ -66,13 +67,14 @@ public void checkLegacyPaging_MinfltRate() throws Exception {
66
67
public void checkPaging_MinfltRate (String paBaseUri ) throws Exception {
67
68
// read metric from local node
68
69
List <JsonResponseNode > responseNodeList =
69
- readMetric (paBaseUri + "/metrics?metrics=Paging_MinfltRate&agg=max" );
70
+ readMetric (paBaseUri + "/_agent/ metrics?metrics=Paging_MinfltRate&agg=max" );
70
71
Assert .assertEquals (1 , responseNodeList .size ());
71
72
validateMinorPageFaultMetric (responseNodeList .get (0 ));
72
73
73
74
// read metric from all nodes in cluster
74
75
responseNodeList =
75
- readMetric (paBaseUri + "/metrics?metrics=Paging_MinfltRate&agg=max&nodes=all" );
76
+ readMetric (
77
+ paBaseUri + "/_agent/metrics?metrics=Paging_MinfltRate&agg=max&nodes=all" );
76
78
int nodeNum = getNodeIDs ().size ();
77
79
Assert .assertEquals (nodeNum , responseNodeList .size ());
78
80
for (int i = 0 ; i < nodeNum ; i ++) {
@@ -93,12 +95,13 @@ public void checkLegacyPaging_RSS() throws Exception {
93
95
public void checkPaging_RSS (String paBaseUri ) throws Exception {
94
96
// read metric from local node
95
97
List <JsonResponseNode > responseNodeList =
96
- readMetric (paBaseUri + "/metrics?metrics=Paging_RSS&agg=max" );
98
+ readMetric (paBaseUri + "/_agent/ metrics?metrics=Paging_RSS&agg=max" );
97
99
Assert .assertEquals (1 , responseNodeList .size ());
98
100
validatePagingRSSMetric (responseNodeList .get (0 ));
99
101
100
102
// read metric from all nodes in cluster
101
- responseNodeList = readMetric (paBaseUri + "/metrics?metrics=Paging_RSS&agg=max&nodes=all" );
103
+ responseNodeList =
104
+ readMetric (paBaseUri + "/_agent/metrics?metrics=Paging_RSS&agg=max&nodes=all" );
102
105
int nodeNum = getNodeIDs ().size ();
103
106
Assert .assertEquals (nodeNum , responseNodeList .size ());
104
107
for (int i = 0 ; i < nodeNum ; i ++) {
0 commit comments