@@ -18,12 +18,13 @@ function getSystemMetrics() {
18
18
var req = new XMLHttpRequest ( ) ;
19
19
20
20
var metricToDisplay = { } ;
21
- metricToDisplay [ "application_getProperties_total" ] = "Request Count" ;
22
- metricToDisplay [ "application_io_openliberty_sample_system_SystemResource_getPropertiesTime_one_min_rate_per_second" ] = "Min Request Time (ms)" ;
23
- metricToDisplay [ "application_io_openliberty_sample_system_SystemResource_getPropertiesTime_mean_seconds" ] = "Mean Request Time (ms)" ;
24
- metricToDisplay [ "application_io_openliberty_sample_system_SystemResource_getPropertiesTime_max_seconds" ] = "Max Request Time (ms)" ;
25
- metricToDisplay [ "base_cpu_processCpuLoad_percent" ] = "System CPU Usage (%)" ;
26
- metricToDisplay [ "base_memory_usedHeap_bytes" ] = "System Heap Usage (MB)" ;
21
+ var SRgetPropertiesTime = "io_openliberty_sample_system_SystemResource_getPropertiesTime" ;
22
+ metricToDisplay [ "getProperties_total{mp_scope=\"application\",}" ] = "Request Count" ;
23
+ metricToDisplay [ SRgetPropertiesTime + "_seconds{mp_scope=\"application\",quantile=\"0.999\",}" ] = "Request Time (ms) at Quantile 0.999" ;
24
+ metricToDisplay [ SRgetPropertiesTime + "_seconds{mp_scope=\"application\",quantile=\"0.5\",}" ] = "Request Time (ms) at Quantile 0.5" ;
25
+ metricToDisplay [ SRgetPropertiesTime + "_seconds_max{mp_scope=\"application\",}" ] = "Max Request Time (ms)" ;
26
+ metricToDisplay [ "cpu_processCpuLoad_percent{mp_scope=\"base\",}" ] = "System CPU Usage (%)" ;
27
+ metricToDisplay [ "memory_usedHeap_bytes{mp_scope=\"base\",}" ] = "System Heap Usage (MB)" ;
27
28
28
29
var metricToMatch = "^(" ;
29
30
for ( var metricKey in metricToDisplay ) {
@@ -245,4 +246,4 @@ function addSourceRow(table, url) {
245
246
sourceText . innerHTML = "API Source\: <a href='" + url + "'>" + url + "</a>" ;
246
247
sourceRow . appendChild ( sourceText ) ;
247
248
table . appendChild ( sourceRow ) ;
248
- }
249
+ }
0 commit comments