wu-sheng commented on code in PR #10690:
URL: https://github.com/apache/skywalking/pull/10690#discussion_r1168343909


##########
oap-server/server-starter/src/main/resources/ui-initialized-templates/elasticsearch/elasticsearch-node.json:
##########
@@ -0,0 +1,1067 @@
+/**
+ * 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.
+ */
+[
+  {
+    "id": "Elasticsearch-Node",
+    "configuration": {
+      "children":[
+        {
+          "x":0,
+          "y":7,
+          "w":8,
+          "h":13,
+          "i":"0",
+          "type":"Widget",
+          "id":"0",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_process_cpu_percent"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true,
+            "legend":{
+              "show":true
+            }
+          },
+          "widget":{
+            "title":"Process CPU Usage Percent (%)"
+          }
+        },
+        {
+          "x":16,
+          "y":7,
+          "w":8,
+          "h":13,
+          "i":"1",
+          "type":"Widget",
+          "id":"1",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_os_load1",
+            "meter_elasticsearch_node_os_load5",
+            "meter_elasticsearch_node_os_load15"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Load Average"
+          },
+          "metricConfig":[
+            {
+              "calculation":"percentage"
+            },
+            {
+              "calculation":"percentage"
+            },
+            {
+              "calculation":"percentage"
+            }
+          ]
+        },
+        {
+          "x":0,
+          "y":20,
+          "w":6,
+          "h":13,
+          "i":"2",
+          "type":"Widget",
+          "id":"2",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_jvm_memory_heap_used",
+            "meter_elasticsearch_node_jvm_memory_heap_max",
+            "meter_elasticsearch_node_jvm_memory_nonheap_used"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Area",
+            "opacity":0.4,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToMB"
+            },
+            {
+              "calculation":"byteToMB"
+            },
+            {
+              "calculation":"byteToMB"
+            }
+          ],
+          "widget":{
+            "title":"JVM Memory Usage (MB)"
+          }
+        },
+        {
+          "x":6,
+          "y":20,
+          "w":6,
+          "h":13,
+          "i":"3",
+          "type":"Widget",
+          "id":"3",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_jvm_memory_pool_peak_used"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Area",
+            "opacity":0.4,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"JVM Pool Peak Used (MB)"
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToMB"
+            }
+          ],
+          "relatedTrace":{
+            "refIdType":"none"
+          }
+        },
+        {
+          "x":12,
+          "y":20,
+          "w":6,
+          "h":13,
+          "i":"4",
+          "type":"Widget",
+          "id":"4",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_jvm_gc_count"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Bar",
+            "showBackground":true
+          },
+          "widget":{
+            "title":"GC Count"
+          }
+        },
+        {
+          "x":18,
+          "y":20,
+          "w":6,
+          "h":13,
+          "i":"5",
+          "type":"Widget",
+          "id":"5",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_jvm_gc_time"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"GC Time (ms/min)"
+          },
+          "metricConfig":[
+            {
+              "calculation":""
+            }
+          ]
+        },
+        {
+          "x":0,
+          "y":33,
+          "w":8,
+          "h":13,
+          "i":"6",
+          "type":"Widget",
+          "id":"6",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_indices_indexing_index_total_req_rate",
+            "meter_elasticsearch_node_indices_search_query_total_req_rate",
+            "meter_elasticsearch_node_indices_search_fetch_total_req_rate",
+            "meter_elasticsearch_node_indices_merges_total_req_rate",
+            "meter_elasticsearch_node_indices_refresh_total_req_rate",
+            "meter_elasticsearch_node_indices_flush_total_req_rate",
+            "meter_elasticsearch_node_indices_get_exists_total_req_rate",
+            "meter_elasticsearch_node_indices_get_missing_total_req_rate",
+            "meter_elasticsearch_node_indices_get_total_req_rate",
+            "meter_elasticsearch_node_indices_indexing_delete_total_req_rate",
+            "meter_elasticsearch_node_indices_search_scroll_total_req_rate",
+            "meter_elasticsearch_node_indices_search_suggest_total_req_rate"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"All Operations ReqRate"
+          },
+          "metricConfig":[
+
+          ]
+        },
+        {
+          "x":16,
+          "y":33,
+          "w":8,
+          "h":13,
+          "i":"7",
+          "type":"Widget",
+          "id":"7",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            
"meter_elasticsearch_node_indices_search_query_time_seconds_proc_rate",
+            "meter_elasticsearch_node_indices_search_query_total_req_rate"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Searching Rate",
+            "tips":"`ProcRate`: processing ability, which is the number of 
requests that Elasticsearch can handle. Estimation is based on the processed 
requests and processed time for these requests."
+          },
+          "metricConfig":[
+
+          ]
+        },
+        {
+          "x":0,
+          "y":46,
+          "w":6,
+          "h":13,
+          "i":"9",
+          "type":"Widget",
+          "id":"9",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_indices_translog_operations"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Total Translog Operations"
+          }
+        },
+        {
+          "x":6,
+          "y":46,
+          "w":6,
+          "h":13,
+          "i":"10",
+          "type":"Widget",
+          "id":"10",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_indices_translog_size"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Total Translog Size (MB)"
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToMB"
+            }
+          ]
+        },
+        {
+          "x":12,
+          "y":46,
+          "w":6,
+          "h":13,
+          "i":"11",
+          "type":"Widget",
+          "id":"11",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_breakers_tripped"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Tripped For Breakers"
+          }
+        },
+        {
+          "x":18,
+          "y":46,
+          "w":6,
+          "h":13,
+          "i":"12",
+          "type":"Widget",
+          "id":"12",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_breakers_estimated_size"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToMB"
+            }
+          ],
+          "widget":{
+            "title":"Estimated Size Of Breaker (MB)"
+          }
+        },
+        {
+          "x":8,
+          "y":86,
+          "w":8,
+          "h":13,
+          "i":"13",
+          "type":"Widget",
+          "id":"13",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_segment_memory"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToMB"
+            }
+          ],
+          "widget":{
+            "title":"Current Memory Size Of Segments (MB)"
+          }
+        },
+        {
+          "x":0,
+          "y":99,
+          "w":6,
+          "h":14,
+          "i":"14",
+          "type":"Widget",
+          "id":"14",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_disk_usage_percent"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true,
+            "legend":{
+              "show":true
+            }
+          },
+          "widget":{
+            "title":"Disk Usage Percent (%)"
+          },
+          "metricConfig":[
+            {
+              "calculation":""
+            }
+          ]
+        },
+        {
+          "x":0,
+          "y":59,
+          "w":8,
+          "h":13,
+          "i":"15",
+          "type":"Widget",
+          "id":"15",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_indices_docs"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "metricConfig":[
+
+          ],
+          "widget":{
+            "title":"Documents Count"
+          }
+        },
+        {
+          "x":0,
+          "y":86,
+          "w":8,
+          "h":13,
+          "i":"16",
+          "type":"Widget",
+          "id":"16",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_segment_count"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Bar",
+            "showBackground":true
+          },
+          "widget":{
+            "title":"Count Of Index Segments"
+          }
+        },
+        {
+          "x":0,
+          "y":0,
+          "w":6,
+          "h":7,
+          "i":"17",
+          "type":"Widget",
+          "id":"17",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_rules"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Table",
+            "showTableValues":false,
+            "tableHeaderCol1":"Client-Data-Ingest-Master",
+            "tableHeaderCol2":""
+          },
+          "widget":{
+            "title":"Node Rules"
+          }
+        },
+        {
+          "x":12,
+          "y":0,
+          "w":3,
+          "h":7,
+          "i":"18",
+          "type":"Widget",
+          "id":"18",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_indices_docs"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "widget":{
+            "title":"Documents"
+          }
+        },
+        {
+          "x":8,
+          "y":7,
+          "w":8,
+          "h":13,
+          "i":"26",
+          "type":"Widget",
+          "id":"26",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_os_cpu_percent"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true,
+            "legend":{
+              "show":true
+            }
+          },
+          "widget":{
+            "title":"OS CPU Usage Persent (%)"
+          }
+        },
+        {
+          "x":6,
+          "y":99,
+          "w":6,
+          "h":14,
+          "i":"27",
+          "type":"Widget",
+          "id":"27",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_disk_usage"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true,
+            "legend":{
+              "show":true
+            }
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToGB"
+            }
+          ],
+          "widget":{
+            "title":"Disk Usage (GB)"
+          }
+        },
+        {
+          "x":16,
+          "y":86,
+          "w":8,
+          "h":13,
+          "i":"28",
+          "type":"Widget",
+          "id":"28",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_network_send_bytes",
+            "meter_elasticsearch_node_network_receive_bytes"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true,
+            "legend":{
+              "show":true
+            }
+          },
+          "widget":{
+            "title":"Network (bytes/sec)"
+          }
+        },
+        {
+          "x":12,
+          "y":99,
+          "w":6,
+          "h":14,
+          "i":"29",
+          "type":"Widget",
+          "id":"29",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_disk_io_read_bytes"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Disk Read (KBs)"
+          },
+          "metricConfig":[
+            {
+              "unit":"kb"
+            }
+          ]
+        },
+        {
+          "x":15,
+          "y":0,
+          "w":3,
+          "h":7,
+          "i":"30",
+          "type":"Widget",
+          "id":"30",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_segment_count"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "widget":{
+            "title":"Segments"
+          }
+        },
+        {
+          "x":21,
+          "y":0,
+          "w":3,
+          "h":7,
+          "i":"31",
+          "type":"Widget",
+          "id":"31",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_open_file_count"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "widget":{
+            "title":"Open Files"
+          }
+        },
+        {
+          "x":18,
+          "y":99,
+          "w":6,
+          "h":14,
+          "i":"32",
+          "type":"Widget",
+          "id":"32",
+          "metricTypes":[
+            "readLabeledMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_disk_io_write_bytes"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":true,
+            "showXAxis":true,
+            "showYAxis":true,
+            "legend":{
+              "show":true
+            }
+          },
+          "widget":{
+            "title":"Disk Write (KBs)"
+          }
+        },
+        {
+          "x":6,
+          "y":0,
+          "w":3,
+          "h":7,
+          "i":"33",
+          "type":"Widget",
+          "id":"33",
+          "metricTypes":[
+            "readMetricsValue"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_jvm_memory_used"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToMB"
+            }
+          ],
+          "widget":{
+            "title":"JVM Memory Used (MB)"
+          }
+        },
+        {
+          "x":9,
+          "y":0,
+          "w":3,
+          "h":7,
+          "i":"34",
+          "type":"Widget",
+          "id":"34",
+          "metricTypes":[
+            "readMetricsValue"
+          ],
+          "metrics":[
+            "meter_elasticsearch_node_process_cpu_percent"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "widget":{
+            "title":"CPU Percent (%)"

Review Comment:
   ```suggestion
               "title":"CPU Usage (%)"
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to