/**
 * 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": "Self-Observability-OAP-Instance",
    "configuration": {
      "children": [
        {
          "x": 12,
          "y": 0,
          "w": 6,
          "h": 13,
          "i": "0",
          "type": "Widget",
          "widget": {
            "title": "GC Count (Per Minute)"
          },
          "graph": {
            "type": "Bar",
            "showBackground": true
          },
          "metrics": [
            "meter_oap_instance_jvm_gc_count"
          ],
          "metricTypes": [
            "readLabeledMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 6,
          "y": 0,
          "w": 6,
          "h": 13,
          "i": "1",
          "type": "Widget",
          "widget": {
            "title": "Memory (MB)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_instance_jvm_memory_bytes_used"
          ],
          "metricTypes": [
            "readMetricsValues"
          ],
          "moved": false,
          "metricConfig": [
            {
              "calculation": "byteToMB"
            }
          ]
        },
        {
          "x": 18,
          "y": 0,
          "w": 6,
          "h": 13,
          "i": "2",
          "type": "Widget",
          "widget": {
            "title": "GC Time (ms / min)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_instance_jvm_young_gc_time",
            "meter_oap_instance_jvm_old_gc_time"
          ],
          "metricTypes": [
            "readMetricsValues",
            "readMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 12,
          "y": 13,
          "w": 6,
          "h": 13,
          "i": "3",
          "type": "Widget",
          "widget": {
            "title": "Mesh Analysis Count (Per Minute)"
          },
          "graph": {
            "type": "Bar",
            "showBackground": true
          },
          "metrics": [
            "meter_oap_instance_mesh_count",
            "meter_oap_instance_mesh_analysis_error_count"
          ],
          "metricTypes": [
            "readMetricsValues",
            "readMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 6,
          "y": 13,
          "w": 6,
          "h": 13,
          "i": "4",
          "type": "Widget",
          "widget": {
            "title": "Trace Analysis Latency (ms)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_instance_trace_latency_percentile"
          ],
          "metricTypes": [
            "readLabeledMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 12,
          "y": 39,
          "w": 6,
          "h": 13,
          "i": "5",
          "type": "Widget",
          "widget": {
            "title": "Class Count"
          },
          "graph": {
            "type": "Area",
            "opacity": 0.4,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_jvm_class_loaded_count",
            "meter_oap_jvm_class_total_unloaded_count",
            "meter_oap_jvm_class_total_loaded_count"
          ],
          "metricTypes": [
            "readMetricsValues",
            "readMetricsValues",
            "readMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 6,
          "y": 26,
          "w": 6,
          "h": 13,
          "i": "6",
          "type": "Widget",
          "widget": {
            "title": "Persistence Count (Per 5 Minutes)"
          },
          "graph": {
            "type": "Bar",
            "showBackground": true
          },
          "metrics": [
            "meter_oap_instance_persistence_prepare_count",
            "meter_oap_instance_persistence_execute_count"
          ],
          "metricTypes": [
            "readMetricsValues",
            "readMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 0,
          "y": 39,
          "w": 6,
          "h": 13,
          "i": "7",
          "type": "Widget",
          "widget": {
            "title": "Thread Count"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_jvm_thread_live_count",
            "meter_oap_jvm_thread_peak_count",
            "meter_oap_jvm_thread_daemon_count"
          ],
          "metricTypes": [
            "readMetricsValues",
            "readMetricsValues",
            "readMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 18,
          "y": 26,
          "w": 6,
          "h": 13,
          "i": "8",
          "type": "Widget",
          "widget": {
            "title": "Persistence Execution Latency (ms)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_instance_persistence_execute_percentile"
          ],
          "metricTypes": [
            "readLabeledMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 12,
          "y": 26,
          "w": 6,
          "h": 13,
          "i": "9",
          "type": "Widget",
          "widget": {
            "title": "Persistence Preparing Latency (ms)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_instance_persistence_prepare_percentile"
          ],
          "metricTypes": [
            "readLabeledMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 6,
          "y": 39,
          "w": 6,
          "h": 13,
          "i": "10",
          "type": "Widget",
          "widget": {
            "title": "Thread State Count"
          },
          "graph": {
            "type": "Bar",
            "showBackground": true
          },
          "metrics": [
            "meter_oap_jvm_thread_runnable_count",
            "meter_oap_jvm_thread_timed_waiting_count",
            "meter_oap_jvm_thread_blocked_count",
            "meter_oap_jvm_thread_waiting_count"
          ],
          "metricTypes": [
            "readMetricsValues",
            "readMetricsValues",
            "readMetricsValues",
            "readMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 0,
          "y": 26,
          "w": 6,
          "h": 13,
          "i": "11",
          "type": "Widget",
          "widget": {
            "title": "Aggregation (Per Minute)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_instance_metrics_aggregation"
          ],
          "metricTypes": [
            "readLabeledMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 18,
          "y": 13,
          "w": 6,
          "h": 13,
          "i": "12",
          "type": "Widget",
          "widget": {
            "title": "Mesh Analysis Latency (ms)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_instance_mesh_latency_percentile"
          ],
          "metricTypes": [
            "readLabeledMetricsValues"
          ],
          "moved": false,
          "metricConfig": [
            {
              "label": "50,70,90,99",
              "labelsIndex": "50,70,90,99"
            }
          ]
        },
        {
          "x": 0,
          "y": 13,
          "w": 6,
          "h": 13,
          "i": "13",
          "type": "Widget",
          "widget": {
            "title": "Trace Analysis Count (Per Minute)"
          },
          "graph": {
            "type": "Bar",
            "showBackground": true
          },
          "metrics": [
            "meter_oap_instance_trace_count",
            "meter_oap_instance_trace_analysis_error_count"
          ],
          "metricTypes": [
            "readMetricsValues",
            "readMetricsValues"
          ],
          "moved": false
        },
        {
          "x": 0,
          "y": 0,
          "w": 6,
          "h": 13,
          "i": "14",
          "type": "Widget",
          "widget": {
            "title": "CPU (%)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": false,
            "showXAxis": true,
            "showYAxis": true
          },
          "metrics": [
            "meter_oap_instance_cpu_percentage"
          ],
          "metricTypes": [
            "readMetricsValues"
          ],
          "moved": false
        }
      ],
      "layer": "SO11Y_OAP",
      "entity": "ServiceInstance",
      "name": "Self-Observability-OAP-Instance",
      "id": "Self-Observability-OAP-Instance",
      "isRoot": false
    }
  }
]
