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


##########
oap-server/server-starter/src/main/resources/ui-initialized-templates/elasticsearch/elasticsearch-index.json:
##########
@@ -0,0 +1,674 @@
+/**
+ * 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-Index",
+    "configuration": {
+      "children":[
+        {
+          "x":0,
+          "y":6,
+          "w":12,
+          "h":13,
+          "i":"0",
+          "type":"Widget",
+          "id":"0",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_stats_indexing_index_total_req_rate",
+            "meter_elasticsearch_index_stats_indexing_index_total_proc_rate"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Indexing rate"
+          }
+        },
+        {
+          "x":12,
+          "y":6,
+          "w":12,
+          "h":13,
+          "i":"1",
+          "type":"Widget",
+          "id":"1",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_stats_search_query_total_req_rate",
+            "meter_elasticsearch_index_stats_search_query_total_proc_rate"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Searching rate"
+          }
+        },
+        {
+          "x":0,
+          "y":19,
+          "w":12,
+          "h":16,
+          "i":"2",
+          "type":"Widget",
+          "id":"2",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_stats_merge_total_req_rate",
+            "meter_elasticsearch_index_stats_flush_total_req_rate",
+            "meter_elasticsearch_index_stats_refresh_total_req_rate",
+            "meter_elasticsearch_index_stats_warmer_total_req_rate",
+            "meter_elasticsearch_index_stats_indexing_delete_total_req_rate",
+            "meter_elasticsearch_index_stats_search_fetch_total_req_rate",
+            "meter_elasticsearch_index_stats_search_query_total_req_rate",
+            "meter_elasticsearch_index_stats_search_scroll_total_req_rate",
+            "meter_elasticsearch_index_stats_search_suggest_total_req_rate",
+            "meter_elasticsearch_index_stats_indexing_index_total_req_rate",
+            "meter_elasticsearch_index_stats_get_total_req_rate"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"All Operations ReqRate"
+          }
+        },
+        {
+          "x":12,
+          "y":19,
+          "w":12,
+          "h":16,
+          "i":"3",
+          "type":"Widget",
+          "id":"3",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_stats_merge_time_seconds_total",
+            "meter_elasticsearch_index_stats_flush_time_seconds_total",
+            "meter_elasticsearch_index_stats_refresh_time_seconds_total",
+            "meter_elasticsearch_index_stats_warmer_time_seconds_total",
+            
"meter_elasticsearch_index_stats_indexing_delete_time_seconds_total",
+            "meter_elasticsearch_index_stats_search_fetch_time_seconds_total",
+            "meter_elasticsearch_index_stats_search_query_time_seconds_total",
+            "meter_elasticsearch_index_stats_search_scroll_time_seconds_total",
+            
"meter_elasticsearch_index_stats_search_suggest_time_seconds_total",
+            
"meter_elasticsearch_index_stats_indexing_index_time_seconds_total",
+            "meter_elasticsearch_index_stats_get_time_seconds_total",
+            "meter_elasticsearch_index_stats_merge_stopped_time_seconds_total",
+            
"meter_elasticsearch_index_stats_merge_throttle_time_seconds_total",
+            
"meter_elasticsearch_index_stats_indexing_throttle_time_seconds_total"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"All Operations Runtime/s"
+          }
+        },
+        {
+          "x":0,
+          "y":35,
+          "w":8,
+          "h":13,
+          "i":"4",
+          "type":"Widget",
+          "id":"4",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_search_fetch_avg_time",
+            "meter_elasticsearch_index_search_query_avg_time",
+            "meter_elasticsearch_index_search_scroll_avg_time",
+            "meter_elasticsearch_index_search_suggest_avg_time"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Avg. Search Time Execute / Request (s)"
+          }
+        },
+        {
+          "x":8,
+          "y":35,
+          "w":8,
+          "h":13,
+          "i":"5",
+          "type":"Widget",
+          "id":"5",
+          "metricTypes":[
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues",
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_stats_search_fetch_total_req_rate",
+            "meter_elasticsearch_index_stats_search_query_total_req_rate",
+            "meter_elasticsearch_index_stats_search_scroll_total_req_rate",
+            "meter_elasticsearch_index_stats_search_suggest_total_req_rate"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "metricConfig":[
+
+          ],
+          "widget":{
+            "title":"Search Operations  Rate (req/s)"
+          }
+        },
+        {
+          "x":16,
+          "y":59,
+          "w":8,
+          "h":11,
+          "i":"6",
+          "type":"Widget",
+          "id":"6",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_store_size_bytes_total"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Total size of stored index data (All Shards)"
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToMB"
+            }
+          ]
+        },
+        {
+          "x":0,
+          "y":59,
+          "w":8,
+          "h":11,
+          "i":"7",
+          "type":"Widget",
+          "id":"7",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_docs_total"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Documents (All Shards)"
+          }
+        },
+        {
+          "x":8,
+          "y":59,
+          "w":8,
+          "h":11,
+          "i":"8",
+          "type":"Widget",
+          "id":"8",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_docs_total_rate"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Documents Rate (All Shards)"
+          }
+        },
+        {
+          "x":0,
+          "y":48,
+          "w":8,
+          "h":11,
+          "i":"9",
+          "type":"Widget",
+          "id":"9",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_docs_primary"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Documents (Primary Shards)"
+          }
+        },
+        {
+          "x":8,
+          "y":48,
+          "w":8,
+          "h":11,
+          "i":"10",
+          "type":"Widget",
+          "id":"10",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_docs_primary_rate"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "widget":{
+            "title":"Documents Rate (Primary Shards)"
+          }
+        },
+        {
+          "x":16,
+          "y":48,
+          "w":8,
+          "h":11,
+          "i":"11",
+          "type":"Widget",
+          "id":"11",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_store_size_bytes_primary"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Line",
+            "step":false,
+            "smooth":false,
+            "showSymbol":false,
+            "showXAxis":true,
+            "showYAxis":true
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToMB"
+            }
+          ],
+          "widget":{
+            "title":"Total size of stored index data (Primary Shards) (MB)"
+          }
+        },
+        {
+          "x":0,
+          "y":0,
+          "w":3,
+          "h":6,
+          "i":"12",
+          "type":"Widget",
+          "id":"12",
+          "metricTypes":[
+            "readMetricsValue"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_docs_primary"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "widget":{
+            "title":"Documents Primary"
+          }
+        },
+        {
+          "x":9,
+          "y":0,
+          "w":3,
+          "h":6,
+          "i":"14",
+          "type":"Widget",
+          "id":"14",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_store_size_bytes_total"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToGB"
+            }
+          ],
+          "widget":{
+            "title":"Data (GB)"
+          }
+        },
+        {
+          "x":6,
+          "y":0,
+          "w":3,
+          "h":6,
+          "i":"15",
+          "type":"Widget",
+          "id":"15",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_store_size_bytes_primary"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "metricConfig":[
+            {
+              "calculation":"byteToGB"
+            }
+          ],
+          "widget":{
+            "title":"Data Primary (GB)"
+          }
+        },
+        {
+          "x":18,
+          "y":0,
+          "w":3,
+          "h":6,
+          "i":"16",
+          "type":"Widget",
+          "id":"16",
+          "metricTypes":[
+            "readMetricsValues"
+          ],
+          "metrics":[
+            "meter_elasticsearch_index_indices_segment_count_total"
+          ],
+          "moved":false,
+          "graph":{
+            "type":"Card",
+            "fontSize":14,
+            "textAlign":"center",
+            "showUnit":true
+          },
+          "widget":{
+            "title":"Segments"

Review Comment:
   ```suggestion
               "title":"Segments Count"
   ```



-- 
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