2187 lines
		
	
	
	
		
			59 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
		
		
			
		
	
	
			2187 lines
		
	
	
	
		
			59 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
|  | { | ||
|  |   "annotations": { | ||
|  |     "list": [ | ||
|  |       { | ||
|  |         "builtIn": 1, | ||
|  |         "datasource": { | ||
|  |           "type": "grafana", | ||
|  |           "uid": "-- Grafana --" | ||
|  |         }, | ||
|  |         "enable": true, | ||
|  |         "hide": true, | ||
|  |         "iconColor": "rgba(0, 211, 255, 1)", | ||
|  |         "name": "Annotations & Alerts", | ||
|  |         "type": "dashboard" | ||
|  |       } | ||
|  |     ] | ||
|  |   }, | ||
|  |   "editable": true, | ||
|  |   "fiscalYearStartMonth": 0, | ||
|  |   "graphTooltip": 0, | ||
|  |   "links": [], | ||
|  |   "panels": [ | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "percentunit" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "id": 1, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "colorMode": "none", | ||
|  |         "graphMode": "area", | ||
|  |         "justifyMode": "auto", | ||
|  |         "orientation": "auto", | ||
|  |         "percentChangeColorMode": "standard", | ||
|  |         "reduceOptions": { | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "fields": "", | ||
|  |           "values": false | ||
|  |         }, | ||
|  |         "showPercentChange": false, | ||
|  |         "textMode": "auto", | ||
|  |         "wideLayout": true | ||
|  |       }, | ||
|  |       "pluginVersion": "11.2.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) / sum(kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"})", | ||
|  |           "instant": true, | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "CPU Utilisation (from requests)", | ||
|  |       "type": "stat" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "percentunit" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 3, | ||
|  |         "w": 6, | ||
|  |         "x": 6, | ||
|  |         "y": 0 | ||
|  |       }, | ||
|  |       "id": 2, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "colorMode": "none", | ||
|  |         "graphMode": "area", | ||
|  |         "justifyMode": "auto", | ||
|  |         "orientation": "auto", | ||
|  |         "percentChangeColorMode": "standard", | ||
|  |         "reduceOptions": { | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "fields": "", | ||
|  |           "values": false | ||
|  |         }, | ||
|  |         "showPercentChange": false, | ||
|  |         "textMode": "auto", | ||
|  |         "wideLayout": true | ||
|  |       }, | ||
|  |       "pluginVersion": "11.2.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) / sum(kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"})", | ||
|  |           "instant": true, | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "CPU Utilisation (from limits)", | ||
|  |       "type": "stat" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "percentunit" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 3, | ||
|  |         "w": 6, | ||
|  |         "x": 12, | ||
|  |         "y": 0 | ||
|  |       }, | ||
|  |       "id": 3, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "colorMode": "none", | ||
|  |         "graphMode": "area", | ||
|  |         "justifyMode": "auto", | ||
|  |         "orientation": "auto", | ||
|  |         "percentChangeColorMode": "standard", | ||
|  |         "reduceOptions": { | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "fields": "", | ||
|  |           "values": false | ||
|  |         }, | ||
|  |         "showPercentChange": false, | ||
|  |         "textMode": "auto", | ||
|  |         "wideLayout": true | ||
|  |       }, | ||
|  |       "pluginVersion": "11.2.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) / sum(kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"})", | ||
|  |           "instant": true, | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Memory Utilisation (from requests)", | ||
|  |       "type": "stat" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "percentunit" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 3, | ||
|  |         "w": 6, | ||
|  |         "x": 18, | ||
|  |         "y": 0 | ||
|  |       }, | ||
|  |       "id": 4, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "colorMode": "none", | ||
|  |         "graphMode": "area", | ||
|  |         "justifyMode": "auto", | ||
|  |         "orientation": "auto", | ||
|  |         "percentChangeColorMode": "standard", | ||
|  |         "reduceOptions": { | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "fields": "", | ||
|  |           "values": false | ||
|  |         }, | ||
|  |         "showPercentChange": false, | ||
|  |         "textMode": "auto", | ||
|  |         "wideLayout": true | ||
|  |       }, | ||
|  |       "pluginVersion": "11.2.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) / sum(kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"})", | ||
|  |           "instant": true, | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Memory Utilisation (from limits)", | ||
|  |       "type": "stat" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "default": false, | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "color": { | ||
|  |             "mode": "palette-classic" | ||
|  |           }, | ||
|  |           "custom": { | ||
|  |             "axisBorderShow": false, | ||
|  |             "axisCenteredZero": false, | ||
|  |             "axisColorMode": "text", | ||
|  |             "axisLabel": "", | ||
|  |             "axisPlacement": "auto", | ||
|  |             "barAlignment": 0, | ||
|  |             "barWidthFactor": 0.6, | ||
|  |             "drawStyle": "line", | ||
|  |             "fillOpacity": 10, | ||
|  |             "gradientMode": "none", | ||
|  |             "hideFrom": { | ||
|  |               "legend": false, | ||
|  |               "tooltip": false, | ||
|  |               "viz": false | ||
|  |             }, | ||
|  |             "insertNulls": false, | ||
|  |             "lineInterpolation": "linear", | ||
|  |             "lineWidth": 1, | ||
|  |             "pointSize": 5, | ||
|  |             "scaleDistribution": { | ||
|  |               "type": "linear" | ||
|  |             }, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true, | ||
|  |             "stacking": { | ||
|  |               "group": "A", | ||
|  |               "mode": "none" | ||
|  |             }, | ||
|  |             "thresholdsStyle": { | ||
|  |               "mode": "off" | ||
|  |             } | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         }, | ||
|  |         "overrides": [ | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byFrameRefID", | ||
|  |               "options": "B" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "custom.lineStyle", | ||
|  |                 "value": { | ||
|  |                   "fill": "dash" | ||
|  |                 } | ||
|  |               }, | ||
|  |               { | ||
|  |                 "id": "custom.lineWidth", | ||
|  |                 "value": 2 | ||
|  |               }, | ||
|  |               { | ||
|  |                 "id": "color", | ||
|  |                 "value": { | ||
|  |                   "fixedColor": "red", | ||
|  |                   "mode": "fixed" | ||
|  |                 } | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byFrameRefID", | ||
|  |               "options": "C" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "custom.lineStyle", | ||
|  |                 "value": { | ||
|  |                   "fill": "dash" | ||
|  |                 } | ||
|  |               }, | ||
|  |               { | ||
|  |                 "id": "custom.lineWidth", | ||
|  |                 "value": 2 | ||
|  |               }, | ||
|  |               { | ||
|  |                 "id": "color", | ||
|  |                 "value": { | ||
|  |                   "fixedColor": "orange", | ||
|  |                   "mode": "fixed" | ||
|  |                 } | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         ] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 24, | ||
|  |         "x": 0, | ||
|  |         "y": 3 | ||
|  |       }, | ||
|  |       "id": 5, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single", | ||
|  |           "sort": "none" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "disableTextWrap": false, | ||
|  |           "editorMode": "builder", | ||
|  |           "expr": "sum by(pod) (irate(container_cpu_usage_seconds_total{namespace=\"$namespace\"}[$__interval]))", | ||
|  |           "fullMetaSearch": false, | ||
|  |           "includeNullMetadata": true, | ||
|  |           "legendFormat": "__auto", | ||
|  |           "range": true, | ||
|  |           "refId": "A", | ||
|  |           "useBackend": false | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "editorMode": "builder", | ||
|  |           "expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"requests.cpu\"})", | ||
|  |           "legendFormat": "quota - requests", | ||
|  |           "range": true, | ||
|  |           "refId": "B" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"limits.cpu\"})", | ||
|  |           "legendFormat": "quota - limits", | ||
|  |           "refId": "C" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "CPU Usage", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "custom": { | ||
|  |             "align": "auto", | ||
|  |             "cellOptions": { | ||
|  |               "type": "auto" | ||
|  |             }, | ||
|  |             "inspect": false | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         }, | ||
|  |         "overrides": [ | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byRegexp", | ||
|  |               "options": "/%/" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "unit", | ||
|  |                 "value": "percentunit" | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byName", | ||
|  |               "options": "Pod" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "links", | ||
|  |                 "value": [ | ||
|  |                   { | ||
|  |                     "title": "Drill down to pods", | ||
|  |                     "url": "/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-pod=${__data.fields.Pod}" | ||
|  |                   } | ||
|  |                 ] | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         ] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 24, | ||
|  |         "x": 0, | ||
|  |         "y": 10 | ||
|  |       }, | ||
|  |       "id": 6, | ||
|  |       "options": { | ||
|  |         "cellHeight": "sm", | ||
|  |         "footer": { | ||
|  |           "countRows": false, | ||
|  |           "fields": "", | ||
|  |           "reducer": [ | ||
|  |             "sum" | ||
|  |           ], | ||
|  |           "show": false | ||
|  |         }, | ||
|  |         "showHeader": true | ||
|  |       }, | ||
|  |       "pluginVersion": "11.2.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "A" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "B" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "C" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "D" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "E" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "CPU Quota", | ||
|  |       "transformations": [ | ||
|  |         { | ||
|  |           "id": "joinByField", | ||
|  |           "options": { | ||
|  |             "byField": "pod", | ||
|  |             "mode": "outer" | ||
|  |           } | ||
|  |         }, | ||
|  |         { | ||
|  |           "id": "organize", | ||
|  |           "options": { | ||
|  |             "excludeByName": { | ||
|  |               "Time": true, | ||
|  |               "Time 1": true, | ||
|  |               "Time 2": true, | ||
|  |               "Time 3": true, | ||
|  |               "Time 4": true, | ||
|  |               "Time 5": true | ||
|  |             }, | ||
|  |             "indexByName": { | ||
|  |               "Time 1": 0, | ||
|  |               "Time 2": 1, | ||
|  |               "Time 3": 2, | ||
|  |               "Time 4": 3, | ||
|  |               "Time 5": 4, | ||
|  |               "Value #A": 6, | ||
|  |               "Value #B": 7, | ||
|  |               "Value #C": 8, | ||
|  |               "Value #D": 9, | ||
|  |               "Value #E": 10, | ||
|  |               "pod": 5 | ||
|  |             }, | ||
|  |             "renameByName": { | ||
|  |               "Value #A": "CPU Usage", | ||
|  |               "Value #B": "CPU Requests", | ||
|  |               "Value #C": "CPU Requests %", | ||
|  |               "Value #D": "CPU Limits", | ||
|  |               "Value #E": "CPU Limits %", | ||
|  |               "pod": "Pod" | ||
|  |             } | ||
|  |           } | ||
|  |         } | ||
|  |       ], | ||
|  |       "type": "table" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "color": { | ||
|  |             "mode": "palette-classic" | ||
|  |           }, | ||
|  |           "custom": { | ||
|  |             "axisBorderShow": false, | ||
|  |             "axisCenteredZero": false, | ||
|  |             "axisColorMode": "text", | ||
|  |             "axisLabel": "", | ||
|  |             "axisPlacement": "auto", | ||
|  |             "barAlignment": 0, | ||
|  |             "barWidthFactor": 0.6, | ||
|  |             "drawStyle": "line", | ||
|  |             "fillOpacity": 10, | ||
|  |             "gradientMode": "none", | ||
|  |             "hideFrom": { | ||
|  |               "legend": false, | ||
|  |               "tooltip": false, | ||
|  |               "viz": false | ||
|  |             }, | ||
|  |             "insertNulls": false, | ||
|  |             "lineInterpolation": "linear", | ||
|  |             "lineWidth": 1, | ||
|  |             "pointSize": 5, | ||
|  |             "scaleDistribution": { | ||
|  |               "type": "linear" | ||
|  |             }, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true, | ||
|  |             "stacking": { | ||
|  |               "group": "A", | ||
|  |               "mode": "none" | ||
|  |             }, | ||
|  |             "thresholdsStyle": { | ||
|  |               "mode": "off" | ||
|  |             } | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "bytes" | ||
|  |         }, | ||
|  |         "overrides": [ | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byFrameRefID", | ||
|  |               "options": "B" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "custom.lineStyle", | ||
|  |                 "value": { | ||
|  |                   "fill": "dash" | ||
|  |                 } | ||
|  |               }, | ||
|  |               { | ||
|  |                 "id": "custom.lineWidth", | ||
|  |                 "value": 2 | ||
|  |               }, | ||
|  |               { | ||
|  |                 "id": "color", | ||
|  |                 "value": { | ||
|  |                   "fixedColor": "red", | ||
|  |                   "mode": "fixed" | ||
|  |                 } | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byFrameRefID", | ||
|  |               "options": "C" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "custom.lineStyle", | ||
|  |                 "value": { | ||
|  |                   "fill": "dash" | ||
|  |                 } | ||
|  |               }, | ||
|  |               { | ||
|  |                 "id": "custom.lineWidth", | ||
|  |                 "value": 2 | ||
|  |               }, | ||
|  |               { | ||
|  |                 "id": "color", | ||
|  |                 "value": { | ||
|  |                   "fixedColor": "orange", | ||
|  |                   "mode": "fixed" | ||
|  |                 } | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         ] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 24, | ||
|  |         "x": 0, | ||
|  |         "y": 17 | ||
|  |       }, | ||
|  |       "id": 7, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single", | ||
|  |           "sort": "none" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"requests.memory\"})", | ||
|  |           "legendFormat": "quota - requests", | ||
|  |           "refId": "B" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"limits.memory\"})", | ||
|  |           "legendFormat": "quota - limits", | ||
|  |           "refId": "C" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Memory Usage (w/o cache)", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "custom": { | ||
|  |             "align": "auto", | ||
|  |             "cellOptions": { | ||
|  |               "type": "auto" | ||
|  |             }, | ||
|  |             "inspect": false | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "bytes" | ||
|  |         }, | ||
|  |         "overrides": [ | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byRegexp", | ||
|  |               "options": "/%/" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "unit", | ||
|  |                 "value": "percentunit" | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byName", | ||
|  |               "options": "Pod" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "links", | ||
|  |                 "value": [ | ||
|  |                   { | ||
|  |                     "title": "Drill down to pods", | ||
|  |                     "url": "/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-pod=${__data.fields.Pod}" | ||
|  |                   } | ||
|  |                 ] | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         ] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 24, | ||
|  |         "x": 0, | ||
|  |         "y": 24 | ||
|  |       }, | ||
|  |       "id": 8, | ||
|  |       "options": { | ||
|  |         "cellHeight": "sm", | ||
|  |         "footer": { | ||
|  |           "countRows": false, | ||
|  |           "fields": "", | ||
|  |           "reducer": [ | ||
|  |             "sum" | ||
|  |           ], | ||
|  |           "show": false | ||
|  |         }, | ||
|  |         "showHeader": true | ||
|  |       }, | ||
|  |       "pluginVersion": "11.2.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "A" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "B" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "C" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "D" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "E" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_rss{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "F" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_cache{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "G" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(container_memory_swap{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "H" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Memory Quota", | ||
|  |       "transformations": [ | ||
|  |         { | ||
|  |           "id": "joinByField", | ||
|  |           "options": { | ||
|  |             "byField": "pod", | ||
|  |             "mode": "outer" | ||
|  |           } | ||
|  |         }, | ||
|  |         { | ||
|  |           "id": "organize", | ||
|  |           "options": { | ||
|  |             "excludeByName": { | ||
|  |               "Time": true, | ||
|  |               "Time 1": true, | ||
|  |               "Time 2": true, | ||
|  |               "Time 3": true, | ||
|  |               "Time 4": true, | ||
|  |               "Time 5": true, | ||
|  |               "Time 6": true, | ||
|  |               "Time 7": true, | ||
|  |               "Time 8": true | ||
|  |             }, | ||
|  |             "indexByName": { | ||
|  |               "Time 1": 0, | ||
|  |               "Time 2": 1, | ||
|  |               "Time 3": 2, | ||
|  |               "Time 4": 3, | ||
|  |               "Time 5": 4, | ||
|  |               "Time 6": 5, | ||
|  |               "Time 7": 6, | ||
|  |               "Time 8": 7, | ||
|  |               "Value #A": 9, | ||
|  |               "Value #B": 10, | ||
|  |               "Value #C": 11, | ||
|  |               "Value #D": 12, | ||
|  |               "Value #E": 13, | ||
|  |               "Value #F": 14, | ||
|  |               "Value #G": 15, | ||
|  |               "Value #H": 16, | ||
|  |               "pod": 8 | ||
|  |             }, | ||
|  |             "renameByName": { | ||
|  |               "Value #A": "Memory Usage", | ||
|  |               "Value #B": "Memory Requests", | ||
|  |               "Value #C": "Memory Requests %", | ||
|  |               "Value #D": "Memory Limits", | ||
|  |               "Value #E": "Memory Limits %", | ||
|  |               "Value #F": "Memory Usage (RSS)", | ||
|  |               "Value #G": "Memory Usage (Cache)", | ||
|  |               "Value #H": "Memory Usage (Swap)", | ||
|  |               "pod": "Pod" | ||
|  |             } | ||
|  |           } | ||
|  |         } | ||
|  |       ], | ||
|  |       "type": "table" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "custom": { | ||
|  |             "align": "auto", | ||
|  |             "cellOptions": { | ||
|  |               "type": "auto" | ||
|  |             }, | ||
|  |             "inspect": false | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         }, | ||
|  |         "overrides": [ | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byRegexp", | ||
|  |               "options": "/Bandwidth/" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "unit", | ||
|  |                 "value": "Bps" | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byRegexp", | ||
|  |               "options": "/Packets/" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "unit", | ||
|  |                 "value": "pps" | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byName", | ||
|  |               "options": "Pod" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "links", | ||
|  |                 "value": [ | ||
|  |                   { | ||
|  |                     "title": "Drill down to pods", | ||
|  |                     "url": "/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-pod=${__data.fields.Pod}" | ||
|  |                   } | ||
|  |                 ] | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         ] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 24, | ||
|  |         "x": 0, | ||
|  |         "y": 31 | ||
|  |       }, | ||
|  |       "id": 9, | ||
|  |       "options": { | ||
|  |         "cellHeight": "sm", | ||
|  |         "footer": { | ||
|  |           "countRows": false, | ||
|  |           "fields": "", | ||
|  |           "reducer": [ | ||
|  |             "sum" | ||
|  |           ], | ||
|  |           "show": false | ||
|  |         }, | ||
|  |         "showHeader": true | ||
|  |       }, | ||
|  |       "pluginVersion": "11.2.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(rate(container_network_receive_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "A" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(rate(container_network_transmit_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "B" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(rate(container_network_receive_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "C" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(rate(container_network_transmit_packets_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "D" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(rate(container_network_receive_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "E" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(rate(container_network_transmit_packets_dropped_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "F" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Current Network Usage", | ||
|  |       "transformations": [ | ||
|  |         { | ||
|  |           "id": "joinByField", | ||
|  |           "options": { | ||
|  |             "byField": "pod", | ||
|  |             "mode": "outer" | ||
|  |           } | ||
|  |         }, | ||
|  |         { | ||
|  |           "id": "organize", | ||
|  |           "options": { | ||
|  |             "excludeByName": { | ||
|  |               "Time": true, | ||
|  |               "Time 1": true, | ||
|  |               "Time 2": true, | ||
|  |               "Time 3": true, | ||
|  |               "Time 4": true, | ||
|  |               "Time 5": true, | ||
|  |               "Time 6": true | ||
|  |             }, | ||
|  |             "indexByName": { | ||
|  |               "Time 1": 0, | ||
|  |               "Time 2": 1, | ||
|  |               "Time 3": 2, | ||
|  |               "Time 4": 3, | ||
|  |               "Time 5": 4, | ||
|  |               "Time 6": 5, | ||
|  |               "Value #A": 7, | ||
|  |               "Value #B": 8, | ||
|  |               "Value #C": 9, | ||
|  |               "Value #D": 10, | ||
|  |               "Value #E": 11, | ||
|  |               "Value #F": 12, | ||
|  |               "pod": 6 | ||
|  |             }, | ||
|  |             "renameByName": { | ||
|  |               "Value #A": "Current Receive Bandwidth", | ||
|  |               "Value #B": "Current Transmit Bandwidth", | ||
|  |               "Value #C": "Rate of Received Packets", | ||
|  |               "Value #D": "Rate of Transmitted Packets", | ||
|  |               "Value #E": "Rate of Received Packets Dropped", | ||
|  |               "Value #F": "Rate of Transmitted Packets Dropped", | ||
|  |               "pod": "Pod" | ||
|  |             } | ||
|  |           } | ||
|  |         } | ||
|  |       ], | ||
|  |       "type": "table" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "color": { | ||
|  |             "mode": "palette-classic" | ||
|  |           }, | ||
|  |           "custom": { | ||
|  |             "axisBorderShow": false, | ||
|  |             "axisCenteredZero": false, | ||
|  |             "axisColorMode": "text", | ||
|  |             "axisLabel": "", | ||
|  |             "axisPlacement": "auto", | ||
|  |             "barAlignment": 0, | ||
|  |             "barWidthFactor": 0.6, | ||
|  |             "drawStyle": "line", | ||
|  |             "fillOpacity": 10, | ||
|  |             "gradientMode": "none", | ||
|  |             "hideFrom": { | ||
|  |               "legend": false, | ||
|  |               "tooltip": false, | ||
|  |               "viz": false | ||
|  |             }, | ||
|  |             "insertNulls": false, | ||
|  |             "lineInterpolation": "linear", | ||
|  |             "lineWidth": 1, | ||
|  |             "pointSize": 5, | ||
|  |             "scaleDistribution": { | ||
|  |               "type": "linear" | ||
|  |             }, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true, | ||
|  |             "stacking": { | ||
|  |               "group": "A", | ||
|  |               "mode": "none" | ||
|  |             }, | ||
|  |             "thresholdsStyle": { | ||
|  |               "mode": "off" | ||
|  |             } | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "Bps" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 12, | ||
|  |         "x": 0, | ||
|  |         "y": 38 | ||
|  |       }, | ||
|  |       "id": 10, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single", | ||
|  |           "sort": "none" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(rate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Receive Bandwidth", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "color": { | ||
|  |             "mode": "palette-classic" | ||
|  |           }, | ||
|  |           "custom": { | ||
|  |             "axisBorderShow": false, | ||
|  |             "axisCenteredZero": false, | ||
|  |             "axisColorMode": "text", | ||
|  |             "axisLabel": "", | ||
|  |             "axisPlacement": "auto", | ||
|  |             "barAlignment": 0, | ||
|  |             "barWidthFactor": 0.6, | ||
|  |             "drawStyle": "line", | ||
|  |             "fillOpacity": 10, | ||
|  |             "gradientMode": "none", | ||
|  |             "hideFrom": { | ||
|  |               "legend": false, | ||
|  |               "tooltip": false, | ||
|  |               "viz": false | ||
|  |             }, | ||
|  |             "insertNulls": false, | ||
|  |             "lineInterpolation": "linear", | ||
|  |             "lineWidth": 1, | ||
|  |             "pointSize": 5, | ||
|  |             "scaleDistribution": { | ||
|  |               "type": "linear" | ||
|  |             }, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true, | ||
|  |             "stacking": { | ||
|  |               "group": "A", | ||
|  |               "mode": "none" | ||
|  |             }, | ||
|  |             "thresholdsStyle": { | ||
|  |               "mode": "off" | ||
|  |             } | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "Bps" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 12, | ||
|  |         "x": 12, | ||
|  |         "y": 38 | ||
|  |       }, | ||
|  |       "id": 11, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single", | ||
|  |           "sort": "none" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(rate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Transmit Bandwidth", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "color": { | ||
|  |             "mode": "palette-classic" | ||
|  |           }, | ||
|  |           "custom": { | ||
|  |             "axisBorderShow": false, | ||
|  |             "axisCenteredZero": false, | ||
|  |             "axisColorMode": "text", | ||
|  |             "axisLabel": "", | ||
|  |             "axisPlacement": "auto", | ||
|  |             "barAlignment": 0, | ||
|  |             "barWidthFactor": 0.6, | ||
|  |             "drawStyle": "line", | ||
|  |             "fillOpacity": 10, | ||
|  |             "gradientMode": "none", | ||
|  |             "hideFrom": { | ||
|  |               "legend": false, | ||
|  |               "tooltip": false, | ||
|  |               "viz": false | ||
|  |             }, | ||
|  |             "insertNulls": false, | ||
|  |             "lineInterpolation": "linear", | ||
|  |             "lineWidth": 1, | ||
|  |             "pointSize": 5, | ||
|  |             "scaleDistribution": { | ||
|  |               "type": "linear" | ||
|  |             }, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true, | ||
|  |             "stacking": { | ||
|  |               "group": "A", | ||
|  |               "mode": "none" | ||
|  |             }, | ||
|  |             "thresholdsStyle": { | ||
|  |               "mode": "off" | ||
|  |             } | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "pps" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 12, | ||
|  |         "x": 0, | ||
|  |         "y": 45 | ||
|  |       }, | ||
|  |       "id": 12, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single", | ||
|  |           "sort": "none" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Rate of Received Packets", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "color": { | ||
|  |             "mode": "palette-classic" | ||
|  |           }, | ||
|  |           "custom": { | ||
|  |             "axisBorderShow": false, | ||
|  |             "axisCenteredZero": false, | ||
|  |             "axisColorMode": "text", | ||
|  |             "axisLabel": "", | ||
|  |             "axisPlacement": "auto", | ||
|  |             "barAlignment": 0, | ||
|  |             "barWidthFactor": 0.6, | ||
|  |             "drawStyle": "line", | ||
|  |             "fillOpacity": 10, | ||
|  |             "gradientMode": "none", | ||
|  |             "hideFrom": { | ||
|  |               "legend": false, | ||
|  |               "tooltip": false, | ||
|  |               "viz": false | ||
|  |             }, | ||
|  |             "insertNulls": false, | ||
|  |             "lineInterpolation": "linear", | ||
|  |             "lineWidth": 1, | ||
|  |             "pointSize": 5, | ||
|  |             "scaleDistribution": { | ||
|  |               "type": "linear" | ||
|  |             }, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true, | ||
|  |             "stacking": { | ||
|  |               "group": "A", | ||
|  |               "mode": "none" | ||
|  |             }, | ||
|  |             "thresholdsStyle": { | ||
|  |               "mode": "off" | ||
|  |             } | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "pps" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 12, | ||
|  |         "x": 12, | ||
|  |         "y": 45 | ||
|  |       }, | ||
|  |       "id": 13, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single", | ||
|  |           "sort": "none" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Rate of Transmitted Packets", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "color": { | ||
|  |             "mode": "palette-classic" | ||
|  |           }, | ||
|  |           "custom": { | ||
|  |             "axisBorderShow": false, | ||
|  |             "axisCenteredZero": false, | ||
|  |             "axisColorMode": "text", | ||
|  |             "axisLabel": "", | ||
|  |             "axisPlacement": "auto", | ||
|  |             "barAlignment": 0, | ||
|  |             "barWidthFactor": 0.6, | ||
|  |             "drawStyle": "line", | ||
|  |             "fillOpacity": 10, | ||
|  |             "gradientMode": "none", | ||
|  |             "hideFrom": { | ||
|  |               "legend": false, | ||
|  |               "tooltip": false, | ||
|  |               "viz": false | ||
|  |             }, | ||
|  |             "insertNulls": false, | ||
|  |             "lineInterpolation": "linear", | ||
|  |             "lineWidth": 1, | ||
|  |             "pointSize": 5, | ||
|  |             "scaleDistribution": { | ||
|  |               "type": "linear" | ||
|  |             }, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true, | ||
|  |             "stacking": { | ||
|  |               "group": "A", | ||
|  |               "mode": "none" | ||
|  |             }, | ||
|  |             "thresholdsStyle": { | ||
|  |               "mode": "off" | ||
|  |             } | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "pps" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 12, | ||
|  |         "x": 0, | ||
|  |         "y": 52 | ||
|  |       }, | ||
|  |       "id": 14, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single", | ||
|  |           "sort": "none" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Rate of Received Packets Dropped", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "color": { | ||
|  |             "mode": "palette-classic" | ||
|  |           }, | ||
|  |           "custom": { | ||
|  |             "axisBorderShow": false, | ||
|  |             "axisCenteredZero": false, | ||
|  |             "axisColorMode": "text", | ||
|  |             "axisLabel": "", | ||
|  |             "axisPlacement": "auto", | ||
|  |             "barAlignment": 0, | ||
|  |             "barWidthFactor": 0.6, | ||
|  |             "drawStyle": "line", | ||
|  |             "fillOpacity": 10, | ||
|  |             "gradientMode": "none", | ||
|  |             "hideFrom": { | ||
|  |               "legend": false, | ||
|  |               "tooltip": false, | ||
|  |               "viz": false | ||
|  |             }, | ||
|  |             "insertNulls": false, | ||
|  |             "lineInterpolation": "linear", | ||
|  |             "lineWidth": 1, | ||
|  |             "pointSize": 5, | ||
|  |             "scaleDistribution": { | ||
|  |               "type": "linear" | ||
|  |             }, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true, | ||
|  |             "stacking": { | ||
|  |               "group": "A", | ||
|  |               "mode": "none" | ||
|  |             }, | ||
|  |             "thresholdsStyle": { | ||
|  |               "mode": "off" | ||
|  |             } | ||
|  |           }, | ||
|  |           "mappings": [], | ||
|  |           "thresholds": { | ||
|  |             "mode": "absolute", | ||
|  |             "steps": [ | ||
|  |               { | ||
|  |                 "color": "green", | ||
|  |                 "value": null | ||
|  |               }, | ||
|  |               { | ||
|  |                 "color": "red", | ||
|  |                 "value": 80 | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           "unit": "pps" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 12, | ||
|  |         "x": 12, | ||
|  |         "y": 52 | ||
|  |       }, | ||
|  |       "id": 15, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single", | ||
|  |           "sort": "none" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])) by (pod)", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Rate of Transmitted Packets Dropped", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "custom": { | ||
|  |             "fillOpacity": 10, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true | ||
|  |           }, | ||
|  |           "unit": "iops" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 12, | ||
|  |         "x": 0, | ||
|  |         "y": 59 | ||
|  |       }, | ||
|  |       "id": 16, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "ceil(sum by(pod) (rate(container_fs_reads_total{container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]) + rate(container_fs_writes_total{container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval])))", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "IOPS(Reads+Writes)", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": { | ||
|  |           "custom": { | ||
|  |             "fillOpacity": 10, | ||
|  |             "showPoints": "never", | ||
|  |             "spanNulls": true | ||
|  |           }, | ||
|  |           "unit": "Bps" | ||
|  |         }, | ||
|  |         "overrides": [] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 12, | ||
|  |         "x": 12, | ||
|  |         "y": 59 | ||
|  |       }, | ||
|  |       "id": 17, | ||
|  |       "interval": "1m", | ||
|  |       "options": { | ||
|  |         "legend": { | ||
|  |           "asTable": true, | ||
|  |           "calcs": [ | ||
|  |             "lastNotNull" | ||
|  |           ], | ||
|  |           "displayMode": "table", | ||
|  |           "placement": "right", | ||
|  |           "showLegend": true | ||
|  |         }, | ||
|  |         "tooltip": { | ||
|  |           "mode": "single" | ||
|  |         } | ||
|  |       }, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{container!=\"\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))", | ||
|  |           "legendFormat": "__auto", | ||
|  |           "refId": "A" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "ThroughPut(Read+Write)", | ||
|  |       "type": "timeseries" | ||
|  |     }, | ||
|  |     { | ||
|  |       "datasource": { | ||
|  |         "type": "datasource", | ||
|  |         "uid": "-- Mixed --" | ||
|  |       }, | ||
|  |       "fieldConfig": { | ||
|  |         "defaults": {}, | ||
|  |         "overrides": [ | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byRegexp", | ||
|  |               "options": "/IOPS/" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "unit", | ||
|  |                 "value": "iops" | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byRegexp", | ||
|  |               "options": "/Throughput/" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "unit", | ||
|  |                 "value": "Bps" | ||
|  |               } | ||
|  |             ] | ||
|  |           }, | ||
|  |           { | ||
|  |             "matcher": { | ||
|  |               "id": "byName", | ||
|  |               "options": "Pod" | ||
|  |             }, | ||
|  |             "properties": [ | ||
|  |               { | ||
|  |                 "id": "links", | ||
|  |                 "value": [ | ||
|  |                   { | ||
|  |                     "title": "Drill down to pods", | ||
|  |                     "url": "/d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-pod=${__data.fields.Pod}" | ||
|  |                   } | ||
|  |                 ] | ||
|  |               } | ||
|  |             ] | ||
|  |           } | ||
|  |         ] | ||
|  |       }, | ||
|  |       "gridPos": { | ||
|  |         "h": 7, | ||
|  |         "w": 24, | ||
|  |         "x": 0, | ||
|  |         "y": 66 | ||
|  |       }, | ||
|  |       "id": 18, | ||
|  |       "pluginVersion": "v11.0.0", | ||
|  |       "targets": [ | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum by(pod) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "A" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum by(pod) (rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "B" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum by(pod) (rate(container_fs_reads_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]) + rate(container_fs_writes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "C" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "D" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum by(pod) (rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "E" | ||
|  |         }, | ||
|  |         { | ||
|  |           "datasource": { | ||
|  |             "type": "prometheus", | ||
|  |             "uid": "${datasource}" | ||
|  |           }, | ||
|  |           "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]) + rate(container_fs_writes_bytes_total{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", device=~\"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)\", container!=\"\", cluster=\"$cluster\", namespace=\"$namespace\"}[$__rate_interval]))", | ||
|  |           "format": "table", | ||
|  |           "instant": true, | ||
|  |           "refId": "F" | ||
|  |         } | ||
|  |       ], | ||
|  |       "title": "Current Storage IO", | ||
|  |       "transformations": [ | ||
|  |         { | ||
|  |           "id": "joinByField", | ||
|  |           "options": { | ||
|  |             "byField": "pod", | ||
|  |             "mode": "outer" | ||
|  |           } | ||
|  |         }, | ||
|  |         { | ||
|  |           "id": "organize", | ||
|  |           "options": { | ||
|  |             "excludeByName": { | ||
|  |               "Time": true, | ||
|  |               "Time 1": true, | ||
|  |               "Time 2": true, | ||
|  |               "Time 3": true, | ||
|  |               "Time 4": true, | ||
|  |               "Time 5": true, | ||
|  |               "Time 6": true | ||
|  |             }, | ||
|  |             "indexByName": { | ||
|  |               "Time 1": 0, | ||
|  |               "Time 2": 1, | ||
|  |               "Time 3": 2, | ||
|  |               "Time 4": 3, | ||
|  |               "Time 5": 4, | ||
|  |               "Time 6": 5, | ||
|  |               "Value #A": 7, | ||
|  |               "Value #B": 8, | ||
|  |               "Value #C": 9, | ||
|  |               "Value #D": 10, | ||
|  |               "Value #E": 11, | ||
|  |               "Value #F": 12, | ||
|  |               "pod": 6 | ||
|  |             }, | ||
|  |             "renameByName": { | ||
|  |               "Value #A": "IOPS(Reads)", | ||
|  |               "Value #B": "IOPS(Writes)", | ||
|  |               "Value #C": "IOPS(Reads + Writes)", | ||
|  |               "Value #D": "Throughput(Read)", | ||
|  |               "Value #E": "Throughput(Write)", | ||
|  |               "Value #F": "Throughput(Read + Write)", | ||
|  |               "pod": "Pod" | ||
|  |             } | ||
|  |           } | ||
|  |         } | ||
|  |       ], | ||
|  |       "type": "table" | ||
|  |     } | ||
|  |   ], | ||
|  |   "refresh": "10s", | ||
|  |   "schemaVersion": 39, | ||
|  |   "tags": [ | ||
|  |     "mine" | ||
|  |   ], | ||
|  |   "templating": { | ||
|  |     "list": [ | ||
|  |       { | ||
|  |         "current": { | ||
|  |           "selected": false, | ||
|  |           "text": "default", | ||
|  |           "value": "default" | ||
|  |         }, | ||
|  |         "hide": 0, | ||
|  |         "includeAll": false, | ||
|  |         "label": "Data source", | ||
|  |         "multi": false, | ||
|  |         "name": "datasource", | ||
|  |         "options": [], | ||
|  |         "query": "prometheus", | ||
|  |         "refresh": 1, | ||
|  |         "regex": "", | ||
|  |         "skipUrlSync": false, | ||
|  |         "type": "datasource" | ||
|  |       }, | ||
|  |       { | ||
|  |         "allValue": ".*", | ||
|  |         "current": { | ||
|  |           "isNone": true, | ||
|  |           "selected": false, | ||
|  |           "text": "None", | ||
|  |           "value": "" | ||
|  |         }, | ||
|  |         "datasource": { | ||
|  |           "type": "prometheus", | ||
|  |           "uid": "${datasource}" | ||
|  |         }, | ||
|  |         "definition": "", | ||
|  |         "hide": 2, | ||
|  |         "includeAll": false, | ||
|  |         "label": "cluster", | ||
|  |         "multi": false, | ||
|  |         "name": "cluster", | ||
|  |         "options": [], | ||
|  |         "query": "label_values(up{job=\"kube-state-metrics\"}, cluster)", | ||
|  |         "refresh": 2, | ||
|  |         "regex": "", | ||
|  |         "skipUrlSync": false, | ||
|  |         "sort": 1, | ||
|  |         "type": "query" | ||
|  |       }, | ||
|  |       { | ||
|  |         "current": { | ||
|  |           "selected": false, | ||
|  |           "text": "ollama", | ||
|  |           "value": "ollama" | ||
|  |         }, | ||
|  |         "datasource": { | ||
|  |           "type": "prometheus", | ||
|  |           "uid": "${datasource}" | ||
|  |         }, | ||
|  |         "definition": "", | ||
|  |         "hide": 0, | ||
|  |         "includeAll": false, | ||
|  |         "label": "namespace", | ||
|  |         "multi": false, | ||
|  |         "name": "namespace", | ||
|  |         "options": [], | ||
|  |         "query": "label_values(kube_namespace_status_phase{job=\"kube-state-metrics\", cluster=\"$cluster\"}, namespace)", | ||
|  |         "refresh": 2, | ||
|  |         "regex": "", | ||
|  |         "skipUrlSync": false, | ||
|  |         "sort": 1, | ||
|  |         "type": "query" | ||
|  |       } | ||
|  |     ] | ||
|  |   }, | ||
|  |   "time": { | ||
|  |     "from": "now-1h", | ||
|  |     "to": "now" | ||
|  |   }, | ||
|  |   "timepicker": {}, | ||
|  |   "timezone": "utc", | ||
|  |   "title": "Compute Resources / Namespace (Pods)", | ||
|  |   "uid": "078cdf77779eaa1add43ccec1e", | ||
|  |   "version": 1, | ||
|  |   "weekStart": "" | ||
|  | } |