diff --git a/dashboards/service/cloudnative-pg.json b/dashboards/service/cloudnative-pg.json index 2979b08..383841a 100644 --- a/dashboards/service/cloudnative-pg.json +++ b/dashboards/service/cloudnative-pg.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": [ { @@ -22,12 +107,29 @@ ] }, "editable": false, + "fiscalYearStartMonth": 0, "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, @@ -44,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, @@ -81,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, @@ -106,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, @@ -131,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, @@ -156,7 +255,7 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "title": "Backups", "type": "text" }, @@ -204,10 +303,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -223,7 +324,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -233,7 +333,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -247,7 +347,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -326,10 +425,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -345,7 +446,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -355,7 +455,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -382,7 +482,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -473,10 +572,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -492,7 +593,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -502,7 +602,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -517,7 +617,6 @@ "refId": "STORAGE" } ], - "title": "", "type": "stat" }, { @@ -536,11 +635,13 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue" + "color": "dark-blue", + "value": null } ] }, - "unit": "dateTimeFromNow" + "unit": "dateTimeFromNow", + "unitScale": true }, "overrides": [] }, @@ -556,7 +657,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -567,7 +667,7 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -587,6 +687,7 @@ } ], "title": "Last failover", + "transformations": [], "type": "stat" }, { @@ -604,10 +705,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -624,7 +727,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -634,7 +736,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -683,7 +785,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "orange", @@ -695,7 +798,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -707,6 +811,7 @@ }, "id": 344, "interval": "1m", + "links": [], "options": { "minVizHeight": 75, "minVizWidth": 75, @@ -720,7 +825,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -768,7 +873,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "orange", @@ -780,7 +886,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -792,6 +899,7 @@ }, "id": 348, "interval": "1m", + "links": [], "options": { "minVizHeight": 75, "minVizWidth": 75, @@ -805,7 +913,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -840,7 +948,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "yellow", @@ -856,7 +965,8 @@ } ] }, - "unit": "s" + "unit": "s", + "unitScale": true }, "overrides": [] }, @@ -872,7 +982,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -882,7 +991,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -916,7 +1025,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "yellow", @@ -932,7 +1042,8 @@ } ] }, - "unit": "s" + "unit": "s", + "unitScale": true }, "overrides": [] }, @@ -948,7 +1059,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -958,7 +1068,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -992,7 +1102,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "orange", @@ -1004,7 +1115,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -1028,7 +1140,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1119,7 +1231,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "semi-dark-red", @@ -1139,7 +1252,8 @@ } ] }, - "unit": "dtdurations" + "unit": "dtdurations", + "unitScale": true }, "overrides": [] }, @@ -1155,7 +1269,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1165,7 +1278,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1260,10 +1373,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -1279,7 +1394,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1289,7 +1403,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1330,7 +1444,6 @@ "refId": "CONNS" } ], - "title": "", "type": "stat" }, { @@ -1373,11 +1486,13 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, - "unit": "dtdurations" + "unit": "dtdurations", + "unitScale": true }, "overrides": [] }, @@ -1393,7 +1508,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1403,7 +1517,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1440,11 +1554,13 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue" + "color": "dark-blue", + "value": null } ] }, - "unit": "string" + "unit": "string", + "unitScale": true }, "overrides": [] }, @@ -1460,7 +1576,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "/^full$/", @@ -1471,7 +1586,8 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", + "repeatDirection": "v", "targets": [ { "datasource": { @@ -1492,6 +1608,7 @@ } ], "title": "Version", + "transformations": [], "type": "stat" }, { @@ -1509,7 +1626,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "yellow", @@ -1525,7 +1643,8 @@ } ] }, - "unit": "s" + "unit": "s", + "unitScale": true }, "overrides": [] }, @@ -1541,7 +1660,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1551,7 +1669,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1583,7 +1701,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "yellow", @@ -1599,7 +1718,8 @@ } ] }, - "unit": "s" + "unit": "s", + "unitScale": true }, "overrides": [] }, @@ -1615,7 +1735,6 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1625,7 +1744,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1706,10 +1825,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [ { @@ -1786,7 +1907,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1796,7 +1916,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1810,7 +1930,6 @@ "refId": "BACKUPS" } ], - "title": "", "type": "stat" }, { @@ -1818,7 +1937,7 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "description": "Base Backups are considered healthy when there has been at least one base backup in the last 24 hours.", + "description": "WAL is considered Healthy when the last WAL is 0min to 6min old, Delayed when it is less than 15min and Unsynced for >15min.", "fieldConfig": { "defaults": { "color": { @@ -1877,10 +1996,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [ { @@ -1957,7 +2078,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -1967,7 +2087,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -1983,7 +2103,6 @@ "refId": "WAL" } ], - "title": "", "type": "stat" }, { @@ -2025,10 +2144,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [ { @@ -2057,7 +2178,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2067,7 +2187,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2083,7 +2203,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -2161,10 +2280,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] - } + }, + "unitScale": true }, "overrides": [ { @@ -2193,7 +2314,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2203,7 +2323,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2256,7 +2376,7 @@ { "datasource": { "type": "__expr__", - "uid": "__expr__" + "uid": "${DS_EXPRESSION}" }, "expression": "$RECONCILE_ERRORS_BACKUP + $RECONCILE_ERRORS_CLUSTER * 10 + $RECONCILE_ERRORS_POOLER * 100 + $RECONCILE_ERRORS_SCHEDULED_BACKUP * 1000", "hide": false, @@ -2264,7 +2384,6 @@ "type": "math" } ], - "title": "", "type": "stat" }, { @@ -2284,7 +2403,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -2296,7 +2416,8 @@ } ] }, - "unit": "none" + "unit": "none", + "unitScale": true }, "overrides": [] }, @@ -2307,12 +2428,12 @@ "y": 5 }, "id": 346, + "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "orientation": "horizontal", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2322,7 +2443,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2339,7 +2460,6 @@ "refId": "B" } ], - "title": "", "type": "stat" }, { @@ -2358,7 +2478,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -2370,7 +2491,8 @@ } ] }, - "unit": "bytes" + "unit": "bytes", + "unitScale": true }, "overrides": [] }, @@ -2381,12 +2503,12 @@ "y": 5 }, "id": 350, + "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "orientation": "horizontal", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2396,7 +2518,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2413,7 +2535,6 @@ "refId": "B" } ], - "title": "", "type": "stat" }, { @@ -2433,7 +2554,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -2445,7 +2567,8 @@ } ] }, - "unit": "decbytes" + "unit": "decbytes", + "unitScale": true }, "overrides": [] }, @@ -2456,12 +2579,12 @@ "y": 5 }, "id": 358, + "links": [], "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["sum"], "fields": "", @@ -2471,7 +2594,7 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2545,11 +2668,13 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, - "unit": "dateTimeAsIso" + "unit": "dateTimeAsIso", + "unitScale": true }, "overrides": [] }, @@ -2565,7 +2690,6 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", - "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", @@ -2575,7 +2699,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { @@ -2598,6 +2722,9 @@ }, { "collapsed": false, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -2606,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, @@ -2630,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, @@ -2656,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, @@ -2681,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, @@ -2706,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, @@ -2731,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, @@ -2756,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, @@ -2782,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, @@ -2807,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, @@ -2832,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, @@ -2860,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" }, { @@ -2892,7 +3175,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-red" + "color": "dark-red", + "value": null }, { "color": "green", @@ -2944,7 +3228,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -2980,7 +3263,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -3031,7 +3315,7 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { @@ -3051,7 +3335,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -3103,7 +3388,7 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { @@ -3122,7 +3407,8 @@ "mode": "absolute", "steps": [ { - "color": "blue" + "color": "blue", + "value": null } ] }, @@ -3173,7 +3459,7 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { @@ -3223,7 +3509,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -3269,7 +3556,6 @@ "refId": "A" } ], - "title": "", "type": "timeseries" }, { @@ -3292,7 +3578,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -3348,7 +3635,6 @@ "refId": "A" } ], - "title": "", "type": "gauge" }, { @@ -3368,7 +3654,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -3427,7 +3714,6 @@ "refId": "A" } ], - "title": "", "type": "bargauge" }, { @@ -3446,7 +3732,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue" + "color": "dark-blue", + "value": null } ] }, @@ -3498,7 +3785,7 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { @@ -3517,7 +3804,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue" + "color": "dark-blue", + "value": null } ] }, @@ -3569,29 +3857,32 @@ "refId": "A" } ], - "title": "", + "transformations": [], "type": "stat" }, { "collapsed": true, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 21 + "y": 18 }, "id": 41, "panels": [ { - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, "w": 3, "x": 0, - "y": 22 + "y": 25 }, "id": 187, "options": { @@ -3603,21 +3894,36 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.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": 22 + "y": 25 }, "id": 183, "options": { @@ -3629,20 +3935,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.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": 22 + "y": 25 }, "id": 184, "options": { @@ -3654,20 +3975,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.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": 22 + "y": 25 }, "id": 185, "options": { @@ -3679,20 +4015,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.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": 22 + "y": 25 }, "id": 186, "options": { @@ -3704,20 +4055,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.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": 22 + "y": 25 }, "id": 188, "options": { @@ -3729,20 +4095,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.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": 22 + "y": 25 }, "id": 189, "options": { @@ -3754,20 +4135,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.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": 22 + "y": 25 }, "id": 190, "options": { @@ -3779,20 +4175,35 @@ "content": "", "mode": "html" }, - "pluginVersion": "12.0.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": 23 + "y": 26 }, "id": 86, "options": { @@ -3807,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" }, { @@ -3837,7 +4261,7 @@ "h": 3, "w": 3, "x": 3, - "y": 23 + "y": 26 }, "id": 30, "options": { @@ -3872,7 +4296,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -3904,7 +4327,7 @@ "h": 3, "w": 3, "x": 6, - "y": 23 + "y": 26 }, "id": 24, "options": { @@ -3939,7 +4362,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -3971,7 +4393,7 @@ "h": 3, "w": 3, "x": 9, - "y": 23 + "y": 26 }, "id": 57, "options": { @@ -4006,7 +4428,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4038,7 +4459,7 @@ "h": 3, "w": 3, "x": 12, - "y": 23 + "y": 26 }, "id": 26, "options": { @@ -4073,7 +4494,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4104,7 +4524,7 @@ "h": 3, "w": 3, "x": 15, - "y": 23 + "y": 26 }, "id": 47, "options": { @@ -4139,7 +4559,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4170,7 +4589,7 @@ "h": 3, "w": 3, "x": 18, - "y": 23 + "y": 26 }, "id": 48, "options": { @@ -4205,7 +4624,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4236,7 +4654,7 @@ "h": 3, "w": 3, "x": 21, - "y": 23 + "y": 26 }, "id": 56, "options": { @@ -4271,7 +4689,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -4300,7 +4717,8 @@ "color": "dark-purple" } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -4308,7 +4726,7 @@ "h": 9, "w": 24, "x": 0, - "y": 35 + "y": 32 }, "id": 150, "options": { @@ -4322,7 +4740,8 @@ "showHeader": true, "sortBy": [] }, - "pluginVersion": "12.0.0", + "pluginVersion": "10.3.1", + "repeatDirection": "v", "targets": [ { "datasource": { @@ -4394,817 +4813,831 @@ "type": "table" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Configuration", "type": "row" }, { - "collapsed": true, + "collapsed": false, + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 22 + "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": 76 - }, - "id": 273, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "12.0.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": 76 - }, - "id": 275, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "12.0.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 (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, - "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": 83 - }, - "id": 39, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.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": 91 - }, - "id": 50, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.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": 91 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.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": 99 - }, - "id": 55, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.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": 99 - }, - "id": 54, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.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": 23 + "y": 51 }, "id": 35, "panels": [ @@ -5246,7 +5679,7 @@ "h": 8, "w": 12, "x": 0, - "y": 152 + "y": 52 }, "id": 424, "options": { @@ -5293,6 +5726,7 @@ } ], "title": "Volume Space Usage: PGDATA and WAL", + "transformations": [], "type": "gauge" }, { @@ -5334,7 +5768,7 @@ "h": 8, "w": 12, "x": 12, - "y": 152 + "y": 52 }, "id": 426, "options": { @@ -5380,6 +5814,7 @@ } ], "title": "Volume Inode Usage: PGDATA and WAL", + "transformations": [], "type": "gauge" }, { @@ -5420,7 +5855,7 @@ "h": 7, "w": 24, "x": 0, - "y": 160 + "y": 60 }, "id": 564, "options": { @@ -5454,6 +5889,7 @@ } ], "title": "Volume Space Usage: Tablespaces", + "transformations": [], "type": "gauge" }, { @@ -5519,7 +5955,7 @@ "h": 8, "w": 12, "x": 0, - "y": 167 + "y": 67 }, "id": 44, "options": { @@ -5671,7 +6107,7 @@ "h": 8, "w": 12, "x": 12, - "y": 167 + "y": 67 }, "id": 46, "options": { @@ -5778,7 +6214,7 @@ "h": 8, "w": 12, "x": 0, - "y": 175 + "y": 75 }, "id": 22, "options": { @@ -5876,7 +6312,7 @@ "h": 8, "w": 12, "x": 12, - "y": 175 + "y": 75 }, "id": 2, "options": { @@ -5909,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": 24 + "y": 52 }, "id": 37, "panels": [ @@ -5985,7 +6432,7 @@ "h": 8, "w": 8, "x": 0, - "y": 153 + "y": 53 }, "id": 6, "options": { @@ -6091,7 +6538,7 @@ "h": 8, "w": 8, "x": 8, - "y": 153 + "y": 53 }, "id": 52, "options": { @@ -6199,7 +6646,7 @@ "h": 8, "w": 8, "x": 16, - "y": 153 + "y": 53 }, "id": 53, "options": { @@ -6293,7 +6740,7 @@ "h": 8, "w": 8, "x": 0, - "y": 161 + "y": 61 }, "id": 725, "options": { @@ -6326,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": 25 + "y": 53 }, "id": 18, "panels": [ @@ -6407,7 +6865,7 @@ "h": 8, "w": 6, "x": 0, - "y": 159 + "y": 59 }, "id": 16, "options": { @@ -6503,7 +6961,7 @@ "h": 8, "w": 6, "x": 6, - "y": 159 + "y": 59 }, "id": 14, "options": { @@ -6600,7 +7058,7 @@ "h": 8, "w": 6, "x": 12, - "y": 159 + "y": 59 }, "id": 59, "options": { @@ -6698,7 +7156,7 @@ "h": 8, "w": 6, "x": 18, - "y": 159 + "y": 59 }, "id": 20, "options": { @@ -6732,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": 26 + "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}" @@ -6770,9 +7248,15 @@ "h": 8, "w": 12, "x": 0, - "y": 155 + "y": 55 }, + "heatmap": {}, + "hideZeroBuckets": false, + "highlightCards": true, "id": 233, + "legend": { + "show": false + }, "options": { "calculate": true, "calculation": {}, @@ -6812,6 +7296,7 @@ } }, "pluginVersion": "10.3.3", + "reverseYBuckets": false, "targets": [ { "datasource": { @@ -6826,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": { @@ -6891,7 +7389,7 @@ "h": 8, "w": 12, "x": 12, - "y": 155 + "y": 55 }, "id": 235, "options": { @@ -6923,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": 27 + "y": 55 }, "id": 239, "panels": [ @@ -7000,7 +7509,7 @@ "h": 6, "w": 8, "x": 0, - "y": 156 + "y": 56 }, "id": 237, "options": { @@ -7033,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": 28 + "y": 56 }, "id": 293, "panels": [ @@ -7111,7 +7631,7 @@ "h": 6, "w": 5, "x": 0, - "y": 157 + "y": 57 }, "id": 295, "options": { @@ -7225,7 +7745,7 @@ "h": 6, "w": 5, "x": 5, - "y": 157 + "y": 57 }, "id": 296, "options": { @@ -7275,6 +7795,14 @@ "type": "timeseries" } ], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Checkpoints", "type": "row" }, @@ -7284,7 +7812,7 @@ "h": 1, "w": 24, "x": 0, - "y": 29 + "y": 57 }, "id": 794, "panels": [ @@ -7354,7 +7882,7 @@ "h": 8, "w": 24, "x": 0, - "y": 181 + "y": 81 }, "id": 792, "options": { @@ -7409,22 +7937,22 @@ "excludeByName": { "Time": true }, - "includeByName": {}, "indexByName": { "Time": 0, - "Value": 5, + "extname": 1, "datname": 2, "default_version": 3, - "extname": 1, - "installed_version": 4 + "installed_version": 4, + "Value": 5 }, "renameByName": { - "Value": "Update Available", - "datname": "Database", "default_version": "Default Version", + "datname": "Database", "extname": "Extension", - "installed_version": "Installed Version" - } + "installed_version": "Installed Version", + "Value": "Update Available" + }, + "includeByName": {} } } ], @@ -7440,7 +7968,7 @@ "h": 1, "w": 24, "x": 0, - "y": 30 + "y": 58 }, "id": 696, "panels": [ @@ -7496,7 +8024,7 @@ "h": 2, "w": 4, "x": 0, - "y": 164 + "y": 64 }, "id": 697, "options": { @@ -7530,7 +8058,6 @@ "refId": "A" } ], - "title": "", "type": "stat" }, { @@ -7596,7 +8123,7 @@ "h": 2, "w": 4, "x": 4, - "y": 164 + "y": 64 }, "id": 702, "options": { @@ -7630,7 +8157,6 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], - "title": "", "type": "stat" }, { @@ -7696,7 +8222,7 @@ "h": 2, "w": 4, "x": 8, - "y": 164 + "y": 64 }, "id": 698, "options": { @@ -7730,7 +8256,6 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], - "title": "", "type": "stat" }, { @@ -7796,7 +8321,7 @@ "h": 2, "w": 4, "x": 12, - "y": 164 + "y": 64 }, "id": 704, "options": { @@ -7830,7 +8355,6 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], - "title": "", "type": "stat" }, { @@ -7896,7 +8420,7 @@ "h": 2, "w": 4, "x": 16, - "y": 164 + "y": 64 }, "id": 703, "options": { @@ -7930,7 +8454,6 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], - "title": "", "type": "stat" }, { @@ -8017,7 +8540,7 @@ "h": 8, "w": 4, "x": 0, - "y": 166 + "y": 66 }, "id": 746, "options": { @@ -8146,7 +8669,7 @@ "h": 8, "w": 4, "x": 4, - "y": 166 + "y": 66 }, "id": 767, "options": { @@ -8274,7 +8797,7 @@ "h": 8, "w": 4, "x": 8, - "y": 166 + "y": 66 }, "id": 768, "options": { @@ -8402,7 +8925,7 @@ "h": 8, "w": 4, "x": 12, - "y": 166 + "y": 66 }, "id": 790, "options": { @@ -8532,7 +9055,7 @@ "h": 8, "w": 4, "x": 16, - "y": 166 + "y": 66 }, "id": 769, "options": { @@ -8571,36 +9094,42 @@ } ], "preload": true, + "revision": 1, + "schemaVersion": 39, "tags": ["service", "cloudnativepg", "storage"], "templating": { "list": [ { "current": { + "selected": false, "text": "Prometheus", - "value": "kube-prometheus-stack" + "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_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": { @@ -8610,21 +9139,22 @@ }, "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": { @@ -8633,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": { @@ -8656,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, @@ -8683,17 +9213,22 @@ }, "refresh": 2, "regex": "/pod=\"(?[^\"]+)/g", + "skipUrlSync": false, "sort": 1, "type": "query" } ] }, "time": { - "from": "now-24h", + "from": "now-7d", "to": "now" }, - "timezone": "browser", + "timepicker": { + "nowDelay": "" + }, + "timezone": "", "title": "CloudNativePG", - "uid": "b61d66332d3e7f68f2270aa012e6a9a9", - "version": 11 + "uid": "cloudnative-pg", + "version": 12, + "weekStart": "" }