/**
 * 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": "General-Instance",
    "configuration": {
      "children": [
        {
          "x": 0,
          "y": 0,
          "w": 24,
          "h": 52,
          "i": "0",
          "type": "Tab",
          "widget": {
            "title": "Title"
          },
          "graph": {},
          "metrics": [
            ""
          ],
          "metricTypes": [
            ""
          ],
          "activedTabIndex": 3,
          "children": [
            {
              "name": "Overview",
              "children": [
                {
                  "x": 0,
                  "y": 14,
                  "w": 12,
                  "h": 13,
                  "i": "0",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Instance Latency (ms)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_instance_resp_time"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 12,
                  "y": 0,
                  "w": 12,
                  "h": 14,
                  "i": "1",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Instance Success Rate (%)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_instance_sla"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "percentage"
                    }
                  ]
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 12,
                  "h": 14,
                  "i": "3",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Instance Load (calls / min)",
                    "tips": "For HTTP 1/2, gRPC, RPC services, this means Calls Per Minute (calls / min), for TCP services, this means Packets Per Minute (PPM)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_instance_cpm"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 12,
                  "y": 14,
                  "w": 12,
                  "h": 13,
                  "i": "10",
                  "type": "Widget",
                  "widget": {
                    "title": "Database Connection Pool"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "meter_datasource"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 27,
                  "w": 12,
                  "h": 14,
                  "i": "16",
                  "type": "Widget",
                  "widget": {
                    "title": "Thread Pool"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "meter_thread_pool"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false
                }
              ]
            },
            {
              "name": "Trace",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 49,
                  "i": "0",
                  "type": "Trace",
                  "widget": {
                    "title": "Title"
                  },
                  "graph": {},
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false
                }
              ]
            },
            {
              "name": "Log",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 49,
                  "i": "0",
                  "type": "Log",
                  "widget": {
                    "title": "Title"
                  },
                  "graph": {},
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false
                }
              ]
            },
            {
              "name": "JVM",
              "children": [
                {
                  "x": 8,
                  "y": 0,
                  "w": 8,
                  "h": 13,
                  "i": "5",
                  "type": "Widget",
                  "widget": {
                    "title": "JVM Memory (MB)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "instance_jvm_memory_noheap_max",
                    "instance_jvm_memory_noheap",
                    "instance_jvm_memory_heap",
                    "instance_jvm_memory_heap_max"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "byteToMB"
                    },
                    {
                      "calculation": "byteToMB"
                    },
                    {
                      "calculation": "byteToMB"
                    },
                    {
                      "calculation": "byteToMB"
                    }
                  ]
                },
                {
                  "x": 8,
                  "y": 13,
                  "w": 8,
                  "h": 13,
                  "i": "12",
                  "type": "Widget",
                  "widget": {
                    "title": "JVM Thread Count"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "instance_jvm_thread_live_count",
                    "instance_jvm_thread_daemon_count",
                    "instance_jvm_thread_peak_count"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 16,
                  "y": 13,
                  "w": 8,
                  "h": 13,
                  "i": "13",
                  "type": "Widget",
                  "widget": {
                    "title": "JVM Thread State Count"
                  },
                  "graph": {
                    "type": "Bar",
                    "showBackground": true
                  },
                  "metrics": [
                    "instance_jvm_thread_timed_waiting_state_thread_count",
                    "instance_jvm_thread_blocked_state_thread_count",
                    "instance_jvm_thread_waiting_state_thread_count",
                    "instance_jvm_thread_runnable_state_thread_count"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 8,
                  "h": 13,
                  "i": "14",
                  "type": "Widget",
                  "widget": {
                    "title": "JVM CPU (%)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "instance_jvm_cpu"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 26,
                  "w": 8,
                  "h": 12,
                  "i": "15",
                  "type": "Widget",
                  "widget": {
                    "title": "JVM Class Count"
                  },
                  "graph": {
                    "type": "Area",
                    "opacity": 0.4,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "instance_jvm_class_loaded_class_count",
                    "instance_jvm_class_total_loaded_class_count",
                    "instance_jvm_class_total_unloaded_class_count"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 16,
                  "y": 0,
                  "w": 8,
                  "h": 13,
                  "i": "6",
                  "type": "Widget",
                  "widget": {
                    "title": "JVM GC Time (ms)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "instance_jvm_young_gc_time",
                    "instance_jvm_old_gc_time",
                    "instance_jvm_normal_gc_time"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 13,
                  "w": 8,
                  "h": 13,
                  "i": "7",
                  "type": "Widget",
                  "widget": {
                    "title": "JVM GC Count"
                  },
                  "graph": {
                    "type": "Bar",
                    "showBackground": true
                  },
                  "metrics": [
                    "instance_jvm_young_gc_count",
                    "instance_jvm_old_gc_count",
                    "instance_jvm_normal_gc_count"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                }
              ]
            },
            {
              "name": ".NET",
              "children": [
                {
                  "x": 18,
                  "y": 0,
                  "w": 6,
                  "h": 13,
                  "i": "4",
                  "type": "Widget",
                  "widget": {
                    "title": "CLR Thread"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "instance_clr_available_worker_threads",
                    "instance_clr_available_completion_port_threads",
                    "instance_clr_max_completion_port_threads"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 12,
                  "y": 0,
                  "w": 6,
                  "h": 13,
                  "i": "8",
                  "type": "Widget",
                  "widget": {
                    "title": "CLR Heap Memory (MB)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "instance_clr_heap_memory"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "byteToMB"
                    }
                  ]
                },
                {
                  "x": 6,
                  "y": 0,
                  "w": 6,
                  "h": 13,
                  "i": "9",
                  "type": "Widget",
                  "widget": {
                    "title": "CLR GC"
                  },
                  "graph": {
                    "type": "Bar",
                    "showBackground": true
                  },
                  "metrics": [
                    "instance_clr_gen1_collect_count",
                    "instance_clr_gen0_collect_count",
                    "instance_clr_gen2_collect_count"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 6,
                  "h": 13,
                  "i": "11",
                  "type": "Widget",
                  "widget": {
                    "title": "CLR CPU  (.NET Service)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "instance_clr_cpu"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                }
              ]
            }
          ],
          "moved": false
        }
      ],
      "layer": "GENERAL",
      "entity": "ServiceInstance",
      "name": "General-Instance",
      "id": "General-Instance",
      "isRoot": false
    }
  }
]
