From e23a359c7041b0d49bfcd4613ff65fcd7f5f95fd Mon Sep 17 00:00:00 2001 From: Daniel Blair Date: Fri, 11 Sep 2020 16:57:12 +0100 Subject: [PATCH] Update pod-availability dashboard Include some panels relating to unschedulable pods. --- .../dashboards/pod-availability.json | 210 +++++++++++++++++- 1 file changed, 200 insertions(+), 10 deletions(-) diff --git a/charts/gsp-cluster/charts/gsp-monitoring/dashboards/pod-availability.json b/charts/gsp-cluster/charts/gsp-monitoring/dashboards/pod-availability.json index 5bca79b74..7abc78cf8 100644 --- a/charts/gsp-cluster/charts/gsp-monitoring/dashboards/pod-availability.json +++ b/charts/gsp-cluster/charts/gsp-monitoring/dashboards/pod-availability.json @@ -15,8 +15,8 @@ "editable": true, "gnetId": null, "graphTooltip": 0, - "id": null, - "iteration": 1599813926138, + "id": 38, + "iteration": 1599829881855, "links": [], "panels": [ { @@ -84,7 +84,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Pods available by deployment", + "title": "Namespace pods available by deployment", "tooltip": { "shared": true, "sort": 0, @@ -104,7 +104,7 @@ "label": null, "logBase": 1, "max": null, - "min": null, + "min": "0", "show": true }, { @@ -127,7 +127,6 @@ "dashLength": 10, "dashes": false, "datasource": null, - "description": "", "fieldConfig": { "defaults": { "custom": {} @@ -143,6 +142,197 @@ "y": 0 }, "hiddenSeries": false, + "id": 12, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum by(created_by_name) (kube_pod_info{namespace=\"$namespace\"} and on(pod) kube_pod_status_unschedulable{namespace=\"$namespace\"})", + "interval": "", + "legendFormat": "{{created_by_name}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Namespace pods unschedulable", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 0, + "format": "short", + "label": "", + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "hiddenSeries": false, + "id": 14, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "count by(node) (kube_pod_info{node!=\"\"} unless on(node) kube_node_spec_taint)", + "interval": "", + "legendFormat": "{{node}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Worker node pod count", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 + }, + "hiddenSeries": false, "id": 4, "legend": { "avg": false, @@ -234,7 +424,7 @@ "h": 8, "w": 8, "x": 0, - "y": 9 + "y": 17 }, "hiddenSeries": false, "id": 6, @@ -328,7 +518,7 @@ "h": 8, "w": 8, "x": 8, - "y": 9 + "y": 17 }, "hiddenSeries": false, "id": 8, @@ -423,7 +613,7 @@ "h": 8, "w": 8, "x": 16, - "y": 9 + "y": 17 }, "hiddenSeries": false, "id": 10, @@ -553,6 +743,6 @@ }, "timezone": "", "title": "Pod availability", - "uid": null, - "version": 0 + "uid": "L9rlczdGz", + "version": 1 }