/**
 * 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-Service-Relation",
    "configuration": {
      "children": [
        {
          "x": 0,
          "y": 0,
          "w": 24,
          "h": 52,
          "i": "0",
          "type": "Tab",
          "widget": {
            "title": "Title"
          },
          "graph": {},
          "metrics": [
            ""
          ],
          "metricTypes": [
            ""
          ],
          "activedTabIndex": 0,
          "children": [
            {
              "name": "Overview",
              "children": [
                {
                  "x": 0,
                  "y": 24,
                  "w": 12,
                  "h": 12,
                  "i": "0",
                  "type": "Widget",
                  "widget": {
                    "title": "Load (Server) (calls or packets / min)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_relation_server_cpm"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 16,
                  "y": 0,
                  "w": 8,
                  "h": 12,
                  "i": "1",
                  "type": "Widget",
                  "widget": {
                    "title": "Successful Rate (Server) (%)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_relation_server_call_sla"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "percentage"
                    }
                  ]
                },
                {
                  "x": 8,
                  "y": 0,
                  "w": 8,
                  "h": 12,
                  "i": "2",
                  "type": "Widget",
                  "widget": {
                    "title": "Response Time Percentile (Server) (ms)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_relation_server_percentile"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "label": "P50, P75, P90, P95, P99",
                      "labelsIndex": "0,1,2,3,4"
                    }
                  ]
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 8,
                  "h": 12,
                  "i": "3",
                  "type": "Widget",
                  "widget": {
                    "title": "Response Time (Server) (ms)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_relation_server_resp_time"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 12,
                  "w": 8,
                  "h": 12,
                  "i": "4",
                  "type": "Widget",
                  "widget": {
                    "title": "Response Time (Client) (ms)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_relation_client_resp_time"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 8,
                  "y": 12,
                  "w": 8,
                  "h": 12,
                  "i": "5",
                  "type": "Widget",
                  "widget": {
                    "title": "Response Time Percentile (Client) (ms)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_relation_client_percentile"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "label": "P50, P75, P90, P95, P99",
                      "labelsIndex": "0,1,2,3,4"
                    }
                  ]
                },
                {
                  "x": 16,
                  "y": 12,
                  "w": 8,
                  "h": 12,
                  "i": "6",
                  "type": "Widget",
                  "widget": {
                    "title": "Successful Rate (Client) (%)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_relation_client_call_sla"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "percentage"
                    }
                  ]
                },
                {
                  "x": 0,
                  "y": 36,
                  "w": 12,
                  "h": 12,
                  "i": "7",
                  "type": "Widget",
                  "widget": {
                    "title": "Load (Client) (calls or packets / min)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_relation_client_cpm"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 12,
                  "y": 24,
                  "w": 12,
                  "h": 12,
                  "i": "8",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Throughput (Server) (Bytes)",
                    "tips": "This metrics is only avaible for TCP services"
                  },
                  "graph": {},
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false
                },
                {
                  "x": 12,
                  "y": 36,
                  "w": 12,
                  "h": 12,
                  "i": "9",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Throughput  (Client) (Bytes)",
                    "tips": "This metrics is only avaible for TCP services"
                  },
                  "graph": {},
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 48,
                  "w": 6,
                  "h": 12,
                  "i": "10",
                  "type": "Widget",
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "metrics": [
                    "service_client_sidecar_internal_req_latency_nanos"
                  ],
                  "moved": false,
                  "widget": {
                    "title": "Proxy Sidecar Internal Latency in Nanoseconds (Client 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": 48,
                  "w": 6,
                  "h": 12,
                  "i": "11",
                  "type": "Widget",
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "metrics": [
                    "service_server_sidecar_internal_resp_latency_nanos"
                  ],
                  "moved": false,
                  "widget": {
                    "title": "Proxy Sidecar Internal Latency in Nanoseconds (Server Response)",
                    "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
                  }
                },
                {
                  "x": 6,
                  "y": 48,
                  "w": 6,
                  "h": 12,
                  "i": "12",
                  "type": "Widget",
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "metrics": [
                    "service_relation_client_resp_time"
                  ],
                  "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 (Client Response)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  }
                },
                {
                  "x": 12,
                  "y": 48,
                  "w": 6,
                  "h": 12,
                  "i": "13",
                  "type": "Widget",
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "metrics": [
                    "service_server_sidecar_internal_req_latency_nanos"
                  ],
                  "moved": false,
                  "widget": {
                    "title": "Proxy Sidecar Internal Latency in Nanoseconds (Server 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
                  }
                }
              ]
            },
            {
              "name": "Topology",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 49,
                  "i": "0",
                  "type": "Topology",
                  "widget": {
                    "title": "Title"
                  },
                  "graph": {
                    "showDepth": true
                  },
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false,
                  "linkDashboard": "Mesh-Instance-Relation",
                  "nodeDashboard": "Mesh-Instance",
                  "linkServerMetrics": [
                    "service_instance_relation_server_resp_time",
                    "service_instance_relation_server_cpm"
                  ],
                  "linkClientMetrics": [
                    "service_instance_relation_client_resp_time",
                    "service_instance_relation_client_cpm"
                  ],
                  "nodeMetrics": [
                    "service_instance_sla",
                    "service_instance_cpm",
                    "service_instance_resp_time"
                  ],
                  "legend": [],
                  "description": {},
                  "nodeMetricConfig": [
                    {
                      "unit": "%",
                      "calculation": "percentage",
                      "label": "Success Rate"
                    },
                    {
                      "unit": "calls or packets / min",
                      "label": "Load"
                    },
                    {
                      "unit": "ms",
                      "label": "Latency"
                    }
                  ],
                  "linkServerMetricConfig": [
                    {
                      "unit": "ms",
                      "label": "Server Latency"
                    },
                    {
                      "unit": "calls or packets / min ",
                      "label": "Server Load"
                    }
                  ],
                  "linkClientMetricConfig": [
                    {
                      "unit": "ms",
                      "label": "Client Latency"
                    },
                    {
                      "unit": "calls or packets / min",
                      "label": "Client Load"
                    }
                  ]
                }
              ]
            },
            {
              "name": "Envoy Proxy",
              "children": [
                {
                  "x": 0,
                  "y": 26,
                  "w": 8,
                  "h": 13,
                  "i": "20",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Connection None Healthy Increase (Per Minute)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_sr_cluster_up_cx_none_healthy_incr"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 16,
                  "y": 13,
                  "w": 8,
                  "h": 13,
                  "i": "21",
                  "type": "Widget",
                  "widget": {
                    "title": "LB Healthy Panic Increase (Per Minute)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_sr_cluster_lb_healthy_panic_incr"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 8,
                  "y": 13,
                  "w": 8,
                  "h": 13,
                  "i": "22",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Request Pending Active"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_sr_cluster_up_rq_pending_active"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 8,
                  "h": 13,
                  "i": "23",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Connection Active"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_sr_cluster_up_cx_active"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 16,
                  "y": 0,
                  "w": 8,
                  "h": 13,
                  "i": "24",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Request Active"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_sr_cluster_up_rq_active"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 8,
                  "y": 0,
                  "w": 8,
                  "h": 13,
                  "i": "25",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Connection Increase (Per Minute)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_sr_cluster_up_cx_incr"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 13,
                  "w": 8,
                  "h": 13,
                  "i": "26",
                  "type": "Widget",
                  "widget": {
                    "title": "Upstream Request Increase (Per Minute)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "envoy_sr_cluster_up_rq_incr"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                }
              ]
            }
          ],
          "moved": false
        }
      ],
      "layer": "MESH",
      "entity": "ServiceRelation",
      "name": "Mesh-Service-Relation",
      "id": "Mesh-Service-Relation",
      "isRoot": false
    }
  }
]
