{ "__inputs": [ { "name": "DS_KUBE-PROMETHEUS", "label": "Kube-prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "10.0.2" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 18, "panels": [], "title": "Pods Count", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "__systemRef": "hideSeriesFrom", "matcher": { "id": "byNames", "options": { "mode": "exclude", "names": [ "kube-metrics-kube-state-metrics-7f54cddf7c-hm6jq" ], "prefix": "All except:", "readOnly": true } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": false, "tooltip": false, "viz": false } } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 1 }, "id": 10, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": false }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.3.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "exemplar": false, "expr": "count by(pod) (kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "instant": false, "interval": "", "legendFormat": "{{label_name}}", "range": true, "refId": "A" } ], "title": "Count Timeline", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 5, "x": 12, "y": 1 }, "id": 16, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "builder", "exemplar": false, "expr": "count by(pod) (kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "format": "time_series", "instant": false, "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "Count", "type": "stat" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 9 }, "id": 19, "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 10 }, "id": 20, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(exported_pod) (kube_pod_container_resource_requests{exported_namespace=\"$namespace\", resource=\"cpu\", unit=\"core\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "instant": false, "legendFormat": "{{pod}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (sum by(exported_pod) (kube_pod_container_resource_requests{exported_namespace=\"$namespace\", resource=\"cpu\", unit=\"core\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "instant": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "CPU requests (cores)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 10 }, "id": 21, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(exported_pod) (kube_pod_container_resource_requests{exported_namespace=\"$namespace\", resource=\"memory\", unit=\"byte\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "instant": false, "legendFormat": "{{label_name}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (sum by(exported_pod) (kube_pod_container_resource_requests{exported_namespace=\"$namespace\", resource=\"memory\", unit=\"byte\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "instant": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "RAM requests", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 18 }, "id": 22, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(exported_pod) (kube_pod_container_resource_limits{exported_namespace=\"$namespace\", resource=\"cpu\", unit=\"core\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "instant": false, "legendFormat": "{{exported_pod}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (sum by(exported_pod) (kube_pod_container_resource_limits{exported_namespace=\"$namespace\", resource=\"cpu\", unit=\"core\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "instant": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "CPU limits (cores)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 18 }, "id": 23, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(exported_pod) (kube_pod_container_resource_limits{exported_namespace=\"$namespace\", resource=\"memory\", unit=\"byte\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "instant": false, "legendFormat": "{{exported_pod}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (sum by(exported_pod) (kube_pod_container_resource_limits{exported_namespace=\"$namespace\", resource=\"memory\", unit=\"byte\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "instant": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "RAM limits", "type": "timeseries" } ], "title": "Resources requests/limits", "type": "row" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 10 }, "id": 12, "panels": [], "title": "Resources usage", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "Overall" }, "properties": [ { "id": "color", "value": { "fixedColor": "#F2495C", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 11 }, "id": 1, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "exemplar": false, "expr": "label_replace(sum by(pod) (rate(container_cpu_usage_seconds_total{container!~\"POD|\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "hide": false, "legendFormat": "{{pod}}", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_cpu_usage_seconds_total{container!~\"POD|\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "legendFormat": "Overall", "range": true, "refId": "A" } ], "title": "CPU (cores)", "transformations": [], "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 11 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "label_replace(sum by(pod) (container_memory_working_set_bytes{namespace=\"$namespace\"}), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "legendFormat": "{{pod}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (container_memory_working_set_bytes{namespace=\"$namespace\"}), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "RAM (MB)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "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": 9, "w": 12, "x": 0, "y": 20 }, "id": 4, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "label_replace(sum by(pod) (rate(container_fs_writes_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "legendFormat": "{{pod}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_fs_writes_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "Disk Write", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "binBps" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 20 }, "id": 3, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "label_replace(sum by(pod) (rate(container_fs_reads_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "legendFormat": "{{pod}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_fs_reads_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "Disk Read", "type": "timeseries" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 29 }, "id": 14, "panels": [], "title": "Network", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "Bps" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 30 }, "id": 6, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "label_replace(sum by(pod) (rate(container_network_receive_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "instant": false, "legendFormat": "{{pod}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_network_receive_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "instant": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "Receive Bandwidth", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "Bps" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 30 }, "id": 8, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "label_replace(sum by(pod) (rate(container_network_transmit_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}", "instant": false, "legendFormat": "{{pod}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "editorMode": "code", "expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_network_transmit_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})", "hide": false, "instant": false, "legendFormat": "Overall", "range": true, "refId": "B" } ], "title": "Transmit Bandwidth", "type": "timeseries" } ], "refresh": "", "schemaVersion": 38, "style": "dark", "tags": [ "kubernetes" ], "templating": { "list": [ { "current": { "selected": false, "text": "Kube-prometheus", "value": "Kube-prometheus" }, "hide": 0, "includeAll": false, "label": "datasource", "multi": false, "name": "datasource", "options": [], "query": "prometheus", "queryValue": "", "refresh": 1, "regex": "", "skipUrlSync": false, "type": "datasource" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "definition": "label_values(kube_namespace_labels, exported_namespace)", "hide": 0, "includeAll": false, "multi": false, "name": "namespace", "options": [], "query": { "query": "label_values(kube_namespace_labels, exported_namespace)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_KUBE-PROMETHEUS}" }, "definition": "label_values(kube_pod_labels{exported_namespace=\"$namespace\"},label_app_kubernetes_io_component)", "hide": 0, "includeAll": false, "multi": false, "name": "component", "options": [], "query": { "query": "label_values(kube_pod_labels{exported_namespace=\"$namespace\"},label_app_kubernetes_io_component)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Component Metrics", "uid": "e5ae1f99-2b2b-44e3-9165-487757ea2d57", "version": 13, "weekStart": "" }