@@ -47,9 +47,11 @@ public void getServicePerf(CounterBasket pw) {
4747 MeterService service = MeterService .getInstance ();
4848 int elapsed = service .getElapsedTime (30 );
4949 float tps = service .getTPS (30 );
50- float err = service .getError (30 );
50+ float errorRate = service .getErrorRate (30 );
5151 int count = service .getServiceCount (60 );
5252 int resp90pct = service .getElapsed90Pct (30 );
53+ int sqlTimeByService = service .getSqlTime (30 );
54+ int apiTimeByService = service .getApiTime (30 );
5355
5456 int [] act = TraceContextManager .getActiveCount ();
5557 int active = act [0 ] + act [1 ] + act [2 ];
@@ -65,9 +67,11 @@ public void getServicePerf(CounterBasket pw) {
6567 p .put (CounterConstants .WAS_ELAPSED_TIME , new DecimalValue (elapsed ));
6668 p .put (CounterConstants .WAS_SERVICE_COUNT , new DecimalValue (count ));
6769 p .put (CounterConstants .WAS_TPS , new FloatValue (tps ));
68- p .put (CounterConstants .WAS_ERROR_RATE , new FloatValue (err ));
70+ p .put (CounterConstants .WAS_ERROR_RATE , new FloatValue (errorRate ));
6971 p .put (CounterConstants .WAS_ACTIVE_SERVICE , new DecimalValue (active ));
7072 p .put (CounterConstants .WAS_ELAPSED_90PCT , new DecimalValue (resp90pct ));
73+ p .put (CounterConstants .WAS_APICALL_ELAPSED_TIME_BY_SERVICE , new DecimalValue (apiTimeByService ));
74+ p .put (CounterConstants .WAS_SQL_ELAPSED_TIME_BY_SERVICE , new DecimalValue (sqlTimeByService ));
7175
7276 ListValue activeSpeed = new ListValue ();
7377 activeSpeed .add (act [0 ]);
@@ -81,17 +85,21 @@ public void getServicePerf(CounterBasket pw) {
8185 count = service .getServiceCount (300 );
8286 tps = service .getTPS (300 );
8387 elapsed = service .getElapsedTime (300 );
84- err = service .getError (300 );
85- int activeSErvice = (int ) activeCounter .getAvg (300 );
88+ errorRate = service .getErrorRate (300 );
89+ int activeService = (int ) activeCounter .getAvg (300 );
8690 resp90pct = service .getElapsed90Pct (300 );
91+ sqlTimeByService = service .getSqlTime (300 );
92+ apiTimeByService = service .getApiTime (300 );
8793
8894 p = pw .getPack (TimeTypeEnum .FIVE_MIN );
8995 p .put (CounterConstants .WAS_ELAPSED_TIME , new DecimalValue (elapsed ));
9096 p .put (CounterConstants .WAS_SERVICE_COUNT , new DecimalValue (count ));
9197 p .put (CounterConstants .WAS_TPS , new FloatValue (tps ));
92- p .put (CounterConstants .WAS_ERROR_RATE , new FloatValue (err ));
93- p .put (CounterConstants .WAS_ACTIVE_SERVICE , new DecimalValue (activeSErvice ));
98+ p .put (CounterConstants .WAS_ERROR_RATE , new FloatValue (errorRate ));
99+ p .put (CounterConstants .WAS_ACTIVE_SERVICE , new DecimalValue (activeService ));
94100 p .put (CounterConstants .WAS_ELAPSED_90PCT , new DecimalValue (resp90pct ));
101+ p .put (CounterConstants .WAS_APICALL_ELAPSED_TIME_BY_SERVICE , new DecimalValue (apiTimeByService ));
102+ p .put (CounterConstants .WAS_SQL_ELAPSED_TIME_BY_SERVICE , new DecimalValue (sqlTimeByService ));
95103 }
96104
97105 private long last_sent = DateUtil .getMinUnit (System .currentTimeMillis ()) / 5 ;
0 commit comments