/**
 * 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": "Mesh-Instance",
    "configuration": {
      "children": [
        {
          "x": 0,
          "y": 0,
          "w": 24,
          "h": 52,
          "i": "1",
          "type": "Tab",
          "widget": {
            "title": "Title"
          },
          "graph": {},
          "metrics": [
            ""
          ],
          "metricTypes": [
            ""
          ],
          "activedTabIndex": 1,
          "children": [
            {
              "name": "Overview",
              "children": [
                {
                  "x": 11,
                  "y": 14,
                  "w": 13,
                  "h": 14,
                  "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": 0,
                  "y": 14,
                  "w": 11,
                  "h": 14,
                  "i": "1",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Instance Successful Rate (%)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_instance_sla"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 11,
                  "y": 0,
                  "w": 13,
                  "h": 14,
                  "i": "2",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Throughput (Bytes)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_throughput_received",
                    "service_throughput_sent"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 11,
                  "h": 14,
                  "i": "3",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Instance Load (calls or packets / min)",
                    "tips": "For HTTP 1/2, gRPC, RPC services, this means Calls Per Minute (calls / min), for TCP services, this means Packets Per Minute (packets / min)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_instance_cpm"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                }
              ]
            },
            {
              "name": "Envoy Proxy",
              "children": [
                {
                  "x": 18,
                  "y": 13,
                  "w": 6,
                  "h": 13,
                  "i": "10",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Request Active"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_cluster_up_rq_active"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 6,
                  "y": 0,
                  "w": 6,
                  "h": 13,
                  "i": "11",
                  "type": "Widget",
                  "widget": {
                    "title": "Connections Used"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_total_connections_used",
                    "envoy_parent_connections_used"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 13,
                  "w": 6,
                  "h": 13,
                  "i": "12",
                  "type": "Widget",
                  "widget": {
                    "title": "Membership Healthy"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_cluster_membership_healthy"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 12,
                  "y": 13,
                  "w": 6,
                  "h": 13,
                  "i": "13",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Connection Increase (Per Minute)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_cluster_up_cx_incr"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 6,
                  "y": 26,
                  "w": 6,
                  "h": 13,
                  "i": "14",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Request Pending Active"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_cluster_up_rq_pending_active"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 6,
                  "h": 13,
                  "i": "15",
                  "type": "Widget",
                  "widget": {
                    "title": "Heap Memory Used (MB)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_memory_allocated_max",
                    "envoy_heap_memory_used",
                    "envoy_memory_allocated",
                    "envoy_memory_physical_size",
                    "envoy_memory_physical_size_max",
                    "envoy_heap_memory_max_used"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "byteToMB"
                    },
                    {
                      "calculation": "byteToMB"
                    },
                    {
                      "calculation": "byteToMB"
                    },
                    {
                      "calculation": "byteToMB"
                    },
                    {
                      "calculation": "byteToMB"
                    },
                    {
                      "calculation": "byteToMB"
                    }
                  ]
                },
                {
                  "x": 18,
                  "y": 0,
                  "w": 6,
                  "h": 13,
                  "i": "16",
                  "type": "Widget",
                  "widget": {
                    "title": "Envoy Bug Failure"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_bug_failures"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 12,
                  "y": 0,
                  "w": 6,
                  "h": 13,
                  "i": "17",
                  "type": "Widget",
                  "widget": {
                    "title": "Concurrency"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_worker_threads_max",
                    "envoy_worker_threads"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 6,
                  "y": 13,
                  "w": 6,
                  "h": 13,
                  "i": "18",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Connection Active"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_cluster_up_cx_active"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 26,
                  "w": 6,
                  "h": 13,
                  "i": "19",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Request Increase (Per Minute)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_cluster_up_rq_incr"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 12,
                  "y": 26,
                  "w": 6,
                  "h": 13,
                  "i": "20",
                  "type": "Widget",
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "metrics": [
                    "service_instance_sidecar_internal_req_latency_nanos"
                  ],
                  "moved": false,
                  "widget": {
                    "title": "Proxy Sidecar Internal Latency in Nanoseconds (Request)",
                    "tips": "For more details to understand this metrics, refer to https://www.envoyproxy.io/docs/envoy/v1.22.0/api-v3/data/accesslog/v3/accesslog.proto.html#data-accesslog-v3-accesslogcommon"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metricConfig": []
                },
                {
                  "x": 18,
                  "y": 26,
                  "w": 6,
                  "h": 13,
                  "i": "21",
                  "type": "Widget",
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "metrics": [
                    "service_instance_sidecar_internal_resp_latency_nanos"
                  ],
                  "moved": false,
                  "widget": {
                    "tips": "For more details to understand this metrics, refer to https://www.envoyproxy.io/docs/envoy/v1.22.0/api-v3/data/accesslog/v3/accesslog.proto.html#data-accesslog-v3-accesslogcommon",
                    "title": "Proxy Sidecar Internal Latency in Nanoseconds (Response)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  }
                }
              ]
            },
            {
              "name": "Envoy Log",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 48,
                  "i": "0",
                  "type": "Log",
                  "widget": {
                    "title": "Title"
                  },
                  "graph": {},
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false
                }
              ]
            }
          ],
          "moved": false
        }
      ],
      "layer": "MESH",
      "entity": "ServiceInstance",
      "name": "Mesh-Instance",
      "id": "Mesh-Instance"
    }
  }
]
