From 73b8e9689da0377e3be3def670102cc357f0c466 Mon Sep 17 00:00:00 2001
From: Fabian Reinartz <fab.reinartz@gmail.com>
Date: Fri, 4 Nov 2016 13:04:34 -0700
Subject: [PATCH] Improve deployment dashboard

---
 assets/grafana/deployment.json                |   0
 ...fana-kubernetes-deployments-dashboard.json | 494 -----------------
 assets/grafana/{nodes.json => node.json}      |   0
 manifests/etcd/etcd-bootkube-gce.yaml         |  32 ++
 manifests/grafana/grafana-cm.yaml             | 498 +-----------------
 5 files changed, 34 insertions(+), 990 deletions(-)
 create mode 100644 assets/grafana/deployment.json
 delete mode 100644 assets/grafana/grafana-kubernetes-deployments-dashboard.json
 rename assets/grafana/{nodes.json => node.json} (100%)
 create mode 100644 manifests/etcd/etcd-bootkube-gce.yaml

diff --git a/assets/grafana/deployment.json b/assets/grafana/deployment.json
new file mode 100644
index 00000000..e69de29b
diff --git a/assets/grafana/grafana-kubernetes-deployments-dashboard.json b/assets/grafana/grafana-kubernetes-deployments-dashboard.json
deleted file mode 100644
index 8e0a0ded..00000000
--- a/assets/grafana/grafana-kubernetes-deployments-dashboard.json
+++ /dev/null
@@ -1,494 +0,0 @@
-{
-    "dashboard": {
-        "__inputs": [
-            {
-                "description": "",
-                "label": "prometheus",
-                "name": "DS_PROMETHEUS",
-                "pluginId": "prometheus",
-                "pluginName": "Prometheus",
-                "type": "datasource"
-            }
-        ],
-        "__requires": [
-            {
-                "id": "singlestat",
-                "name": "Singlestat",
-                "type": "panel",
-                "version": ""
-            },
-            {
-                "id": "graph",
-                "name": "Graph",
-                "type": "panel",
-                "version": ""
-            },
-            {
-                "id": "grafana",
-                "name": "Grafana",
-                "type": "grafana",
-                "version": "3.1.1"
-            },
-            {
-                "id": "prometheus",
-                "name": "Prometheus",
-                "type": "datasource",
-                "version": "1.0.0"
-            }
-        ],
-        "annotations": {
-            "list": []
-        },
-        "editable": true,
-        "gnetId": null,
-        "hideControls": true,
-        "id": null,
-        "links": [],
-        "rows": [
-            {
-                "collapse": false,
-                "editable": true,
-                "height": "250px",
-                "panels": [
-                    {
-                        "cacheTimeout": null,
-                        "colorBackground": false,
-                        "colorValue": false,
-                        "colors": [
-                            "rgba(245, 54, 54, 0.9)",
-                            "rgba(237, 129, 40, 0.89)",
-                            "rgba(50, 172, 45, 0.97)"
-                        ],
-                        "datasource": "${DS_PROMETHEUS}",
-                        "editable": true,
-                        "error": false,
-                        "format": "none",
-                        "gauge": {
-                            "maxValue": 100,
-                            "minValue": 0,
-                            "show": false,
-                            "thresholdLabels": false,
-                            "thresholdMarkers": true
-                        },
-                        "id": 2,
-                        "interval": null,
-                        "isNew": true,
-                        "links": [],
-                        "mappingType": 1,
-                        "mappingTypes": [
-                            {
-                                "name": "value to text",
-                                "value": 1
-                            },
-                            {
-                                "name": "range to text",
-                                "value": 2
-                            }
-                        ],
-                        "maxDataPoints": 100,
-                        "nullPointMode": "connected",
-                        "nullText": null,
-                        "postfix": "",
-                        "postfixFontSize": "50%",
-                        "prefix": "",
-                        "prefixFontSize": "50%",
-                        "rangeMaps": [
-                            {
-                                "from": "null",
-                                "text": "N/A",
-                                "to": "null"
-                            }
-                        ],
-                        "span": 4,
-                        "sparkline": {
-                            "fillColor": "rgba(31, 118, 189, 0.18)",
-                            "full": false,
-                            "lineColor": "rgb(31, 120, 193)",
-                            "show": false
-                        },
-                        "targets": [
-                            {
-                                "expr": "kube_deployment_metadata_generation{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                "intervalFactor": 2,
-                                "legendFormat": "",
-                                "refId": "A",
-                                "step": 600
-                            }
-                        ],
-                        "thresholds": "",
-                        "title": "Metadata Generation",
-                        "type": "singlestat",
-                        "valueFontSize": "80%",
-                        "valueMaps": [
-                            {
-                                "op": "=",
-                                "text": "N/A",
-                                "value": "null"
-                            }
-                        ],
-                        "valueName": "avg"
-                    },
-                    {
-                        "cacheTimeout": null,
-                        "colorBackground": false,
-                        "colorValue": false,
-                        "colors": [
-                            "rgba(245, 54, 54, 0.9)",
-                            "rgba(237, 129, 40, 0.89)",
-                            "rgba(50, 172, 45, 0.97)"
-                        ],
-                        "datasource": "${DS_PROMETHEUS}",
-                        "editable": true,
-                        "error": false,
-                        "format": "none",
-                        "gauge": {
-                            "maxValue": 100,
-                            "minValue": 0,
-                            "show": false,
-                            "thresholdLabels": false,
-                            "thresholdMarkers": true
-                        },
-                        "id": 3,
-                        "interval": null,
-                        "isNew": true,
-                        "links": [],
-                        "mappingType": 1,
-                        "mappingTypes": [
-                            {
-                                "name": "value to text",
-                                "value": 1
-                            },
-                            {
-                                "name": "range to text",
-                                "value": 2
-                            }
-                        ],
-                        "maxDataPoints": 100,
-                        "nullPointMode": "connected",
-                        "nullText": null,
-                        "postfix": "",
-                        "postfixFontSize": "50%",
-                        "prefix": "",
-                        "prefixFontSize": "50%",
-                        "rangeMaps": [
-                            {
-                                "from": "null",
-                                "text": "N/A",
-                                "to": "null"
-                            }
-                        ],
-                        "span": 4,
-                        "sparkline": {
-                            "fillColor": "rgba(31, 118, 189, 0.18)",
-                            "full": false,
-                            "lineColor": "rgb(31, 120, 193)",
-                            "show": false
-                        },
-                        "targets": [
-                            {
-                                "expr": "kube_deployment_status_observed_generation{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                "intervalFactor": 2,
-                                "legendFormat": "",
-                                "refId": "A",
-                                "step": 600
-                            }
-                        ],
-                        "thresholds": "",
-                        "title": "Observed Generation",
-                        "type": "singlestat",
-                        "valueFontSize": "80%",
-                        "valueMaps": [
-                            {
-                                "op": "=",
-                                "text": "N/A",
-                                "value": "null"
-                            }
-                        ],
-                        "valueName": "avg"
-                    },
-                    {
-                        "cacheTimeout": null,
-                        "colorBackground": false,
-                        "colorValue": false,
-                        "colors": [
-                            "rgba(245, 54, 54, 0.9)",
-                            "rgba(237, 129, 40, 0.89)",
-                            "rgba(50, 172, 45, 0.97)"
-                        ],
-                        "datasource": "${DS_PROMETHEUS}",
-                        "editable": true,
-                        "error": false,
-                        "format": "none",
-                        "gauge": {
-                            "maxValue": 100,
-                            "minValue": 0,
-                            "show": false,
-                            "thresholdLabels": false,
-                            "thresholdMarkers": true
-                        },
-                        "id": 4,
-                        "interval": null,
-                        "isNew": true,
-                        "links": [],
-                        "mappingType": 1,
-                        "mappingTypes": [
-                            {
-                                "name": "value to text",
-                                "value": 1
-                            },
-                            {
-                                "name": "range to text",
-                                "value": 2
-                            }
-                        ],
-                        "maxDataPoints": 100,
-                        "nullPointMode": "connected",
-                        "nullText": null,
-                        "postfix": "",
-                        "postfixFontSize": "50%",
-                        "prefix": "",
-                        "prefixFontSize": "50%",
-                        "rangeMaps": [
-                            {
-                                "from": "null",
-                                "text": "N/A",
-                                "to": "null"
-                            }
-                        ],
-                        "span": 4,
-                        "sparkline": {
-                            "fillColor": "rgba(31, 118, 189, 0.18)",
-                            "full": false,
-                            "lineColor": "rgb(31, 120, 193)",
-                            "show": false
-                        },
-                        "targets": [
-                            {
-                                "expr": "kube_deployment_spec_paused{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                "intervalFactor": 2,
-                                "legendFormat": "",
-                                "refId": "A",
-                                "step": 600
-                            }
-                        ],
-                        "thresholds": "",
-                        "title": "Paused",
-                        "type": "singlestat",
-                        "valueFontSize": "80%",
-                        "valueMaps": [
-                            {
-                                "op": "=",
-                                "text": "N/A",
-                                "value": "null"
-                            }
-                        ],
-                        "valueName": "avg"
-                    }
-                ],
-                "title": "Row"
-            },
-            {
-                "collapse": false,
-                "editable": true,
-                "height": "250px",
-                "panels": [
-                    {
-                        "aliasColors": {},
-                        "bars": false,
-                        "datasource": "${DS_PROMETHEUS}",
-                        "editable": true,
-                        "error": false,
-                        "fill": 1,
-                        "grid": {
-                            "threshold1": null,
-                            "threshold1Color": "rgba(216, 200, 27, 0.27)",
-                            "threshold2": null,
-                            "threshold2Color": "rgba(234, 112, 112, 0.22)"
-                        },
-                        "id": 1,
-                        "isNew": true,
-                        "legend": {
-                            "avg": false,
-                            "current": false,
-                            "max": false,
-                            "min": false,
-                            "show": true,
-                            "total": false,
-                            "values": false
-                        },
-                        "lines": true,
-                        "linewidth": 2,
-                        "links": [],
-                        "nullPointMode": "connected",
-                        "percentage": false,
-                        "pointradius": 5,
-                        "points": false,
-                        "renderer": "flot",
-                        "seriesOverrides": [],
-                        "span": 12,
-                        "stack": false,
-                        "steppedLine": false,
-                        "targets": [
-                            {
-                                "expr": "kube_deployment_status_replicas{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                "intervalFactor": 2,
-                                "refId": "A",
-                                "step": 30
-                            },
-                            {
-                                "expr": "kube_deployment_status_replicas_available{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                "intervalFactor": 2,
-                                "legendFormat": "",
-                                "refId": "B",
-                                "step": 30
-                            },
-                            {
-                                "expr": "kube_deployment_status_replicas_unavailable{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                "intervalFactor": 2,
-                                "legendFormat": "",
-                                "refId": "C",
-                                "step": 30
-                            },
-                            {
-                                "expr": "kube_deployment_status_replicas_updated{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                "intervalFactor": 2,
-                                "legendFormat": "",
-                                "refId": "D",
-                                "step": 30
-                            },
-                            {
-                                "expr": "kube_deployment_spec_replicas{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                "intervalFactor": 2,
-                                "refId": "E",
-                                "step": 30
-                            }
-                        ],
-                        "thresholds": [],
-                        "timeFrom": null,
-                        "timeShift": null,
-                        "title": "Deployment Replicas",
-                        "tooltip": {
-                            "msResolution": true,
-                            "shared": true,
-                            "sort": 0,
-                            "value_type": "cumulative"
-                        },
-                        "type": "graph",
-                        "xaxis": {
-                            "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
-                            }
-                        ]
-                    }
-                ],
-                "title": "New row"
-            }
-        ],
-        "schemaVersion": 12,
-        "sharedCrosshair": true,
-        "style": "dark",
-        "tags": [],
-        "templating": {
-            "list": [
-                {
-                    "allValue": ".*",
-                    "current": {},
-                    "datasource": "${DS_PROMETHEUS}",
-                    "hide": 0,
-                    "includeAll": false,
-                    "label": "Namespace",
-                    "multi": false,
-                    "name": "deployment_namespace",
-                    "options": [],
-                    "query": "label_values(kube_deployment_metadata_generation, namespace)",
-                    "refresh": 1,
-                    "regex": "",
-                    "sort": 0,
-                    "tagValuesQuery": null,
-                    "tagsQuery": "",
-                    "type": "query",
-                    "useTags": false
-                },
-                {
-                    "allValue": null,
-                    "current": {},
-                    "datasource": "${DS_PROMETHEUS}",
-                    "hide": 0,
-                    "includeAll": false,
-                    "label": "Deployment",
-                    "multi": false,
-                    "name": "deployment_name",
-                    "options": [],
-                    "query": "label_values(kube_deployment_metadata_generation{namespace=\"$deployment_namespace\"}, deployment)",
-                    "refresh": 1,
-                    "regex": "",
-                    "sort": 0,
-                    "tagValuesQuery": "",
-                    "tagsQuery": "deployment",
-                    "type": "query",
-                    "useTags": false
-                }
-            ]
-        },
-        "time": {
-            "from": "now-6h",
-            "to": "now"
-        },
-        "timepicker": {
-            "refresh_intervals": [
-                "5s",
-                "10s",
-                "30s",
-                "1m",
-                "5m",
-                "15m",
-                "30m",
-                "1h",
-                "2h",
-                "1d"
-            ],
-            "time_options": [
-                "5m",
-                "15m",
-                "1h",
-                "6h",
-                "12h",
-                "24h",
-                "2d",
-                "7d",
-                "30d"
-            ]
-        },
-        "timezone": "browser",
-        "title": "Deployment",
-        "version": 3
-    },
-    "inputs": [
-        {
-            "name": "DS_PROMETHEUS",
-            "pluginId": "prometheus",
-            "type": "datasource",
-            "value": "prometheus"
-        }
-    ],
-    "overwrite": true
-}
diff --git a/assets/grafana/nodes.json b/assets/grafana/node.json
similarity index 100%
rename from assets/grafana/nodes.json
rename to assets/grafana/node.json
diff --git a/manifests/etcd/etcd-bootkube-gce.yaml b/manifests/etcd/etcd-bootkube-gce.yaml
new file mode 100644
index 00000000..542f5fe7
--- /dev/null
+++ b/manifests/etcd/etcd-bootkube-gce.yaml
@@ -0,0 +1,32 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: etcd-k8s
+  labels:
+    app: etcd
+    etcd: k8s
+  annotations:
+    prometheus.io/scrape: 'true'
+spec:
+  type: ClusterIP
+  clusterIP: None
+  ports:
+  - name: api
+    port: 2379
+    protocol: TCP
+---
+apiVersion: v1
+kind: Endpoints
+metadata:
+  name: etcd-k8s
+  labels:
+    app: etcd
+    etcd: k8s
+subsets:
+- addresses:
+  - ip: 10.142.0.2
+    nodeName: 10.142.0.2
+  ports:
+  - name: api
+    port: 2379
+    protocol: TCP
\ No newline at end of file
diff --git a/manifests/grafana/grafana-cm.yaml b/manifests/grafana/grafana-cm.yaml
index ef51e920..9e66bef5 100644
--- a/manifests/grafana/grafana-cm.yaml
+++ b/manifests/grafana/grafana-cm.yaml
@@ -870,501 +870,7 @@ data:
       "links": [],
       "gnetId": 22
     }
-  grafana-kubernetes-deployments-dashboard.json: |
-    {
-        "dashboard": {
-            "__inputs": [
-                {
-                    "description": "",
-                    "label": "prometheus",
-                    "name": "DS_PROMETHEUS",
-                    "pluginId": "prometheus",
-                    "pluginName": "Prometheus",
-                    "type": "datasource"
-                }
-            ],
-            "__requires": [
-                {
-                    "id": "singlestat",
-                    "name": "Singlestat",
-                    "type": "panel",
-                    "version": ""
-                },
-                {
-                    "id": "graph",
-                    "name": "Graph",
-                    "type": "panel",
-                    "version": ""
-                },
-                {
-                    "id": "grafana",
-                    "name": "Grafana",
-                    "type": "grafana",
-                    "version": "3.1.1"
-                },
-                {
-                    "id": "prometheus",
-                    "name": "Prometheus",
-                    "type": "datasource",
-                    "version": "1.0.0"
-                }
-            ],
-            "annotations": {
-                "list": []
-            },
-            "editable": true,
-            "gnetId": null,
-            "hideControls": true,
-            "id": null,
-            "links": [],
-            "rows": [
-                {
-                    "collapse": false,
-                    "editable": true,
-                    "height": "250px",
-                    "panels": [
-                        {
-                            "cacheTimeout": null,
-                            "colorBackground": false,
-                            "colorValue": false,
-                            "colors": [
-                                "rgba(245, 54, 54, 0.9)",
-                                "rgba(237, 129, 40, 0.89)",
-                                "rgba(50, 172, 45, 0.97)"
-                            ],
-                            "datasource": "${DS_PROMETHEUS}",
-                            "editable": true,
-                            "error": false,
-                            "format": "none",
-                            "gauge": {
-                                "maxValue": 100,
-                                "minValue": 0,
-                                "show": false,
-                                "thresholdLabels": false,
-                                "thresholdMarkers": true
-                            },
-                            "id": 2,
-                            "interval": null,
-                            "isNew": true,
-                            "links": [],
-                            "mappingType": 1,
-                            "mappingTypes": [
-                                {
-                                    "name": "value to text",
-                                    "value": 1
-                                },
-                                {
-                                    "name": "range to text",
-                                    "value": 2
-                                }
-                            ],
-                            "maxDataPoints": 100,
-                            "nullPointMode": "connected",
-                            "nullText": null,
-                            "postfix": "",
-                            "postfixFontSize": "50%",
-                            "prefix": "",
-                            "prefixFontSize": "50%",
-                            "rangeMaps": [
-                                {
-                                    "from": "null",
-                                    "text": "N/A",
-                                    "to": "null"
-                                }
-                            ],
-                            "span": 4,
-                            "sparkline": {
-                                "fillColor": "rgba(31, 118, 189, 0.18)",
-                                "full": false,
-                                "lineColor": "rgb(31, 120, 193)",
-                                "show": false
-                            },
-                            "targets": [
-                                {
-                                    "expr": "kube_deployment_metadata_generation{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                    "intervalFactor": 2,
-                                    "legendFormat": "",
-                                    "refId": "A",
-                                    "step": 600
-                                }
-                            ],
-                            "thresholds": "",
-                            "title": "Metadata Generation",
-                            "type": "singlestat",
-                            "valueFontSize": "80%",
-                            "valueMaps": [
-                                {
-                                    "op": "=",
-                                    "text": "N/A",
-                                    "value": "null"
-                                }
-                            ],
-                            "valueName": "avg"
-                        },
-                        {
-                            "cacheTimeout": null,
-                            "colorBackground": false,
-                            "colorValue": false,
-                            "colors": [
-                                "rgba(245, 54, 54, 0.9)",
-                                "rgba(237, 129, 40, 0.89)",
-                                "rgba(50, 172, 45, 0.97)"
-                            ],
-                            "datasource": "${DS_PROMETHEUS}",
-                            "editable": true,
-                            "error": false,
-                            "format": "none",
-                            "gauge": {
-                                "maxValue": 100,
-                                "minValue": 0,
-                                "show": false,
-                                "thresholdLabels": false,
-                                "thresholdMarkers": true
-                            },
-                            "id": 3,
-                            "interval": null,
-                            "isNew": true,
-                            "links": [],
-                            "mappingType": 1,
-                            "mappingTypes": [
-                                {
-                                    "name": "value to text",
-                                    "value": 1
-                                },
-                                {
-                                    "name": "range to text",
-                                    "value": 2
-                                }
-                            ],
-                            "maxDataPoints": 100,
-                            "nullPointMode": "connected",
-                            "nullText": null,
-                            "postfix": "",
-                            "postfixFontSize": "50%",
-                            "prefix": "",
-                            "prefixFontSize": "50%",
-                            "rangeMaps": [
-                                {
-                                    "from": "null",
-                                    "text": "N/A",
-                                    "to": "null"
-                                }
-                            ],
-                            "span": 4,
-                            "sparkline": {
-                                "fillColor": "rgba(31, 118, 189, 0.18)",
-                                "full": false,
-                                "lineColor": "rgb(31, 120, 193)",
-                                "show": false
-                            },
-                            "targets": [
-                                {
-                                    "expr": "kube_deployment_status_observed_generation{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                    "intervalFactor": 2,
-                                    "legendFormat": "",
-                                    "refId": "A",
-                                    "step": 600
-                                }
-                            ],
-                            "thresholds": "",
-                            "title": "Observed Generation",
-                            "type": "singlestat",
-                            "valueFontSize": "80%",
-                            "valueMaps": [
-                                {
-                                    "op": "=",
-                                    "text": "N/A",
-                                    "value": "null"
-                                }
-                            ],
-                            "valueName": "avg"
-                        },
-                        {
-                            "cacheTimeout": null,
-                            "colorBackground": false,
-                            "colorValue": false,
-                            "colors": [
-                                "rgba(245, 54, 54, 0.9)",
-                                "rgba(237, 129, 40, 0.89)",
-                                "rgba(50, 172, 45, 0.97)"
-                            ],
-                            "datasource": "${DS_PROMETHEUS}",
-                            "editable": true,
-                            "error": false,
-                            "format": "none",
-                            "gauge": {
-                                "maxValue": 100,
-                                "minValue": 0,
-                                "show": false,
-                                "thresholdLabels": false,
-                                "thresholdMarkers": true
-                            },
-                            "id": 4,
-                            "interval": null,
-                            "isNew": true,
-                            "links": [],
-                            "mappingType": 1,
-                            "mappingTypes": [
-                                {
-                                    "name": "value to text",
-                                    "value": 1
-                                },
-                                {
-                                    "name": "range to text",
-                                    "value": 2
-                                }
-                            ],
-                            "maxDataPoints": 100,
-                            "nullPointMode": "connected",
-                            "nullText": null,
-                            "postfix": "",
-                            "postfixFontSize": "50%",
-                            "prefix": "",
-                            "prefixFontSize": "50%",
-                            "rangeMaps": [
-                                {
-                                    "from": "null",
-                                    "text": "N/A",
-                                    "to": "null"
-                                }
-                            ],
-                            "span": 4,
-                            "sparkline": {
-                                "fillColor": "rgba(31, 118, 189, 0.18)",
-                                "full": false,
-                                "lineColor": "rgb(31, 120, 193)",
-                                "show": false
-                            },
-                            "targets": [
-                                {
-                                    "expr": "kube_deployment_spec_paused{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                    "intervalFactor": 2,
-                                    "legendFormat": "",
-                                    "refId": "A",
-                                    "step": 600
-                                }
-                            ],
-                            "thresholds": "",
-                            "title": "Paused",
-                            "type": "singlestat",
-                            "valueFontSize": "80%",
-                            "valueMaps": [
-                                {
-                                    "op": "=",
-                                    "text": "N/A",
-                                    "value": "null"
-                                }
-                            ],
-                            "valueName": "avg"
-                        }
-                    ],
-                    "title": "Row"
-                },
-                {
-                    "collapse": false,
-                    "editable": true,
-                    "height": "250px",
-                    "panels": [
-                        {
-                            "aliasColors": {},
-                            "bars": false,
-                            "datasource": "${DS_PROMETHEUS}",
-                            "editable": true,
-                            "error": false,
-                            "fill": 1,
-                            "grid": {
-                                "threshold1": null,
-                                "threshold1Color": "rgba(216, 200, 27, 0.27)",
-                                "threshold2": null,
-                                "threshold2Color": "rgba(234, 112, 112, 0.22)"
-                            },
-                            "id": 1,
-                            "isNew": true,
-                            "legend": {
-                                "avg": false,
-                                "current": false,
-                                "max": false,
-                                "min": false,
-                                "show": true,
-                                "total": false,
-                                "values": false
-                            },
-                            "lines": true,
-                            "linewidth": 2,
-                            "links": [],
-                            "nullPointMode": "connected",
-                            "percentage": false,
-                            "pointradius": 5,
-                            "points": false,
-                            "renderer": "flot",
-                            "seriesOverrides": [],
-                            "span": 12,
-                            "stack": false,
-                            "steppedLine": false,
-                            "targets": [
-                                {
-                                    "expr": "kube_deployment_status_replicas{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                    "intervalFactor": 2,
-                                    "refId": "A",
-                                    "step": 30
-                                },
-                                {
-                                    "expr": "kube_deployment_status_replicas_available{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                    "intervalFactor": 2,
-                                    "legendFormat": "",
-                                    "refId": "B",
-                                    "step": 30
-                                },
-                                {
-                                    "expr": "kube_deployment_status_replicas_unavailable{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                    "intervalFactor": 2,
-                                    "legendFormat": "",
-                                    "refId": "C",
-                                    "step": 30
-                                },
-                                {
-                                    "expr": "kube_deployment_status_replicas_updated{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                    "intervalFactor": 2,
-                                    "legendFormat": "",
-                                    "refId": "D",
-                                    "step": 30
-                                },
-                                {
-                                    "expr": "kube_deployment_spec_replicas{deployment=\"$deployment_name\",namespace=\"$deployment_namespace\"}",
-                                    "intervalFactor": 2,
-                                    "refId": "E",
-                                    "step": 30
-                                }
-                            ],
-                            "thresholds": [],
-                            "timeFrom": null,
-                            "timeShift": null,
-                            "title": "Deployment Replicas",
-                            "tooltip": {
-                                "msResolution": true,
-                                "shared": true,
-                                "sort": 0,
-                                "value_type": "cumulative"
-                            },
-                            "type": "graph",
-                            "xaxis": {
-                                "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
-                                }
-                            ]
-                        }
-                    ],
-                    "title": "New row"
-                }
-            ],
-            "schemaVersion": 12,
-            "sharedCrosshair": true,
-            "style": "dark",
-            "tags": [],
-            "templating": {
-                "list": [
-                    {
-                        "allValue": ".*",
-                        "current": {},
-                        "datasource": "${DS_PROMETHEUS}",
-                        "hide": 0,
-                        "includeAll": false,
-                        "label": "Namespace",
-                        "multi": false,
-                        "name": "deployment_namespace",
-                        "options": [],
-                        "query": "label_values(kube_deployment_metadata_generation, namespace)",
-                        "refresh": 1,
-                        "regex": "",
-                        "sort": 0,
-                        "tagValuesQuery": null,
-                        "tagsQuery": "",
-                        "type": "query",
-                        "useTags": false
-                    },
-                    {
-                        "allValue": null,
-                        "current": {},
-                        "datasource": "${DS_PROMETHEUS}",
-                        "hide": 0,
-                        "includeAll": false,
-                        "label": "Deployment",
-                        "multi": false,
-                        "name": "deployment_name",
-                        "options": [],
-                        "query": "label_values(kube_deployment_metadata_generation{namespace=\"$deployment_namespace\"}, deployment)",
-                        "refresh": 1,
-                        "regex": "",
-                        "sort": 0,
-                        "tagValuesQuery": "",
-                        "tagsQuery": "deployment",
-                        "type": "query",
-                        "useTags": false
-                    }
-                ]
-            },
-            "time": {
-                "from": "now-6h",
-                "to": "now"
-            },
-            "timepicker": {
-                "refresh_intervals": [
-                    "5s",
-                    "10s",
-                    "30s",
-                    "1m",
-                    "5m",
-                    "15m",
-                    "30m",
-                    "1h",
-                    "2h",
-                    "1d"
-                ],
-                "time_options": [
-                    "5m",
-                    "15m",
-                    "1h",
-                    "6h",
-                    "12h",
-                    "24h",
-                    "2d",
-                    "7d",
-                    "30d"
-                ]
-            },
-            "timezone": "browser",
-            "title": "Deployment",
-            "version": 3
-        },
-        "inputs": [
-            {
-                "name": "DS_PROMETHEUS",
-                "pluginId": "prometheus",
-                "type": "datasource",
-                "value": "prometheus"
-            }
-        ],
-        "overwrite": true
-    }
+  deployment.json: ""
   grafana-kubernetes-pods-dashboard.json: |
     {
         "dashboard": {
@@ -1775,7 +1281,7 @@ data:
         ],
         "overwrite": true
     }
-  nodes.json: |-
+  node.json: |-
     {
       "__inputs": [
         {
-- 
GitLab