diff --git a/manifests/monitoring/grafana/dashboards/control-plane.json b/manifests/monitoring/grafana/dashboards/control-plane.json index 6c830357..9535a70c 100644 --- a/manifests/monitoring/grafana/dashboards/control-plane.json +++ b/manifests/monitoring/grafana/dashboards/control-plane.json @@ -19,7 +19,7 @@ "links": [], "panels": [ { - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { @@ -79,7 +79,7 @@ "type": "stat" }, { - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { @@ -143,7 +143,7 @@ "type": "stat" }, { - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { @@ -204,7 +204,7 @@ "type": "gauge" }, { - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { @@ -269,7 +269,7 @@ }, { "collapsed": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "gridPos": { "h": 1, "w": 24, @@ -286,7 +286,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { @@ -397,7 +397,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "decimals": null, "description": "", "fieldConfig": { @@ -504,7 +504,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "custom": {} @@ -599,7 +599,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "custom": {} @@ -693,7 +693,7 @@ }, { "collapsed": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "gridPos": { "h": 1, "w": 24, @@ -710,7 +710,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "custom": {} @@ -807,7 +807,7 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "decimals": 2, "description": "", "fieldConfig": { @@ -913,7 +913,7 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "decimals": 2, "description": "", "fieldConfig": { @@ -1016,7 +1016,7 @@ }, { "collapsed": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "gridPos": { "h": 1, "w": 24, @@ -1033,7 +1033,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "custom": {} @@ -1144,7 +1144,7 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "decimals": 2, "description": "", "fieldConfig": { @@ -1250,7 +1250,7 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "${DS_PROMETHEUS}", "decimals": 2, "description": "", "fieldConfig": { @@ -1360,6 +1360,24 @@ ], "templating": { "list": [ + { + "current": { + "selected": false, + "text": "Prometheus", + "value": "Prometheus" + }, + "hide": 2, + "includeAll": false, + "label": null, + "multi": false, + "name": "DS_PROMETHEUS", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, { "allValue": null, "current": { @@ -1367,7 +1385,7 @@ "text": "gotk-system", "value": "gotk-system" }, - "datasource": "prometheus", + "datasource": "${DS_PROMETHEUS}", "definition": "workqueue_work_duration_seconds_count", "hide": 0, "includeAll": false, diff --git a/manifests/monitoring/grafana/deployment.yaml b/manifests/monitoring/grafana/deployment.yaml index 19c349a3..99d028ba 100644 --- a/manifests/monitoring/grafana/deployment.yaml +++ b/manifests/monitoring/grafana/deployment.yaml @@ -18,7 +18,7 @@ spec: spec: containers: - name: grafana - image: "grafana/grafana:7.1.1" + image: "grafana/grafana:7.2.1" imagePullPolicy: IfNotPresent ports: - name: http @@ -33,8 +33,8 @@ spec: value: "true" - name: GF_AUTH_ANONYMOUS_ORG_ROLE value: Admin - - name: GF_DEFAULT_THEME - value: "Light" + - name: GF_USERS_DEFAULT_THEME + value: "light" volumeMounts: - name: grafana mountPath: /var/lib/grafana diff --git a/manifests/monitoring/prometheus/deployment.yaml b/manifests/monitoring/prometheus/deployment.yaml index cc3596c0..34e70551 100644 --- a/manifests/monitoring/prometheus/deployment.yaml +++ b/manifests/monitoring/prometheus/deployment.yaml @@ -19,7 +19,7 @@ spec: serviceAccountName: prometheus containers: - name: prometheus - image: prom/prometheus:v2.20.0 + image: prom/prometheus:v2.21.0 imagePullPolicy: IfNotPresent args: - '--storage.tsdb.retention=2h'