| /** |
| * 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": "K8S-Cluster", |
| "configuration": { |
| "children": [ |
| { |
| "x": 0, |
| "y": 0, |
| "w": 24, |
| "h": 52, |
| "i": "16", |
| "type": "Tab", |
| "widget": { |
| "title": "Title" |
| }, |
| "graph": {}, |
| "metrics": [ |
| "" |
| ], |
| "metricTypes": [ |
| "" |
| ], |
| "activedTabIndex": 1, |
| "children": [ |
| { |
| "name": "Overview", |
| "children": [ |
| { |
| "x": 0, |
| "y": 6, |
| "w": 8, |
| "h": 12, |
| "i": "0", |
| "type": "Widget", |
| "widget": { |
| "title": "CPU Resources (m)" |
| }, |
| "graph": { |
| "type": "Area", |
| "opacity": 0.4, |
| "showXAxis": true, |
| "showYAxis": true |
| }, |
| "metrics": [ |
| "k8s_cluster_cpu_cores", |
| "k8s_cluster_cpu_cores_requests", |
| "k8s_cluster_cpu_cores_limits", |
| "k8s_cluster_cpu_cores_allocatable" |
| ], |
| "metricTypes": [ |
| "readMetricsValues", |
| "readMetricsValues", |
| "readMetricsValues", |
| "readMetricsValues" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 8, |
| "y": 6, |
| "w": 8, |
| "h": 12, |
| "i": "1", |
| "type": "Widget", |
| "widget": { |
| "title": "Memory Resources (Gi)" |
| }, |
| "graph": { |
| "type": "Area", |
| "opacity": 0.4, |
| "showXAxis": true, |
| "showYAxis": true |
| }, |
| "metrics": [ |
| "k8s_cluster_memory_requests", |
| "k8s_cluster_memory_allocatable", |
| "k8s_cluster_memory_limits", |
| "k8s_cluster_memory_total" |
| ], |
| "metricTypes": [ |
| "readMetricsValues", |
| "readMetricsValues", |
| "readMetricsValues", |
| "readMetricsValues" |
| ], |
| "moved": false, |
| "metricConfig": [ |
| { |
| "calculation": "byteToGB" |
| }, |
| { |
| "calculation": "byteToGB" |
| }, |
| { |
| "calculation": "byteToGB" |
| }, |
| { |
| "calculation": "byteToGB" |
| } |
| ] |
| }, |
| { |
| "x": 16, |
| "y": 6, |
| "w": 8, |
| "h": 12, |
| "i": "2", |
| "type": "Widget", |
| "widget": { |
| "title": "Storage Resources (Gi)" |
| }, |
| "graph": { |
| "type": "Area", |
| "opacity": 0.4, |
| "showXAxis": true, |
| "showYAxis": true |
| }, |
| "metrics": [ |
| "k8s_cluster_storage_total", |
| "k8s_cluster_storage_allocatable" |
| ], |
| "metricTypes": [ |
| "readMetricsValues", |
| "readMetricsValues" |
| ], |
| "moved": false, |
| "metricConfig": [ |
| { |
| "calculation": "byteToGB" |
| }, |
| { |
| "calculation": "byteToGB" |
| } |
| ] |
| }, |
| { |
| "x": 16, |
| "y": 34, |
| "w": 8, |
| "h": 14, |
| "i": "3", |
| "type": "Widget", |
| "widget": { |
| "title": "Pod Status Waiting" |
| }, |
| "graph": { |
| "type": "Table", |
| "showTableValues": false, |
| "tableHeaderCol1": "Container-Pod-Waiting Reason", |
| "tableHeaderCol2": "" |
| }, |
| "metrics": [ |
| "k8s_cluster_pod_status_waiting" |
| ], |
| "metricTypes": [ |
| "readLabeledMetricsValues" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 0, |
| "y": 34, |
| "w": 8, |
| "h": 14, |
| "i": "4", |
| "type": "Widget", |
| "widget": { |
| "title": "Service Status" |
| }, |
| "graph": { |
| "type": "Table", |
| "showTableValues": false, |
| "tableHeaderCol1": "Status-Service", |
| "tableHeaderCol2": "" |
| }, |
| "metrics": [ |
| "k8s_cluster_service_pod_status" |
| ], |
| "metricTypes": [ |
| "readLabeledMetricsValues" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 8, |
| "y": 34, |
| "w": 8, |
| "h": 14, |
| "i": "5", |
| "type": "Widget", |
| "widget": { |
| "title": "Pod Status Not Running" |
| }, |
| "graph": { |
| "type": "Table", |
| "showTableValues": false, |
| "tableHeaderCol1": "Status-Pod", |
| "tableHeaderCol2": "" |
| }, |
| "metrics": [ |
| "k8s_cluster_pod_status_not_running" |
| ], |
| "metricTypes": [ |
| "readLabeledMetricsValues" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 0, |
| "y": 18, |
| "w": 8, |
| "h": 16, |
| "i": "6", |
| "type": "Widget", |
| "widget": { |
| "title": "Node Status" |
| }, |
| "graph": { |
| "type": "Table", |
| "showTableValues": false, |
| "tableHeaderCol1": "Status-Node", |
| "tableHeaderCol2": "" |
| }, |
| "metrics": [ |
| "k8s_cluster_node_status" |
| ], |
| "metricTypes": [ |
| "readLabeledMetricsValues" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 16, |
| "y": 18, |
| "w": 8, |
| "h": 16, |
| "i": "7", |
| "type": "Widget", |
| "widget": { |
| "title": "Deployment Spec Replicas" |
| }, |
| "graph": { |
| "type": "Table", |
| "showTableValues": true, |
| "tableHeaderCol1": "Deployment", |
| "tableHeaderCol2": "Replicas" |
| }, |
| "metrics": [ |
| "k8s_cluster_deployment_spec_replicas" |
| ], |
| "metricTypes": [ |
| "readLabeledMetricsValues" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 8, |
| "y": 18, |
| "w": 8, |
| "h": 16, |
| "i": "8", |
| "type": "Widget", |
| "widget": { |
| "title": "Deployment Status" |
| }, |
| "graph": { |
| "type": "Table", |
| "showTableValues": false, |
| "tableHeaderCol1": "Deployment-Available", |
| "tableHeaderCol2": "" |
| }, |
| "metrics": [ |
| "k8s_cluster_deployment_status" |
| ], |
| "metricTypes": [ |
| "readLabeledMetricsValues" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 20, |
| "y": 0, |
| "w": 4, |
| "h": 6, |
| "i": "10", |
| "type": "Widget", |
| "widget": { |
| "title": "Container Total" |
| }, |
| "graph": { |
| "type": "Card", |
| "fontSize": 14, |
| "textAlign": "center", |
| "showUint": true |
| }, |
| "metrics": [ |
| "k8s_cluster_container_total" |
| ], |
| "metricTypes": [ |
| "readMetricsValue" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 16, |
| "y": 0, |
| "w": 4, |
| "h": 6, |
| "i": "11", |
| "type": "Widget", |
| "widget": { |
| "title": "Pod Total" |
| }, |
| "graph": { |
| "type": "Card", |
| "fontSize": 14, |
| "textAlign": "center", |
| "showUint": true |
| }, |
| "metrics": [ |
| "k8s_cluster_pod_total" |
| ], |
| "metricTypes": [ |
| "readMetricsValue" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 12, |
| "y": 0, |
| "w": 4, |
| "h": 6, |
| "i": "12", |
| "type": "Widget", |
| "widget": { |
| "title": "Service Total" |
| }, |
| "graph": { |
| "type": "Card", |
| "fontSize": 14, |
| "textAlign": "center", |
| "showUint": true |
| }, |
| "metrics": [ |
| "k8s_cluster_service_total" |
| ], |
| "metricTypes": [ |
| "readMetricsValue" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 0, |
| "y": 0, |
| "w": 4, |
| "h": 6, |
| "i": "13", |
| "type": "Widget", |
| "widget": { |
| "title": "Node Total" |
| }, |
| "graph": { |
| "type": "Card", |
| "fontSize": 14, |
| "textAlign": "center", |
| "showUint": true |
| }, |
| "metrics": [ |
| "k8s_cluster_node_total" |
| ], |
| "metricTypes": [ |
| "readMetricsValue" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 4, |
| "y": 0, |
| "w": 4, |
| "h": 6, |
| "i": "14", |
| "type": "Widget", |
| "widget": { |
| "title": "Namespace Total" |
| }, |
| "graph": { |
| "type": "Card", |
| "fontSize": 14, |
| "textAlign": "center", |
| "showUint": true |
| }, |
| "metrics": [ |
| "k8s_cluster_namespace_total" |
| ], |
| "metricTypes": [ |
| "readMetricsValue" |
| ], |
| "moved": false |
| }, |
| { |
| "x": 8, |
| "y": 0, |
| "w": 4, |
| "h": 6, |
| "i": "15", |
| "type": "Widget", |
| "widget": { |
| "title": "Deployment Total" |
| }, |
| "graph": { |
| "type": "Card", |
| "fontSize": 14, |
| "textAlign": "center", |
| "showUint": true |
| }, |
| "metrics": [ |
| "k8s_cluster_deployment_total" |
| ], |
| "metricTypes": [ |
| "readMetricsValue" |
| ], |
| "moved": false |
| } |
| ] |
| }, |
| { |
| "name": "Node", |
| "children": [ |
| { |
| "x": 0, |
| "y": 0, |
| "w": 24, |
| "h": 48, |
| "i": "0", |
| "type": "Widget", |
| "widget": { |
| "title": "" |
| }, |
| "graph": { |
| "type": "InstanceList", |
| "dashboardName": "K8S-Node", |
| "fontSize": 12 |
| }, |
| "metrics": [ |
| "k8s_node_cpu_usage", |
| "k8s_node_pod_total" |
| ], |
| "metricTypes": [ |
| "readMetricsValues", |
| "readMetricsValues" |
| ], |
| "moved": false, |
| "metricConfig": [ |
| { |
| "label": "CPU Usage", |
| "unit": "m", |
| "calculation": "average" |
| }, |
| { |
| "calculation": "average", |
| "label": "Pod" |
| } |
| ] |
| } |
| ] |
| } |
| ], |
| "moved": false |
| } |
| ], |
| "layer": "K8S", |
| "entity": "Service", |
| "name": "K8S-Cluster", |
| "id": "K8S-Cluster", |
| "isRoot": false |
| } |
| } |
| ] |