From b3f349ec3444c65e124a8e8a9fe7b0c504919d5d Mon Sep 17 00:00:00 2001 From: easonyipj Date: Thu, 29 Sep 2022 15:55:30 +0800 Subject: [PATCH 01/12] [feat] add golang.yaml --- .../meter-analyzer-config/golang.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 oap-server/server-starter/src/main/resources/meter-analyzer-config/golang.yaml diff --git a/oap-server/server-starter/src/main/resources/meter-analyzer-config/golang.yaml b/oap-server/server-starter/src/main/resources/meter-analyzer-config/golang.yaml new file mode 100644 index 000000000000..d1daa8533752 --- /dev/null +++ b/oap-server/server-starter/src/main/resources/meter-analyzer-config/golang.yaml @@ -0,0 +1,34 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +expSuffix: instance(['service'], ['instance'], Layer.GENERAL) +metricPrefix: meter +metricsRules: + - name: instance_golang_heap + exp: instance_golang_heap + - name: instance_golang_stack + exp: instance_golang_stack + - name: instance_golang_gc_time + exp: instance_golang_gc_time + - name: instance_golang_gc_count + exp: instance_golang_gc_count.increase('PT1M') + - name: instance_golang_thread_num + exp: instance_golang_thread_num + - name: instance_golang_goroutine_num + exp: instance_golang_goroutine_num + - name: instance_golang_cpu_used_rate + exp: instance_golang_cpu_used_rate + - name: instance_golang_mem_used_rate + exp: instance_golang_mem_used_rate \ No newline at end of file From 6c787ecd3649f7fb19098d993650067866e71520 Mon Sep 17 00:00:00 2001 From: easonyipj Date: Thu, 29 Sep 2022 15:55:58 +0800 Subject: [PATCH 02/12] [feat] add golang ui config --- .../general/general-instance.json | 224 ++++++++++++++++++ 1 file changed, 224 insertions(+) diff --git a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json index d29f4aaaa94c..0cf6731cc480 100644 --- a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json +++ b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json @@ -1012,6 +1012,230 @@ } } ] + }, + { + "name": "Golang", + "children": [ + { + "x": 0, + "y": 0, + "w": 8, + "h": 13, + "i": "15", + "type": "Widget", + "widget": { + "title": "Heap Memory (MB)" + }, + "graph": { + "type": "Line", + "step": false, + "smooth": false, + "showSymbol": false, + "showXAxis": true, + "showYAxis": true + }, + "metrics": [ + "meter_instance_golang_heap" + ], + "metricTypes": [ + "readMetricsValues" + ], + "metricConfig": [ + { + "calculation": "byteToMB" + } + ], + "moved": false + }, + { + "x": 8, + "y": 0, + "w": 8, + "h": 13, + "i": "16", + "type": "Widget", + "widget": { + "title": "Stack Memory (MB)" + }, + "graph": { + "type": "Line", + "step": false, + "smooth": false, + "showSymbol": false, + "showXAxis": true, + "showYAxis": true + }, + "metrics": [ + "meter_instance_golang_stack" + ], + "metricTypes": [ + "readMetricsValues" + ], + "metricConfig": [ + { + "calculation": "byteToMB" + } + ], + "moved": false + }, + { + "x": 16, + "y": 0, + "w": 8, + "h": 13, + "i": "17", + "type": "Widget", + "widget": { + "title": "Golang GC Time (ms)" + }, + "graph": { + "type": "Line", + "step": false, + "smooth": false, + "showSymbol": false, + "showXAxis": true, + "showYAxis": true + }, + "metrics": [ + "meter_instance_golang_gc_time" + ], + "metricTypes": [ + "readMetricsValues" + ], + "metricConfig": [ + { + "calculation": "nanoToMill" + } + ], + "moved": false + }, + { + "x": 0, + "y": 13, + "w": 8, + "h": 13, + "i": "18", + "type": "Widget", + "widget": { + "title": "Golang GC Count" + }, + "graph": { + "type": "Bar", + "showBackground": true + }, + "metrics": [ + "meter_instance_golang_gc_count" + ], + "metricTypes": [ + "readMetricsValues" + ], + "moved": false + }, + { + "x": 8, + "y": 13, + "w": 8, + "h": 13, + "i": "19", + "type": "Widget", + "widget": { + "title": "Goroutine Nums" + }, + "graph": { + "type": "Line", + "step": false, + "smooth": false, + "showSymbol": false, + "showXAxis": true, + "showYAxis": true + }, + "metrics": [ + "meter_instance_golang_goroutine_num" + ], + "metricTypes": [ + "readMetricsValues" + ], + "moved": false + }, + { + "x": 16, + "y": 13, + "w": 8, + "h": 13, + "i": "20", + "type": "Widget", + "widget": { + "title": "Thread Nums" + }, + "graph": { + "type": "Line", + "step": false, + "smooth": false, + "showSymbol": false, + "showXAxis": true, + "showYAxis": true + }, + "metrics": [ + "meter_instance_golang_thread_num" + ], + "metricTypes": [ + "readMetricsValues" + ], + "moved": false + }, + { + "x": 0, + "y": 26, + "w": 8, + "h": 13, + "i": "21", + "type": "Widget", + "widget": { + "title": "Host CPU used rate(%)" + }, + "graph": { + "type": "Line", + "step": false, + "smooth": false, + "showSymbol": false, + "showXAxis": true, + "showYAxis": true + }, + "metrics": [ + "meter_instance_golang_cpu_used_rate" + ], + "metricTypes": [ + "readMetricsValues" + ], + "moved": false + }, + { + "x": 8, + "y": 26, + "w": 8, + "h": 13, + "i": "22", + "type": "Widget", + "widget": { + "title": "Host Memory used rate(%)" + }, + "graph": { + "type": "Line", + "step": false, + "smooth": false, + "showSymbol": false, + "showXAxis": true, + "showYAxis": true + }, + "metrics": [ + "meter_instance_golang_mem_used_rate" + ], + "metricTypes": [ + "readMetricsValues" + ], + "moved": false + } + ] } ] }, From f5536843bbc7c4f79df0304006e160c4a549d3a9 Mon Sep 17 00:00:00 2001 From: easonyipj Date: Thu, 29 Sep 2022 19:55:39 +0800 Subject: [PATCH 03/12] [feat] active golang meter --- oap-server/server-starter/src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oap-server/server-starter/src/main/resources/application.yml b/oap-server/server-starter/src/main/resources/application.yml index 0da69bfc5d83..13ef0c477774 100644 --- a/oap-server/server-starter/src/main/resources/application.yml +++ b/oap-server/server-starter/src/main/resources/application.yml @@ -234,7 +234,7 @@ agent-analyzer: # Nginx and Envoy agents can't get the real remote address. # Exit spans with the component in the list would not generate the client-side instance relation metrics. noUpstreamRealAddressAgents: ${SW_NO_UPSTREAM_REAL_ADDRESS:6000,9000} - meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:datasource,threadpool,satellite} # Which files could be meter analyzed, files split by "," + meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:datasource,threadpool,satellite,golang} # Which files could be meter analyzed, files split by "," slowCacheReadThreshold: ${SW_SLOW_CACHE_SLOW_READ_THRESHOLD:default:20,redis:10} # The slow cache write operation thresholds. Unit ms. slowCacheWriteThreshold: ${SW_SLOW_CACHE_SLOW_WRITE_THRESHOLD:default:20,redis:10} # The slow cache write operation thresholds. Unit ms. From 604f9873b21b49ca5601dbc5aa8ec4e700ca81bc Mon Sep 17 00:00:00 2001 From: easonyipj Date: Thu, 29 Sep 2022 19:57:53 +0800 Subject: [PATCH 04/12] [feat]change the ui calculate function --- .../ui-initialized-templates/general/general-instance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json index 0cf6731cc480..11b9b65384cc 100644 --- a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json +++ b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json @@ -1104,7 +1104,7 @@ ], "metricConfig": [ { - "calculation": "nanoToMill" + "calculation": "nanosecondToMillisecond" } ], "moved": false From e81cc9110acd5c07914d3a00ef6ad2ff329b9413 Mon Sep 17 00:00:00 2001 From: easonyipj Date: Thu, 29 Sep 2022 20:42:05 +0800 Subject: [PATCH 05/12] [feat]update change.md --- docs/en/changes/changes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md index a0874f360cd8..e388c50d8c63 100644 --- a/docs/en/changes/changes.md +++ b/docs/en/changes/changes.md @@ -28,6 +28,7 @@ we should use `Get State and Start at Most Recent` semantic instead of `Start at Exact` because we don't need the changing history events, see https://kubernetes.io/docs/reference/using-api/api-concepts/#semantics-for-watch. * Unify query services and DAOs codes time range condition to `Duration`. +* Add golang.yaml to analyzer golang meters and active this file in application.yml #### UI @@ -50,6 +51,7 @@ * Remove All from the endpoints selector. * Enhance menu configurations to make it easier to change. * Update PostgreSQL dashboard to visualize collected slow SQLs. +* Add golang runtime metrics and cpu/memory used rate panels in General-Instance dashboard #### Documentation From 2e97c39a6e93df43ab456bd2bd2f044f8fa9588c Mon Sep 17 00:00:00 2001 From: Eason Yi Date: Thu, 29 Sep 2022 21:32:47 +0800 Subject: [PATCH 06/12] Update docs/en/changes/changes.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 吴晟 Wu Sheng --- docs/en/changes/changes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md index e388c50d8c63..7ef7a43cc9f2 100644 --- a/docs/en/changes/changes.md +++ b/docs/en/changes/changes.md @@ -28,7 +28,7 @@ we should use `Get State and Start at Most Recent` semantic instead of `Start at Exact` because we don't need the changing history events, see https://kubernetes.io/docs/reference/using-api/api-concepts/#semantics-for-watch. * Unify query services and DAOs codes time range condition to `Duration`. -* Add golang.yaml to analyzer golang meters and active this file in application.yml +* Support Golang VM metrics analysis. #### UI From 6c29789673745ccc183414702e2022187f88047e Mon Sep 17 00:00:00 2001 From: easonyipj Date: Thu, 29 Sep 2022 21:34:00 +0800 Subject: [PATCH 07/12] [feat]update go-runtime.yaml --- .../meter-analyzer-config/{golang.yaml => go-runtime.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename oap-server/server-starter/src/main/resources/meter-analyzer-config/{golang.yaml => go-runtime.yaml} (96%) diff --git a/oap-server/server-starter/src/main/resources/meter-analyzer-config/golang.yaml b/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml similarity index 96% rename from oap-server/server-starter/src/main/resources/meter-analyzer-config/golang.yaml rename to oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml index d1daa8533752..a0a0c2744a56 100644 --- a/oap-server/server-starter/src/main/resources/meter-analyzer-config/golang.yaml +++ b/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml @@ -21,7 +21,7 @@ metricsRules: - name: instance_golang_stack exp: instance_golang_stack - name: instance_golang_gc_time - exp: instance_golang_gc_time + exp: instance_golang_gc_time.downsampling(SUM) - name: instance_golang_gc_count exp: instance_golang_gc_count.increase('PT1M') - name: instance_golang_thread_num From e315a500b0d6cde7539b5f102f01b95c729fdcf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=99=9F=20Wu=20Sheng?= Date: Thu, 29 Sep 2022 21:34:04 +0800 Subject: [PATCH 08/12] Update docs/en/changes/changes.md --- docs/en/changes/changes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md index 7ef7a43cc9f2..6096b8edd655 100644 --- a/docs/en/changes/changes.md +++ b/docs/en/changes/changes.md @@ -28,7 +28,7 @@ we should use `Get State and Start at Most Recent` semantic instead of `Start at Exact` because we don't need the changing history events, see https://kubernetes.io/docs/reference/using-api/api-concepts/#semantics-for-watch. * Unify query services and DAOs codes time range condition to `Duration`. -* Support Golang VM metrics analysis. +* Support Golang runtime metrics analysis. #### UI From c379fcd74f470c84ff6c70543c72cf0a7626f459 Mon Sep 17 00:00:00 2001 From: Eason Yi Date: Thu, 29 Sep 2022 21:35:50 +0800 Subject: [PATCH 09/12] Update oap-server/server-starter/src/main/resources/application.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 吴晟 Wu Sheng --- oap-server/server-starter/src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oap-server/server-starter/src/main/resources/application.yml b/oap-server/server-starter/src/main/resources/application.yml index 13ef0c477774..c2e6821d6a4a 100644 --- a/oap-server/server-starter/src/main/resources/application.yml +++ b/oap-server/server-starter/src/main/resources/application.yml @@ -234,7 +234,7 @@ agent-analyzer: # Nginx and Envoy agents can't get the real remote address. # Exit spans with the component in the list would not generate the client-side instance relation metrics. noUpstreamRealAddressAgents: ${SW_NO_UPSTREAM_REAL_ADDRESS:6000,9000} - meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:datasource,threadpool,satellite,golang} # Which files could be meter analyzed, files split by "," + meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:datasource,threadpool,satellite,go-runtime} # Which files could be meter analyzed, files split by "," slowCacheReadThreshold: ${SW_SLOW_CACHE_SLOW_READ_THRESHOLD:default:20,redis:10} # The slow cache write operation thresholds. Unit ms. slowCacheWriteThreshold: ${SW_SLOW_CACHE_SLOW_WRITE_THRESHOLD:default:20,redis:10} # The slow cache write operation thresholds. Unit ms. From d5e84c078a8e61326a458b742f67bde415119ad4 Mon Sep 17 00:00:00 2001 From: Eason Yi Date: Thu, 29 Sep 2022 22:43:24 +0800 Subject: [PATCH 10/12] Update oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 吴晟 Wu Sheng --- .../ui-initialized-templates/general/general-instance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json index 11b9b65384cc..bdae675e3429 100644 --- a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json +++ b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json @@ -1117,7 +1117,7 @@ "i": "18", "type": "Widget", "widget": { - "title": "Golang GC Count" + "title": "Golang GC Count Per Minute" }, "graph": { "type": "Bar", From 97523c5c540d35fa6c8a51f3439f438c1b32608e Mon Sep 17 00:00:00 2001 From: easonyipj Date: Fri, 30 Sep 2022 12:32:14 +0800 Subject: [PATCH 11/12] [feat]update go-runtime.yaml --- .../server-starter/src/main/resources/application.yml | 2 +- .../resources/meter-analyzer-config/go-runtime.yaml | 10 +++++----- .../general/general-instance.json | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/oap-server/server-starter/src/main/resources/application.yml b/oap-server/server-starter/src/main/resources/application.yml index 13ef0c477774..c2e6821d6a4a 100644 --- a/oap-server/server-starter/src/main/resources/application.yml +++ b/oap-server/server-starter/src/main/resources/application.yml @@ -234,7 +234,7 @@ agent-analyzer: # Nginx and Envoy agents can't get the real remote address. # Exit spans with the component in the list would not generate the client-side instance relation metrics. noUpstreamRealAddressAgents: ${SW_NO_UPSTREAM_REAL_ADDRESS:6000,9000} - meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:datasource,threadpool,satellite,golang} # Which files could be meter analyzed, files split by "," + meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:datasource,threadpool,satellite,go-runtime} # Which files could be meter analyzed, files split by "," slowCacheReadThreshold: ${SW_SLOW_CACHE_SLOW_READ_THRESHOLD:default:20,redis:10} # The slow cache write operation thresholds. Unit ms. slowCacheWriteThreshold: ${SW_SLOW_CACHE_SLOW_WRITE_THRESHOLD:default:20,redis:10} # The slow cache write operation thresholds. Unit ms. diff --git a/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml b/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml index a0a0c2744a56..8f62ad11fa06 100644 --- a/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml +++ b/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml @@ -21,14 +21,14 @@ metricsRules: - name: instance_golang_stack exp: instance_golang_stack - name: instance_golang_gc_time - exp: instance_golang_gc_time.downsampling(SUM) + exp: instance_golang_gc_time.increase('PT1M') - name: instance_golang_gc_count exp: instance_golang_gc_count.increase('PT1M') - name: instance_golang_thread_num exp: instance_golang_thread_num - name: instance_golang_goroutine_num exp: instance_golang_goroutine_num - - name: instance_golang_cpu_used_rate - exp: instance_golang_cpu_used_rate - - name: instance_golang_mem_used_rate - exp: instance_golang_mem_used_rate \ No newline at end of file + - name: instance_cpu_used_rate + exp: instance_cpu_used_rate + - name: instance_mem_used_rate + exp: instance_mem_used_rate \ No newline at end of file diff --git a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json index 11b9b65384cc..2645d2ec15f3 100644 --- a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json +++ b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json @@ -1202,7 +1202,7 @@ "showYAxis": true }, "metrics": [ - "meter_instance_golang_cpu_used_rate" + "meter_instance_cpu_used_rate" ], "metricTypes": [ "readMetricsValues" @@ -1228,7 +1228,7 @@ "showYAxis": true }, "metrics": [ - "meter_instance_golang_mem_used_rate" + "meter_instance_mem_used_rate" ], "metricTypes": [ "readMetricsValues" From 6b87dbfbb1ed35139047998e2e548c8d8665af82 Mon Sep 17 00:00:00 2001 From: easonyipj Date: Fri, 30 Sep 2022 21:27:33 +0800 Subject: [PATCH 12/12] [feat]update metrics names --- .../meter-analyzer-config/go-runtime.yaml | 28 +++++++------- .../general/general-instance.json | 38 +++++++++---------- 2 files changed, 31 insertions(+), 35 deletions(-) diff --git a/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml b/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml index 8f62ad11fa06..a353931fb3cd 100644 --- a/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml +++ b/oap-server/server-starter/src/main/resources/meter-analyzer-config/go-runtime.yaml @@ -16,19 +16,19 @@ expSuffix: instance(['service'], ['instance'], Layer.GENERAL) metricPrefix: meter metricsRules: - - name: instance_golang_heap - exp: instance_golang_heap - - name: instance_golang_stack - exp: instance_golang_stack - - name: instance_golang_gc_time - exp: instance_golang_gc_time.increase('PT1M') + - name: instance_golang_heap_alloc + exp: instance_golang_heap_alloc + - name: instance_golang_stack_used + exp: instance_golang_stack_used + - name: instance_golang_gc_pause_time + exp: instance_golang_gc_pause_time.increase('PT1M') - name: instance_golang_gc_count exp: instance_golang_gc_count.increase('PT1M') - - name: instance_golang_thread_num - exp: instance_golang_thread_num - - name: instance_golang_goroutine_num - exp: instance_golang_goroutine_num - - name: instance_cpu_used_rate - exp: instance_cpu_used_rate - - name: instance_mem_used_rate - exp: instance_mem_used_rate \ No newline at end of file + - name: instance_golang_os_threads_count + exp: instance_golang_os_threads_count + - name: instance_golang_live_goroutines_count + exp: instance_golang_live_goroutines_count + - name: instance_host_cpu_used_rate + exp: instance_host_cpu_used_rate + - name: instance_host_mem_used_rate + exp: instance_host_mem_used_rate \ No newline at end of file diff --git a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json index 41969bc56fce..e1b01ea258d8 100644 --- a/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json +++ b/oap-server/server-starter/src/main/resources/ui-initialized-templates/general/general-instance.json @@ -1021,10 +1021,10 @@ "y": 0, "w": 8, "h": 13, - "i": "15", + "i": "24", "type": "Widget", "widget": { - "title": "Heap Memory (MB)" + "title": "Heap Alloc (MB)" }, "graph": { "type": "Line", @@ -1035,7 +1035,7 @@ "showYAxis": true }, "metrics": [ - "meter_instance_golang_heap" + "meter_instance_golang_heap_alloc" ], "metricTypes": [ "readMetricsValues" @@ -1055,7 +1055,7 @@ "i": "16", "type": "Widget", "widget": { - "title": "Stack Memory (MB)" + "title": "Stack Used (MB)" }, "graph": { "type": "Line", @@ -1066,7 +1066,7 @@ "showYAxis": true }, "metrics": [ - "meter_instance_golang_stack" + "meter_instance_golang_stack_used" ], "metricTypes": [ "readMetricsValues" @@ -1086,18 +1086,14 @@ "i": "17", "type": "Widget", "widget": { - "title": "Golang GC Time (ms)" + "title": "Golang GC Pause Time Per Minute (ms)" }, "graph": { - "type": "Line", - "step": false, - "smooth": false, - "showSymbol": false, - "showXAxis": true, - "showYAxis": true + "type": "Bar", + "showBackground": true }, "metrics": [ - "meter_instance_golang_gc_time" + "meter_instance_golang_gc_pause_time" ], "metricTypes": [ "readMetricsValues" @@ -1139,7 +1135,7 @@ "i": "19", "type": "Widget", "widget": { - "title": "Goroutine Nums" + "title": "Live Goroutines Count" }, "graph": { "type": "Line", @@ -1150,7 +1146,7 @@ "showYAxis": true }, "metrics": [ - "meter_instance_golang_goroutine_num" + "meter_instance_golang_live_goroutines_count" ], "metricTypes": [ "readMetricsValues" @@ -1165,7 +1161,7 @@ "i": "20", "type": "Widget", "widget": { - "title": "Thread Nums" + "title": "Golang OS Threads Count" }, "graph": { "type": "Line", @@ -1176,7 +1172,7 @@ "showYAxis": true }, "metrics": [ - "meter_instance_golang_thread_num" + "meter_instance_golang_os_threads_count" ], "metricTypes": [ "readMetricsValues" @@ -1191,7 +1187,7 @@ "i": "21", "type": "Widget", "widget": { - "title": "Host CPU used rate(%)" + "title": "Host CPU Used Rate (%)" }, "graph": { "type": "Line", @@ -1202,7 +1198,7 @@ "showYAxis": true }, "metrics": [ - "meter_instance_cpu_used_rate" + "meter_instance_host_cpu_used_rate" ], "metricTypes": [ "readMetricsValues" @@ -1217,7 +1213,7 @@ "i": "22", "type": "Widget", "widget": { - "title": "Host Memory used rate(%)" + "title": "Host Memory Used Rate (%)" }, "graph": { "type": "Line", @@ -1228,7 +1224,7 @@ "showYAxis": true }, "metrics": [ - "meter_instance_mem_used_rate" + "meter_instance_host_mem_used_rate" ], "metricTypes": [ "readMetricsValues"