From 1f79d47302d0eeddec3b061f88bbbd77780e4f9d Mon Sep 17 00:00:00 2001 From: Eugenio Marzo Date: Tue, 26 Jan 2021 01:14:56 +0100 Subject: [PATCH] update grafana dashboard --- grafana/KubeInvadersDashboard.json | 278 +++++++++++++++++++++++++---- 1 file changed, 239 insertions(+), 39 deletions(-) diff --git a/grafana/KubeInvadersDashboard.json b/grafana/KubeInvadersDashboard.json index 3db22fb..a1fd703 100644 --- a/grafana/KubeInvadersDashboard.json +++ b/grafana/KubeInvadersDashboard.json @@ -19,60 +19,104 @@ "links": [], "panels": [ { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": null, "fieldConfig": { "defaults": { - "custom": {}, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } + "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 8, - "w": 17, + "h": 7, + "w": 18, "x": 0, "y": 0 }, - "id": 5, - "options": { - "displayMode": "gradient", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "min" - ], - "values": false - }, - "showUnfilled": false + "hiddenSeries": false, + "id": 11, + "interval": "", + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false }, - "pluginVersion": "7.0.1", + "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": "chaos_jobs_node_count", - "instant": true, + "expr": "round(increase(chaos_jobs_node_count[5m]))", + "format": "time_series", + "instant": false, "interval": "", - "intervalFactor": 1, + "intervalFactor": 3, "legendFormat": "{{node}}", "refId": "A" } ], + "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, - "title": "Chaos jobs against specific node", - "type": "bargauge" + "title": "Chaos jobs", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:91", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:92", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } }, { "datasource": null, @@ -191,6 +235,106 @@ "title": "Chaos jobs against nodes", "type": "stat" }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 18, + "x": 0, + "y": 7 + }, + "hiddenSeries": false, + "id": 12, + "interval": "", + "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": "round(increase(deleted_namespace_pods_count[5m]))", + "format": "time_series", + "instant": false, + "interval": "", + "intervalFactor": 3, + "legendFormat": "{{namespace}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Killed pods", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:91", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:92", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, { "datasource": null, "fieldConfig": { @@ -214,10 +358,66 @@ "overrides": [] }, "gridPos": { - "h": 8, - "w": 17, + "h": 7, + "w": 20, "x": 0, - "y": 8 + "y": 14 + }, + "id": 5, + "options": { + "displayMode": "gradient", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "min" + ], + "values": false + }, + "showUnfilled": false + }, + "pluginVersion": "7.0.1", + "targets": [ + { + "expr": "chaos_jobs_node_count", + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{node}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Chaos jobs count", + "type": "bargauge" + }, + { + "datasource": null, + "fieldConfig": { + "defaults": { + "custom": {}, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 20, + "x": 0, + "y": 21 }, "id": 7, "options": { @@ -243,7 +443,7 @@ ], "timeFrom": null, "timeShift": null, - "title": "Deleted pods by namespace", + "title": "Killed pods count", "type": "bargauge" } ], @@ -273,5 +473,5 @@ "timezone": "", "title": "KubeInvaders Dashboard", "uid": "_IC3ogYMz", - "version": 3 + "version": 8 } \ No newline at end of file