From 5f5be2d1e892f4c9693d523e604467c9348bb482 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Wed, 14 May 2025 20:11:18 -0500 Subject: [PATCH] update dashboard with vendor provided one --- dashboards/service/cloudnativepg.json | 2972 +++++++++++++++---------- 1 file changed, 1832 insertions(+), 1140 deletions(-) diff --git a/dashboards/service/cloudnativepg.json b/dashboards/service/cloudnativepg.json index 6aff9ac..afdb258 100644 --- a/dashboards/service/cloudnativepg.json +++ b/dashboards/service/cloudnativepg.json @@ -1,4 +1,89 @@ { + "__inputs": [ + { + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + }, + { + "name": "DS_EXPRESSION", + "label": "Expression", + "description": "", + "type": "datasource", + "pluginId": "__expr__" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "datasource", + "id": "__expr__", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "alertlist", + "name": "Alert list", + "version": "" + }, + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "panel", + "id": "gauge", + "name": "Gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "10.3.3" + }, + { + "type": "panel", + "id": "heatmap", + "name": "Heatmap", + "version": "" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { @@ -23,14 +108,28 @@ }, "editable": false, "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 9, - "links": [], + "graphTooltip": 1, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": ["cloudnativepg"], + "targetBlank": false, + "title": "Related Dashboards", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, "panels": [ { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 7, @@ -47,26 +146,23 @@ "groupBy": [], "groupMode": "default", "maxItems": 20, - "showInactiveAlerts": false, "sortOrder": 1, "stateFilter": { "error": true, "firing": true, "noData": false, "normal": true, - "pending": true, - "recovering": true + "pending": true }, "viewMode": "list" }, - "pluginVersion": "12.0.0", "title": "Alerts", "type": "alertlist" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -84,14 +180,14 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "title": "Health", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -109,14 +205,14 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "title": "Overview", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -134,14 +230,14 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "title": "Storage", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -159,7 +255,7 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "title": "Backups", "type": "text" }, @@ -178,14 +274,14 @@ { "options": { "0": { - "color": "red", - "index": 2, - "text": "None" - }, - "1": { - "color": "orange", + "color": "green", "index": 1, - "text": "Degraded" + "text": "Healthy" + }, + "-1": { + "color": "red", + "index": 0, + "text": "None" } }, "type": "value" @@ -194,9 +290,9 @@ "options": { "from": 2, "result": { - "color": "green", - "index": 0, - "text": "Healthy" + "color": "orange", + "index": 2, + "text": "Degraded" }, "to": 999 }, @@ -207,10 +303,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -226,7 +324,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -236,7 +333,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -244,13 +341,12 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "max(cnpg_pg_replication_streaming_replicas{namespace=~\"$namespace\", pod=~\"$instances\"} - cnpg_pg_replication_is_wal_receiver_up{namespace=~\"$namespace\", pod=~\"$instances\"})", + "expr": "(max(cnpg_pg_replication_streaming_replicas{namespace=~\"$namespace\", pod=~\"$instances\"}) - sum(cnpg_pg_replication_is_wal_receiver_up{namespace=~\"$namespace\", pod=~\"$instances\"})) + (clamp_max(max(cnpg_pg_replication_streaming_replicas{namespace=~\"$namespace\", pod=~\"$instances\"}), 1) - 1)", "legendFormat": "Replication", "range": true, "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -329,10 +425,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -348,7 +446,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -358,7 +455,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -385,7 +482,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -476,10 +572,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -495,7 +593,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -505,7 +602,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -520,7 +617,6 @@ "refId": "STORAGE" } ], - "title": "", "type": "stat" }, { @@ -539,11 +635,13 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue" + "color": "dark-blue", + "value": null } ] }, - "unit": "dateTimeFromNow" + "unit": "dateTimeFromNow", + "unitScale": true }, "overrides": [] }, @@ -559,7 +657,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -570,7 +667,7 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -590,6 +687,7 @@ } ], "title": "Last failover", + "transformations": [], "type": "stat" }, { @@ -607,10 +705,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -627,7 +727,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -637,7 +736,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -686,7 +785,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "orange", @@ -698,7 +798,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -710,6 +811,7 @@ }, "id": 344, "interval": "1m", + "links": [], "options": { "minVizHeight": 75, "minVizWidth": 75, @@ -723,7 +825,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -771,7 +873,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "orange", @@ -783,7 +886,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -795,6 +899,7 @@ }, "id": 348, "interval": "1m", + "links": [], "options": { "minVizHeight": 75, "minVizWidth": 75, @@ -808,7 +913,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -843,7 +948,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "yellow", @@ -859,7 +965,8 @@ } ] }, - "unit": "s" + "unit": "s", + "unitScale": true }, "overrides": [] }, @@ -875,7 +982,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -885,7 +991,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -919,7 +1025,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "yellow", @@ -935,7 +1042,8 @@ } ] }, - "unit": "s" + "unit": "s", + "unitScale": true }, "overrides": [] }, @@ -951,7 +1059,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -961,7 +1068,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -995,7 +1102,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "orange", @@ -1007,7 +1115,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -1031,7 +1140,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1122,7 +1231,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "semi-dark-red", @@ -1142,7 +1252,8 @@ } ] }, - "unit": "dtdurations" + "unit": "dtdurations", + "unitScale": true }, "overrides": [] }, @@ -1158,7 +1269,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1168,7 +1278,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1263,10 +1373,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -1282,7 +1394,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1292,7 +1403,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1333,7 +1444,6 @@ "refId": "CONNS" } ], - "title": "", "type": "stat" }, { @@ -1376,11 +1486,13 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, - "unit": "dtdurations" + "unit": "dtdurations", + "unitScale": true }, "overrides": [] }, @@ -1396,7 +1508,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1406,7 +1517,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1443,11 +1554,13 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue" + "color": "dark-blue", + "value": null } ] }, - "unit": "string" + "unit": "string", + "unitScale": true }, "overrides": [] }, @@ -1463,7 +1576,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "/^full$/", @@ -1474,7 +1586,8 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", "targets": [ { "datasource": { @@ -1495,6 +1608,7 @@ } ], "title": "Version", + "transformations": [], "type": "stat" }, { @@ -1512,7 +1626,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "yellow", @@ -1528,7 +1643,8 @@ } ] }, - "unit": "s" + "unit": "s", + "unitScale": true }, "overrides": [] }, @@ -1544,7 +1660,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1554,7 +1669,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1586,7 +1701,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "yellow", @@ -1602,7 +1718,8 @@ } ] }, - "unit": "s" + "unit": "s", + "unitScale": true }, "overrides": [] }, @@ -1618,7 +1735,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1628,7 +1744,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1709,10 +1825,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [ { @@ -1789,7 +1907,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1799,7 +1916,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1813,7 +1930,6 @@ "refId": "BACKUPS" } ], - "title": "", "type": "stat" }, { @@ -1880,10 +1996,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [ { @@ -1960,7 +2078,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1970,7 +2087,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1986,7 +2103,6 @@ "refId": "WAL" } ], - "title": "", "type": "stat" }, { @@ -2028,10 +2144,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [ { @@ -2060,7 +2178,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2070,7 +2187,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2078,15 +2195,14 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum by (label_app_kubernetes_io_name) (kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})", + "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", "hide": false, - "instant": false, + "instant": true, "legendFormat": "Operator Status", - "range": true, + "range": false, "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -2164,10 +2280,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [ { @@ -2196,7 +2314,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2206,7 +2323,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2250,7 +2367,7 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"}), 1)", + "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"}), 1)", "hide": true, "legendFormat": "__auto", "range": true, @@ -2267,7 +2384,6 @@ "type": "math" } ], - "title": "", "type": "stat" }, { @@ -2287,7 +2403,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -2299,7 +2416,8 @@ } ] }, - "unit": "none" + "unit": "none", + "unitScale": true }, "overrides": [] }, @@ -2310,12 +2428,12 @@ "y": 5 }, "id": 346, + "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "orientation": "horizontal", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2325,7 +2443,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2342,7 +2460,6 @@ "refId": "B" } ], - "title": "", "type": "stat" }, { @@ -2350,7 +2467,7 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "description": "Excluding cache", + "description": "Container memory working set", "fieldConfig": { "defaults": { "color": { @@ -2361,7 +2478,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -2373,7 +2491,8 @@ } ] }, - "unit": "bytes" + "unit": "bytes", + "unitScale": true }, "overrides": [] }, @@ -2384,12 +2503,12 @@ "y": 5 }, "id": 350, + "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "orientation": "horizontal", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2399,7 +2518,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2416,7 +2535,6 @@ "refId": "B" } ], - "title": "", "type": "stat" }, { @@ -2436,7 +2554,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -2448,7 +2567,8 @@ } ] }, - "unit": "decbytes" + "unit": "decbytes", + "unitScale": true }, "overrides": [] }, @@ -2459,12 +2579,12 @@ "y": 5 }, "id": 358, + "links": [], "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["sum"], "fields": "", @@ -2474,7 +2594,7 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2548,11 +2668,13 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, - "unit": "dateTimeAsIso" + "unit": "dateTimeAsIso", + "unitScale": true }, "overrides": [] }, @@ -2568,7 +2690,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2578,7 +2699,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2601,6 +2722,9 @@ }, { "collapsed": false, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -2609,13 +2733,21 @@ }, "id": 12, "panels": [], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Server Health", "type": "row" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2633,15 +2765,30 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Instance", "transparent": true, "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2659,14 +2806,29 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Status", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2684,14 +2846,29 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Clustering / replicas", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2709,14 +2886,29 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Zone", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2734,14 +2926,29 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Connections", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2759,16 +2966,31 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Max Connections", "type": "text" }, { - "description": "", - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, + "description": "", "gridPos": { "h": 1, "w": 3, @@ -2785,14 +3007,29 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Wraparound", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2810,14 +3047,29 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Started", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -2835,14 +3087,29 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Version", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 3, @@ -2863,7 +3130,20 @@ "pluginVersion": "10.3.3", "repeat": "instances", "repeatDirection": "v", - "title": "", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "type": "text" }, { @@ -2895,7 +3175,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-red" + "color": "dark-red", + "value": null }, { "color": "green", @@ -2947,7 +3228,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -2983,7 +3263,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -3034,7 +3315,7 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { @@ -3054,7 +3335,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -3106,7 +3388,7 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { @@ -3125,7 +3407,8 @@ "mode": "absolute", "steps": [ { - "color": "blue" + "color": "blue", + "value": null } ] }, @@ -3176,7 +3459,7 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { @@ -3226,7 +3509,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -3272,7 +3556,6 @@ "refId": "A" } ], - "title": "", "type": "timeseries" }, { @@ -3295,7 +3578,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -3351,7 +3635,6 @@ "refId": "A" } ], - "title": "", "type": "gauge" }, { @@ -3371,7 +3654,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -3430,7 +3714,6 @@ "refId": "A" } ], - "title": "", "type": "bargauge" }, { @@ -3449,7 +3732,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue" + "color": "dark-blue", + "value": null } ] }, @@ -3501,7 +3785,7 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { @@ -3520,7 +3804,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue" + "color": "dark-blue", + "value": null } ] }, @@ -3572,11 +3857,14 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { "collapsed": true, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -3586,15 +3874,15 @@ "id": 41, "panels": [ { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 0, - "y": 19 + "y": 25 }, "id": 187, "options": { @@ -3606,21 +3894,36 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Instance", "transparent": true, "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 3, - "y": 19 + "y": 25 }, "id": 183, "options": { @@ -3632,20 +3935,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Max Connections", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 6, - "y": 19 + "y": 25 }, "id": 184, "options": { @@ -3657,20 +3975,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Shared Buffers", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 9, - "y": 19 + "y": 25 }, "id": 185, "options": { @@ -3682,20 +4015,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Effective Cache Size", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 12, - "y": 19 + "y": 25 }, "id": 186, "options": { @@ -3707,20 +4055,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Work Mem", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 15, - "y": 19 + "y": 25 }, "id": 188, "options": { @@ -3732,20 +4095,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Maintenance Work Mem", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 18, - "y": 19 + "y": 25 }, "id": 189, "options": { @@ -3757,20 +4135,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Random Page Cost", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 21, - "y": 19 + "y": 25 }, "id": 190, "options": { @@ -3782,20 +4175,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "title": "Sequential Page Cost", "type": "text" }, { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 3, "w": 3, "x": 0, - "y": 20 + "y": 26 }, "id": 86, "options": { @@ -3810,7 +4218,20 @@ "pluginVersion": "10.3.1", "repeat": "instances", "repeatDirection": "v", - "title": "", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "instant": true, + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], "type": "text" }, { @@ -3840,7 +4261,7 @@ "h": 3, "w": 3, "x": 3, - "y": 20 + "y": 26 }, "id": 30, "options": { @@ -3875,7 +4296,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -3907,7 +4327,7 @@ "h": 3, "w": 3, "x": 6, - "y": 20 + "y": 26 }, "id": 24, "options": { @@ -3942,7 +4362,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -3974,7 +4393,7 @@ "h": 3, "w": 3, "x": 9, - "y": 20 + "y": 26 }, "id": 57, "options": { @@ -4009,7 +4428,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4041,7 +4459,7 @@ "h": 3, "w": 3, "x": 12, - "y": 20 + "y": 26 }, "id": 26, "options": { @@ -4076,7 +4494,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4107,7 +4524,7 @@ "h": 3, "w": 3, "x": 15, - "y": 20 + "y": 26 }, "id": 47, "options": { @@ -4142,7 +4559,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4173,7 +4589,7 @@ "h": 3, "w": 3, "x": 18, - "y": 20 + "y": 26 }, "id": 48, "options": { @@ -4208,7 +4624,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4239,7 +4654,7 @@ "h": 3, "w": 3, "x": 21, - "y": 20 + "y": 26 }, "id": 56, "options": { @@ -4274,7 +4689,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4303,7 +4717,8 @@ "color": "dark-purple" } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -4311,7 +4726,7 @@ "h": 9, "w": 24, "x": 0, - "y": 60 + "y": 32 }, "id": 150, "options": { @@ -4325,7 +4740,8 @@ "showHeader": true, "sortBy": [] }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", "targets": [ { "datasource": { @@ -4397,11 +4813,22 @@ "type": "table" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Configuration", "type": "row" }, { - "collapsed": true, + "collapsed": false, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -4409,798 +4836,808 @@ "y": 19 }, "id": 10, - "panels": [ + "panels": [], + "targets": [ { "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "log": 10, - "type": "log" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 67 - }, - "id": 273, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{pod=~\"$instances\", namespace=~\"$namespace\"}) by (pod)", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{pod}}", - "refId": "A", - "step": 10 - } - ], - "title": "CPU Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "quota - requests" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#F2495C", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineStyle", - "value": { - "dash": [10, 10], - "fill": "dash" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "quota - limits" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#FF9830", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineStyle", - "value": { - "dash": [10, 10], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 67 - }, - "id": 275, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(container_memory_working_set_bytes{pod=~\"$instances\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{pod}}", - "refId": "A", - "step": 10 - } - ], - "title": "Memory Usage (w/o cache)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 74 - }, - "id": 39, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (pod)", - "hide": false, - "interval": "", - "legendFormat": "total ({{pod}})", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (state, pod)", - "interval": "", - "legendFormat": "{{state}} ({{pod}})", - "refId": "A" - } - ], - "title": "Session States", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 82 - }, - "id": 50, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(rate(cnpg_pg_stat_database_xact_commit{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", - "interval": "", - "legendFormat": "committed ({{pod}})", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(rate(cnpg_pg_stat_database_xact_rollback{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", - "hide": false, - "interval": "", - "legendFormat": "rolled back ({{pod}})", - "refId": "B" - } - ], - "title": "Transactions [5m]", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 82 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "max by (pod) (cnpg_backends_max_tx_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", - "interval": "", - "legendFormat": "{{pod}}", - "refId": "A" - } - ], - "title": "Longest Transaction", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 90 - }, - "id": 55, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "rate(cnpg_pg_stat_database_deadlocks{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", - "hide": false, - "instant": false, - "interval": "", - "legendFormat": "count ({{pod}})", - "refId": "B" - } - ], - "title": "Deadlocks [5m]", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 90 - }, - "id": 54, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "cnpg_backends_waiting_total{namespace=~\"$namespace\",pod=~\"$instances\"}", - "interval": "", - "legendFormat": "{{pod}}", - "refId": "A" - } - ], - "title": "Blocked Queries", - "type": "timeseries" + "refId": "A" } ], "title": "Operational Stats", "type": "row" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 20 + }, + "id": 273, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "10.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{pod=~\"$instances\", namespace=~\"$namespace\"}) by (pod)", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{pod}}", + "refId": "A", + "step": 10 + } + ], + "title": "CPU Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes", + "unitScale": true + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "quota - requests" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#F2495C", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [10, 10], + "fill": "dash" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "quota - limits" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#FF9830", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [10, 10], + "fill": "dash" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 20 + }, + "id": 275, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "10.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(container_memory_working_set_bytes{pod=~\"$instances\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{pod}}", + "refId": "A", + "step": 10 + } + ], + "title": "Memory Usage (container memory working set)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 39, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (pod)", + "hide": false, + "interval": "", + "legendFormat": "total ({{pod}})", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (state, pod)", + "interval": "", + "legendFormat": "{{state}} ({{pod}})", + "refId": "A" + } + ], + "title": "Session States", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 35 + }, + "id": 50, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "sum(rate(cnpg_pg_stat_database_xact_commit{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", + "interval": "", + "legendFormat": "committed ({{pod}})", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(rate(cnpg_pg_stat_database_xact_rollback{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", + "hide": false, + "interval": "", + "legendFormat": "rolled back ({{pod}})", + "refId": "B" + } + ], + "title": "Transactions [5m]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 35 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "max by (pod) (cnpg_backends_max_tx_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], + "title": "Longest Transaction", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 43 + }, + "id": 55, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "rate(cnpg_pg_stat_database_deadlocks{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "count ({{pod}})", + "refId": "B" + } + ], + "title": "Deadlocks [5m]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 43 + }, + "id": 54, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "cnpg_backends_waiting_total{namespace=~\"$namespace\",pod=~\"$instances\"}", + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], + "title": "Blocked Queries", + "type": "timeseries" + }, { "collapsed": true, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 20 + "y": 51 }, "id": 35, "panels": [ @@ -5233,7 +5670,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -5241,7 +5679,7 @@ "h": 8, "w": 12, "x": 0, - "y": 21 + "y": 52 }, "id": 424, "options": { @@ -5258,7 +5696,7 @@ "sizing": "auto", "text": {} }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -5288,6 +5726,7 @@ } ], "title": "Volume Space Usage: PGDATA and WAL", + "transformations": [], "type": "gauge" }, { @@ -5320,7 +5759,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -5328,7 +5768,7 @@ "h": 8, "w": 12, "x": 12, - "y": 21 + "y": 52 }, "id": 426, "options": { @@ -5344,7 +5784,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -5374,6 +5814,7 @@ } ], "title": "Volume Inode Usage: PGDATA and WAL", + "transformations": [], "type": "gauge" }, { @@ -5405,7 +5846,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -5413,7 +5855,7 @@ "h": 7, "w": 24, "x": 0, - "y": 29 + "y": 60 }, "id": 564, "options": { @@ -5430,7 +5872,7 @@ "sizing": "auto", "text": {} }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -5447,6 +5889,7 @@ } ], "title": "Volume Space Usage: Tablespaces", + "transformations": [], "type": "gauge" }, { @@ -5466,7 +5909,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5504,7 +5946,8 @@ "value": 80 } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -5512,7 +5955,7 @@ "h": 8, "w": 12, "x": 0, - "y": 36 + "y": 67 }, "id": 44, "options": { @@ -5527,7 +5970,6 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5619,7 +6061,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5657,7 +6098,8 @@ "value": 80 } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -5665,7 +6107,7 @@ "h": 8, "w": 12, "x": 12, - "y": 36 + "y": 67 }, "id": 46, "options": { @@ -5680,7 +6122,6 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5730,7 +6171,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5765,7 +6205,8 @@ } ] }, - "unit": "decbytes" + "unit": "decbytes", + "unitScale": true }, "overrides": [] }, @@ -5773,7 +6214,7 @@ "h": 8, "w": 12, "x": 0, - "y": 44 + "y": 75 }, "id": 22, "options": { @@ -5788,7 +6229,7 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", + "pluginVersion": "8.0.5", "targets": [ { "datasource": { @@ -5824,7 +6265,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5863,7 +6303,8 @@ } ] }, - "unit": "decbytes" + "unit": "decbytes", + "unitScale": true }, "overrides": [] }, @@ -5871,7 +6312,7 @@ "h": 8, "w": 12, "x": 12, - "y": 44 + "y": 75 }, "id": 2, "options": { @@ -5886,7 +6327,6 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5905,16 +6345,27 @@ "type": "timeseries" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Storage & I/O", "type": "row" }, { "collapsed": true, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 21 + "y": 52 }, "id": 37, "panels": [ @@ -5981,7 +6432,7 @@ "h": 8, "w": 8, "x": 0, - "y": 100 + "y": 53 }, "id": 6, "options": { @@ -6087,7 +6538,7 @@ "h": 8, "w": 8, "x": 8, - "y": 100 + "y": 53 }, "id": 52, "options": { @@ -6195,7 +6646,7 @@ "h": 8, "w": 8, "x": 16, - "y": 100 + "y": 53 }, "id": 53, "options": { @@ -6289,7 +6740,7 @@ "h": 8, "w": 8, "x": 0, - "y": 108 + "y": 61 }, "id": 725, "options": { @@ -6322,16 +6773,27 @@ "type": "timeseries" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Write Ahead Log", "type": "row" }, { "collapsed": true, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 22 + "y": 53 }, "id": 18, "panels": [ @@ -6403,7 +6865,7 @@ "h": 8, "w": 6, "x": 0, - "y": 106 + "y": 59 }, "id": 16, "options": { @@ -6499,7 +6961,7 @@ "h": 8, "w": 6, "x": 6, - "y": 106 + "y": 59 }, "id": 14, "options": { @@ -6596,7 +7058,7 @@ "h": 8, "w": 6, "x": 12, - "y": 106 + "y": 59 }, "id": 59, "options": { @@ -6694,7 +7156,7 @@ "h": 8, "w": 6, "x": 18, - "y": 106 + "y": 59 }, "id": 20, "options": { @@ -6728,20 +7190,40 @@ "type": "timeseries" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Replication", "type": "row" }, { "collapsed": true, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 23 + "y": 54 }, "id": 231, "panels": [ { + "cards": {}, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateOranges", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" @@ -6766,9 +7248,15 @@ "h": 8, "w": 12, "x": 0, - "y": 102 + "y": 55 }, + "heatmap": {}, + "hideZeroBuckets": false, + "highlightCards": true, "id": 233, + "legend": { + "show": false + }, "options": { "calculate": true, "calculation": {}, @@ -6808,6 +7296,7 @@ } }, "pluginVersion": "10.3.3", + "reverseYBuckets": false, "targets": [ { "datasource": { @@ -6822,7 +7311,20 @@ } ], "title": "Collection Duration", - "type": "heatmap" + "tooltip": { + "show": true, + "showHistogram": false + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "yAxis": { + "format": "s", + "logBase": 1, + "show": true + }, + "yBucketBound": "auto" }, { "datasource": { @@ -6887,7 +7389,7 @@ "h": 8, "w": 12, "x": 12, - "y": 102 + "y": 55 }, "id": 235, "options": { @@ -6919,16 +7421,27 @@ "type": "timeseries" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Collector Stats", "type": "row" }, { "collapsed": true, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 24 + "y": 55 }, "id": 239, "panels": [ @@ -6996,7 +7509,7 @@ "h": 6, "w": 8, "x": 0, - "y": 103 + "y": 56 }, "id": 237, "options": { @@ -7029,16 +7542,27 @@ "type": "timeseries" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Backups", "type": "row" }, { "collapsed": true, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 25 + "y": 56 }, "id": 293, "panels": [ @@ -7107,7 +7631,7 @@ "h": 6, "w": 5, "x": 0, - "y": 104 + "y": 57 }, "id": 295, "options": { @@ -7130,7 +7654,7 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "cnpg_pg_stat_bgwriter_checkpoints_req{namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter|checkpointer)_checkpoints_req\",namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "hide": false, "instant": false, @@ -7145,7 +7669,7 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "cnpg_pg_stat_bgwriter_checkpoints_timed{namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter|checkpointer)_checkpoints_timed\",namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -7221,7 +7745,7 @@ "h": 6, "w": 5, "x": 5, - "y": 104 + "y": 57 }, "id": 296, "options": { @@ -7244,7 +7768,7 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "cnpg_pg_stat_bgwriter_checkpoint_write_time{namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter_checkpoint|checkpointer)_write_time\",namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "hide": false, "instant": false, @@ -7259,7 +7783,7 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "cnpg_pg_stat_bgwriter_checkpoint_sync_time{namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter_checkpoint|checkpointer)_sync_time\",namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -7271,6 +7795,14 @@ "type": "timeseries" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Checkpoints", "type": "row" }, @@ -7280,7 +7812,163 @@ "h": 1, "w": 24, "x": 0, - "y": 26 + "y": 57 + }, + "id": 794, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Show the installed extensions and their versions", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto", + "wrapText": false + }, + "filterable": false, + "inspect": false + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Update Available" + }, + "properties": [ + { + "id": "unit", + "value": "bool" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "transparent", + "index": 1 + }, + "1": { + "color": "red", + "index": 0 + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "applyToRow": true, + "mode": "gradient", + "type": "color-background" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 81 + }, + "id": 792, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": ["sum"], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "Value" + } + ] + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "disableTextWrap": false, + "exemplar": false, + "expr": "max(cnpg_pg_extensions_update_available{pod=~\"$instances\", namespace=~\"$namespace\"}) by (datname, extname, default_version, installed_version)", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": true, + "interval": "", + "legendFormat": "__auto", + "range": false, + "refId": "A", + "useBackend": false + } + ], + "title": "Installed extensions", + "transformations": [ + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "field": "extname" + } + ] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": { + "Time": 0, + "extname": 1, + "datname": 2, + "default_version": 3, + "installed_version": 4, + "Value": 5 + }, + "renameByName": { + "default_version": "Default Version", + "datname": "Database", + "extname": "Extension", + "installed_version": "Installed Version", + "Value": "Update Available" + }, + "includeByName": {} + } + } + ], + "type": "table" + } + ], + "title": "Extensions", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 58 }, "id": 696, "panels": [ @@ -7336,7 +8024,7 @@ "h": 2, "w": 4, "x": 0, - "y": 111 + "y": 64 }, "id": 697, "options": { @@ -7362,7 +8050,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})", + "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", "hide": false, "instant": true, "legendFormat": "Ready Operator Pods", @@ -7370,7 +8058,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -7436,7 +8123,7 @@ "h": 2, "w": 4, "x": 4, - "y": 111 + "y": 64 }, "id": 702, "options": { @@ -7470,7 +8157,6 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], - "title": "", "type": "stat" }, { @@ -7536,7 +8222,7 @@ "h": 2, "w": 4, "x": 8, - "y": 111 + "y": 64 }, "id": 698, "options": { @@ -7570,7 +8256,6 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], - "title": "", "type": "stat" }, { @@ -7636,7 +8321,7 @@ "h": 2, "w": 4, "x": 12, - "y": 111 + "y": 64 }, "id": 704, "options": { @@ -7662,7 +8347,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"})", + "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"})", "hide": false, "instant": true, "legendFormat": "Scheduled Backup Reconcile Errors", @@ -7670,7 +8355,6 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], - "title": "", "type": "stat" }, { @@ -7736,7 +8420,7 @@ "h": 2, "w": 4, "x": 16, - "y": 111 + "y": 64 }, "id": 703, "options": { @@ -7770,7 +8454,6 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], - "title": "", "type": "stat" }, { @@ -7857,7 +8540,7 @@ "h": 8, "w": 4, "x": 0, - "y": 113 + "y": 66 }, "id": 746, "options": { @@ -7880,7 +8563,7 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})", + "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", "hide": false, "instant": false, "legendFormat": "Ready Operator Pods", @@ -7986,7 +8669,7 @@ "h": 8, "w": 4, "x": 4, - "y": 113 + "y": 66 }, "id": 767, "options": { @@ -8114,7 +8797,7 @@ "h": 8, "w": 4, "x": 8, - "y": 113 + "y": 66 }, "id": 768, "options": { @@ -8242,7 +8925,7 @@ "h": 8, "w": 4, "x": 12, - "y": 113 + "y": 66 }, "id": 790, "options": { @@ -8266,7 +8949,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"})", + "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"})", "hide": false, "instant": false, "legendFormat": "Scheduled Backup Reconcile Errors", @@ -8372,7 +9055,7 @@ "h": 8, "w": 4, "x": 16, - "y": 113 + "y": 66 }, "id": 769, "options": { @@ -8410,63 +9093,68 @@ "type": "row" } ], - "preload": true, - "refresh": "", - "schemaVersion": 41, - "tags": ["service", "storage", "database"], + "refresh": "30s", + "revision": 1, + "schemaVersion": 39, + "tags": ["cloudnativepg"], "templating": { "list": [ { "current": { + "selected": false, "text": "Prometheus", "value": "prometheus" }, + "hide": 0, "includeAll": false, "label": "Datasource", + "multi": false, "name": "DS_PROMETHEUS", "options": [], "query": "prometheus", + "queryValue": "", "refresh": 1, "regex": "", + "skipUrlSync": false, "type": "datasource" }, { - "current": { - "text": "cloudnative-pg", - "value": "cloudnative-pg" - }, + "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "definition": "label_values(controller_runtime_active_workers,namespace)", + "definition": "label_values(controller_runtime_webhook_requests_total{webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"},namespace)", "description": "Namespace where the CNPG operator is located", + "hide": 0, "includeAll": false, "label": "Operator Namespace", + "multi": false, "name": "operatorNamespace", "options": [], "query": { "qryType": 1, - "query": "label_values(controller_runtime_active_workers,namespace)", + "query": "label_values(controller_runtime_webhook_requests_total{webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"},namespace)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 2, "regex": "", + "skipUrlSync": false, + "sort": 0, "type": "query" }, { - "current": { - "text": "argo-workflows", - "value": "argo-workflows" - }, + "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "definition": "cnpg_collector_up", "description": "Namespace where the database cluster is located", + "hide": 0, "includeAll": false, "label": "Database Namespace", + "multi": false, "name": "namespace", "options": [], "query": { @@ -8475,21 +9163,22 @@ }, "refresh": 2, "regex": "/namespace=\"(?[^\"]+)/g", + "skipUrlSync": false, + "sort": 0, "type": "query" }, { - "current": { - "text": "argo-workflows-postgresql-17-cluster", - "value": "argo-workflows-postgresql-17-cluster" - }, + "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "definition": "cnpg_collector_up{namespace=~\"$namespace\"}", "description": "CNPG Cluster", + "hide": 0, "includeAll": false, "label": "Cluster", + "multi": false, "name": "cluster", "options": [], "query": { @@ -8498,21 +9187,20 @@ }, "refresh": 2, "regex": "/\\bcluster\\b=\"(?[^\"]+)/g", + "skipUrlSync": false, "sort": 1, "type": "query" }, { "allValue": "$cluster-([1-9][0-9]*)", - "current": { - "text": "All", - "value": ["$__all"] - }, + "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "definition": "cnpg_collector_up{namespace=~\"$namespace\",pod=~\"$cluster-([1-9][0-9]*)$\"}", "description": "Database cluster instances", + "hide": 0, "includeAll": true, "label": "Instances", "multi": true, @@ -8525,18 +9213,22 @@ }, "refresh": 2, "regex": "/pod=\"(?[^\"]+)/g", + "skipUrlSync": false, "sort": 1, "type": "query" } ] }, "time": { - "from": "now-24h", + "from": "now-7d", "to": "now" }, - "timepicker": {}, - "timezone": "browser", + "timepicker": { + "nowDelay": "" + }, + "timezone": "", "title": "CloudNativePG", - "uid": "49074fe26a0664be2c478b6fbd59fb54", - "version": 1 + "uid": "cloudnative-pg", + "version": 2, + "weekStart": "" }