diff --git a/dashboards/service/cloudnative-pg.json b/dashboards/service/cloudnative-pg.json index 383841a..0e48a06 100644 --- a/dashboards/service/cloudnative-pg.json +++ b/dashboards/service/cloudnative-pg.json @@ -1,89 +1,4 @@ { - "__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": [ { @@ -106,30 +21,16 @@ } ] }, - "editable": false, + "editable": true, "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, + "id": 339, + "links": [], "panels": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 7, @@ -146,23 +47,26 @@ "groupBy": [], "groupMode": "default", "maxItems": 20, + "showInactiveAlerts": false, "sortOrder": 1, "stateFilter": { "error": true, "firing": true, "noData": false, "normal": true, - "pending": true + "pending": true, + "recovering": true }, "viewMode": "list" }, + "pluginVersion": "12.0.0", "title": "Alerts", "type": "alertlist" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -180,14 +84,14 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "title": "Health", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -205,14 +109,14 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "title": "Overview", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -230,14 +134,14 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "title": "Storage", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -255,14 +159,14 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "title": "Backups", "type": "text" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Cluster Replication Health represents the availability of replica servers available to replace the primary in case of a failure.", "fieldConfig": { @@ -303,12 +207,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -324,8 +226,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -333,12 +238,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "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)", @@ -347,12 +252,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "High lag indicates issue with replication. Network or storage interfaces may not have enough bandwidth to handle incoming traffic and replication at the same time.", "fieldConfig": { @@ -425,12 +331,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -446,8 +350,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -455,12 +362,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max(cnpg_pg_replication_lag{namespace=~\"$namespace\",pod=~\"$instances\"}) + max(cnpg_pg_stat_replication_write_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"}) + max(cnpg_pg_stat_replication_flush_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"}) + max(cnpg_pg_stat_replication_replay_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -473,7 +380,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "expr": "", "hide": false, @@ -482,12 +389,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Low disk space or low inode count will result in data loss.", "fieldConfig": { @@ -572,12 +480,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -593,8 +499,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -602,12 +511,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max((max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"} / kubelet_volume_stats_capacity_bytes{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"}))) OR (max by(persistentvolumeclaim) (kubelet_volume_stats_inodes_used{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"} / kubelet_volume_stats_inodes{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"})))", @@ -617,12 +526,13 @@ "refId": "STORAGE" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -635,13 +545,11 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue", - "value": null + "color": "dark-blue" } ] }, - "unit": "dateTimeFromNow", - "unitScale": true + "unit": "dateTimeFromNow" }, "overrides": [] }, @@ -657,8 +565,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -667,12 +578,12 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -687,13 +598,12 @@ } ], "title": "Last failover", - "transformations": [], "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -705,12 +615,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -727,8 +635,11 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -736,12 +647,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -758,7 +669,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "CPU Utilisation from Requests", "fieldConfig": { @@ -785,8 +696,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "orange", @@ -798,8 +708,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -811,13 +720,14 @@ }, "id": 344, "interval": "1m", - "links": [], "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "fields": "", "values": false }, @@ -825,12 +735,12 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\", pod=~\"$instances\"}) / sum(kube_pod_container_resource_requests{job=\"kube-state-metrics\", namespace=\"$namespace\", resource=\"cpu\", pod=~\"$instances\"})", @@ -846,7 +756,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Memory Utilisation from Requests", "fieldConfig": { @@ -873,8 +783,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "orange", @@ -886,8 +795,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -899,13 +807,14 @@ }, "id": 348, "interval": "1m", - "links": [], "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "fields": "", "values": false }, @@ -913,12 +822,12 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", namespace=\"$namespace\",container!=\"\", image!=\"\", pod=~\"$instances\"}) / sum(max by(pod) (kube_pod_container_resource_requests{job=\"kube-state-metrics\", namespace=\"$namespace\", resource=\"memory\", pod=~\"$instances\"}))", @@ -934,7 +843,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -948,8 +857,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "yellow", @@ -965,8 +873,7 @@ } ] }, - "unit": "s", - "unitScale": true + "unit": "s" }, "overrides": [] }, @@ -982,8 +889,11 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -991,12 +901,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -1013,7 +923,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -1025,8 +935,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "yellow", @@ -1042,8 +951,7 @@ } ] }, - "unit": "s", - "unitScale": true + "unit": "s" }, "overrides": [] }, @@ -1059,8 +967,11 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -1068,12 +979,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_write_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -1088,7 +999,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -1102,8 +1013,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "orange", @@ -1115,8 +1025,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -1132,7 +1041,9 @@ "minVizWidth": 75, "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -1140,12 +1051,12 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -1160,7 +1071,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -1175,7 +1086,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -1193,7 +1104,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Elapsed time since the last successful base backup.", "fieldConfig": { @@ -1210,7 +1121,7 @@ "index": 0, "text": "Invalid date" }, - "to": 1e42 + "to": 1e+42 }, "type": "range" }, @@ -1231,8 +1142,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "semi-dark-red", @@ -1252,8 +1162,7 @@ } ] }, - "unit": "dtdurations", - "unitScale": true + "unit": "dtdurations" }, "overrides": [] }, @@ -1269,8 +1178,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -1278,12 +1190,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -1300,7 +1212,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "High resource usage (CPU, Memory, DB Connections)", "fieldConfig": { @@ -1373,12 +1285,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -1394,8 +1304,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -1403,12 +1316,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "(sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{ namespace=\"$namespace\", pod=~\"$instances\"}) / sum(kube_pod_container_resource_requests{job=\"kube-state-metrics\", namespace=\"$namespace\", resource=\"cpu\", pod=~\"$instances\"}))", @@ -1420,7 +1333,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "(sum(container_memory_working_set_bytes{job=\"kubelet\", metrics_path=\"/metrics/cadvisor\", namespace=\"$namespace\",container!=\"\", image!=\"\", pod=~\"$instances\"}) / sum(max by(pod) (kube_pod_container_resource_requests{job=\"kube-state-metrics\", namespace=\"$namespace\", resource=\"memory\", pod=~\"$instances\"})))", @@ -1433,7 +1346,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": " (max(sum by (pod) (cnpg_backends_total{namespace=~\"$namespace\", pod=~\"$instances\"}) / sum by (pod) (cnpg_pg_settings_setting{name=\"max_connections\", namespace=~\"$namespace\", pod=~\"$instances\"})))", @@ -1444,12 +1357,13 @@ "refId": "CONNS" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Computes the time since the last known WAL archival in the primary.\nWe ensure to ignore the metric in the replicas by using (1 - cnpg_pg_replication_in_recovery ) as a multiplicative factor. It will be 0 for replicas, 1 for the primary.", "fieldConfig": { @@ -1471,7 +1385,7 @@ }, { "options": { - "from": -1e22, + "from": -1e+22, "result": { "color": "text", "index": 1, @@ -1486,13 +1400,11 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, - "unit": "dtdurations", - "unitScale": true + "unit": "dtdurations" }, "overrides": [] }, @@ -1508,8 +1420,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -1517,12 +1432,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -1541,7 +1456,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -1554,13 +1469,11 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue", - "value": null + "color": "dark-blue" } ] }, - "unit": "string", - "unitScale": true + "unit": "string" }, "overrides": [] }, @@ -1576,8 +1489,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "/^full$/", "values": false }, @@ -1586,13 +1502,12 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "10.3.3", - "repeatDirection": "v", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "builder", "exemplar": false, @@ -1608,13 +1523,12 @@ } ], "title": "Version", - "transformations": [], "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -1626,8 +1540,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "yellow", @@ -1643,8 +1556,7 @@ } ] }, - "unit": "s", - "unitScale": true + "unit": "s" }, "overrides": [] }, @@ -1660,8 +1572,11 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -1669,12 +1584,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_flush_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -1689,7 +1604,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -1701,8 +1616,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "yellow", @@ -1718,8 +1632,7 @@ } ] }, - "unit": "s", - "unitScale": true + "unit": "s" }, "overrides": [] }, @@ -1735,8 +1648,11 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -1744,12 +1660,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_replay_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -1764,7 +1680,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Base Backups are considered healthy when there has been at least one base backup in the last 24 hours.", "fieldConfig": { @@ -1825,12 +1741,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [ { @@ -1907,8 +1821,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -1916,12 +1833,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "time() - max(cnpg_collector_last_available_backup_timestamp{namespace=\"$namespace\", pod=~\"$instances\"})", @@ -1930,12 +1847,13 @@ "refId": "BACKUPS" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "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": { @@ -1996,12 +1914,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [ { @@ -2078,8 +1994,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -2087,12 +2006,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max((1 - cnpg_pg_replication_in_recovery{namespace=~\"$namespace\", pod=~\"$instances\"}) * (time() - timestamp(cnpg_pg_stat_archiver_seconds_since_last_archival{namespace=~\"$namespace\", pod=~\"$instances\"}) +\ncnpg_pg_stat_archiver_seconds_since_last_archival{namespace=~\"$namespace\", pod=~\"$instances\"}))", @@ -2103,12 +2022,13 @@ "refId": "WAL" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Online if there is at least one ready operator pod", "fieldConfig": { @@ -2144,12 +2064,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [ { @@ -2178,8 +2096,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -2187,12 +2108,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", @@ -2203,12 +2124,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -2280,12 +2202,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [ { @@ -2314,8 +2234,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -2323,12 +2246,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"backup\"}), 1)", @@ -2340,7 +2263,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"cluster\"}), 1)", @@ -2352,7 +2275,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"pooler\"}), 1)", @@ -2364,7 +2287,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"}), 1)", @@ -2376,7 +2299,7 @@ { "datasource": { "type": "__expr__", - "uid": "${DS_EXPRESSION}" + "uid": "__expr__" }, "expression": "$RECONCILE_ERRORS_BACKUP + $RECONCILE_ERRORS_CLUSTER * 10 + $RECONCILE_ERRORS_POOLER * 100 + $RECONCILE_ERRORS_SCHEDULED_BACKUP * 1000", "hide": false, @@ -2384,12 +2307,13 @@ "type": "math" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -2403,8 +2327,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -2416,8 +2339,7 @@ } ] }, - "unit": "none", - "unitScale": true + "unit": "none" }, "overrides": [] }, @@ -2428,14 +2350,16 @@ "y": 5 }, "id": 346, - "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "orientation": "horizontal", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -2443,12 +2367,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -2460,12 +2384,13 @@ "refId": "B" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Container memory working set", "fieldConfig": { @@ -2478,8 +2403,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -2491,8 +2415,7 @@ } ] }, - "unit": "bytes", - "unitScale": true + "unit": "bytes" }, "overrides": [] }, @@ -2503,14 +2426,16 @@ "y": 5 }, "id": 350, - "links": [], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "orientation": "horizontal", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -2518,12 +2443,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -2535,12 +2460,13 @@ "refId": "B" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -2554,8 +2480,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -2567,8 +2492,7 @@ } ] }, - "unit": "decbytes", - "unitScale": true + "unit": "decbytes" }, "overrides": [] }, @@ -2579,14 +2503,16 @@ "y": 5 }, "id": 358, - "links": [], "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["sum"], + "calcs": [ + "sum" + ], "fields": "", "values": false }, @@ -2594,12 +2520,12 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -2618,7 +2544,9 @@ "options": { "fields": { "Value": { - "aggregations": ["max"], + "aggregations": [ + "max" + ], "operation": "aggregate" }, "datname": { @@ -2634,7 +2562,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -2668,13 +2596,11 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, - "unit": "dateTimeAsIso", - "unitScale": true + "unit": "dateTimeAsIso" }, "overrides": [] }, @@ -2690,8 +2616,11 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -2699,12 +2628,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.3.3", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -2722,9 +2651,6 @@ }, { "collapsed": false, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -2733,21 +2659,13 @@ }, "id": 12, "panels": [], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Server Health", "type": "row" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -2765,30 +2683,15 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Instance", "transparent": true, "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -2806,29 +2709,14 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Status", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -2846,29 +2734,14 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Clustering / replicas", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -2886,29 +2759,14 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Zone", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -2926,29 +2784,14 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Connections", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -2966,31 +2809,16 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Max Connections", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, "description": "", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, "gridPos": { "h": 1, "w": 3, @@ -3007,29 +2835,14 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Wraparound", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -3047,29 +2860,14 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Started", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -3087,29 +2885,14 @@ "content": "", "mode": "html" }, - "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" - } - ], + "pluginVersion": "12.0.0", "title": "Version", "type": "text" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 3, @@ -3130,26 +2913,13 @@ "pluginVersion": "10.3.3", "repeat": "instances", "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": "", "type": "text" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -3175,8 +2945,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-red", - "value": null + "color": "dark-red" }, { "color": "green", @@ -3201,7 +2970,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -3217,7 +2988,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -3228,12 +2999,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -3263,8 +3035,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3289,7 +3060,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -3305,7 +3078,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "1 - cnpg_pg_replication_in_recovery{namespace=~\"$namespace\",pod=~\"$instances\"} + cnpg_pg_replication_is_wal_receiver_up{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -3315,13 +3088,13 @@ "refId": "A" } ], - "transformations": [], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -3335,8 +3108,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3361,7 +3133,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -3377,7 +3151,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -3388,13 +3162,13 @@ "refId": "A" } ], - "transformations": [], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "This metric depends on exporting the: `topology.kubernetes.io/zone` label through kube-state-metrics (not enabled by default). Can be added by changing its configuration with:\n\n```yaml\nmetricLabelsAllowlist:\n - nodes=[topology.kubernetes.io/zone]\n```", "fieldConfig": { @@ -3407,8 +3181,7 @@ "mode": "absolute", "steps": [ { - "color": "blue", - "value": null + "color": "blue" } ] }, @@ -3429,7 +3202,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "/^label_topology_kubernetes_io_zone$/", "values": false }, @@ -3447,7 +3222,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -3459,13 +3234,13 @@ "refId": "A" } ], - "transformations": [], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -3509,8 +3284,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, @@ -3528,7 +3302,10 @@ "id": 58, "options": { "legend": { - "calcs": ["last", "mean"], + "calcs": [ + "last", + "mean" + ], "displayMode": "list", "placement": "bottom", "showLegend": true @@ -3545,7 +3322,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -3556,12 +3333,13 @@ "refId": "A" } ], + "title": "", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -3578,8 +3356,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -3608,7 +3385,9 @@ "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { - "calcs": ["last"], + "calcs": [ + "last" + ], "fields": "", "values": false }, @@ -3624,7 +3403,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -3635,12 +3414,13 @@ "refId": "A" } ], + "title": "", "type": "gauge" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -3654,8 +3434,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -3687,7 +3466,9 @@ "namePlacement": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -3703,7 +3484,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -3714,12 +3495,13 @@ "refId": "A" } ], + "title": "", "type": "bargauge" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -3732,8 +3514,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue", - "value": null + "color": "dark-blue" } ] }, @@ -3755,7 +3536,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -3771,7 +3554,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -3785,13 +3568,13 @@ "refId": "A" } ], - "transformations": [], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -3804,8 +3587,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue", - "value": null + "color": "dark-blue" } ] }, @@ -3827,7 +3609,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "/^full$/", "values": false }, @@ -3843,7 +3627,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -3857,14 +3641,11 @@ "refId": "A" } ], - "transformations": [], + "title": "", "type": "stat" }, { "collapsed": true, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -3874,9 +3655,9 @@ "id": 41, "panels": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -3895,29 +3676,14 @@ "mode": "html" }, "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" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -3936,28 +3702,13 @@ "mode": "html" }, "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" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -3976,28 +3727,13 @@ "mode": "html" }, "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" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -4016,28 +3752,13 @@ "mode": "html" }, "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" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -4056,28 +3777,13 @@ "mode": "html" }, "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" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -4096,28 +3802,13 @@ "mode": "html" }, "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" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -4136,28 +3827,13 @@ "mode": "html" }, "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" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 1, @@ -4176,28 +3852,13 @@ "mode": "html" }, "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" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "fieldConfig": { + "defaults": {}, + "overrides": [] }, "gridPos": { "h": 3, @@ -4218,26 +3879,13 @@ "pluginVersion": "10.3.1", "repeat": "instances", "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": "", "type": "text" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -4270,7 +3918,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -4286,7 +3936,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"max_connections\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4296,12 +3946,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -4336,7 +3987,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -4352,7 +4005,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "max by (pod) (cnpg_pg_settings_setting{name=\"shared_buffers\",namespace=~\"$namespace\",pod=~\"$instances\"}) * max by (pod) (cnpg_pg_settings_setting{name=\"block_size\",namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -4362,12 +4015,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -4402,7 +4056,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -4418,7 +4074,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "max by (pod) (cnpg_pg_settings_setting{name=\"effective_cache_size\",namespace=~\"$namespace\",pod=~\"$instances\"}) * max by (pod) (cnpg_pg_settings_setting{name=\"block_size\",namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -4428,12 +4084,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -4468,7 +4125,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -4484,7 +4143,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"work_mem\",namespace=~\"$namespace\",pod=~\"$instances\"} * 1024", @@ -4494,12 +4153,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -4533,7 +4193,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -4549,7 +4211,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"maintenance_work_mem\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4559,12 +4221,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -4598,7 +4261,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -4614,7 +4279,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"random_page_cost\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4624,12 +4289,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -4663,7 +4329,9 @@ "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -4679,7 +4347,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"seq_page_cost\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4689,12 +4357,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -4734,19 +4403,20 @@ "footer": { "countRows": false, "fields": "", - "reducer": ["sum"], + "reducer": [ + "sum" + ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "10.3.1", - "repeatDirection": "v", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4813,22 +4483,11 @@ "type": "table" } ], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Configuration", "type": "row" }, { "collapsed": false, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -4837,21 +4496,13 @@ }, "id": 10, "panels": [], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Operational Stats", "type": "row" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -4865,6 +4516,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 100, "gradientMode": "none", @@ -4897,8 +4549,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4906,8 +4557,7 @@ } ] }, - "unit": "short", - "unitScale": true + "unit": "short" }, "overrides": [] }, @@ -4918,7 +4568,6 @@ "y": 20 }, "id": 273, - "links": [], "options": { "legend": { "calcs": [], @@ -4927,16 +4576,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "desc" } }, - "pluginVersion": "10.3.1", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{pod=~\"$instances\", namespace=~\"$namespace\"}) by (pod)", @@ -4954,7 +4604,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -4968,6 +4618,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 100, "gradientMode": "none", @@ -4999,8 +4650,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -5008,8 +4658,7 @@ } ] }, - "unit": "bytes", - "unitScale": true + "unit": "bytes" }, "overrides": [ { @@ -5043,7 +4692,10 @@ { "id": "custom.lineStyle", "value": { - "dash": [10, 10], + "dash": [ + 10, + 10 + ], "fill": "dash" } } @@ -5080,7 +4732,10 @@ { "id": "custom.lineStyle", "value": { - "dash": [10, 10], + "dash": [ + 10, + 10 + ], "fill": "dash" } } @@ -5095,7 +4750,6 @@ "y": 20 }, "id": 275, - "links": [], "options": { "legend": { "calcs": [], @@ -5104,16 +4758,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "desc" } }, - "pluginVersion": "10.3.1", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "sum(container_memory_working_set_bytes{pod=~\"$instances\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)", @@ -5131,7 +4786,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -5146,6 +4801,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "opacity", @@ -5176,12 +4832,10 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -5200,15 +4854,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "none" } }, + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (pod)", @@ -5220,7 +4876,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (state, pod)", @@ -5235,7 +4891,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -5249,6 +4905,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "opacity", @@ -5286,8 +4943,7 @@ "value": 80 } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -5306,15 +4962,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "none" } }, + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -5327,7 +4985,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "sum(rate(cnpg_pg_stat_database_xact_rollback{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", @@ -5343,7 +5001,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -5358,6 +5016,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5396,8 +5055,7 @@ } ] }, - "unit": "s", - "unitScale": true + "unit": "s" }, "overrides": [] }, @@ -5416,15 +5074,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "none" } }, + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "max by (pod) (cnpg_backends_max_tx_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -5439,7 +5099,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -5519,7 +5179,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_database_deadlocks{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -5536,7 +5196,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -5616,7 +5276,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_backends_waiting_total{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -5630,9 +5290,6 @@ }, { "collapsed": true, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -5644,7 +5301,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -5687,7 +5344,9 @@ "minVizWidth": 75, "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -5701,7 +5360,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"} / kubelet_volume_stats_capacity_bytes{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"})", @@ -5714,7 +5373,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace=\"$namespace\", persistentvolumeclaim=~\"(${instances})-wal\"} / kubelet_volume_stats_capacity_bytes{namespace=\"$namespace\", persistentvolumeclaim=~\"(${instances})-wal\"})", @@ -5726,13 +5385,12 @@ } ], "title": "Volume Space Usage: PGDATA and WAL", - "transformations": [], "type": "gauge" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -5776,7 +5434,9 @@ "minVizWidth": 75, "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -5789,7 +5449,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max by(persistentvolumeclaim) (kubelet_volume_stats_inodes_used{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"} / kubelet_volume_stats_inodes{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"})", @@ -5802,7 +5462,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max by(persistentvolumeclaim) (kubelet_volume_stats_inodes_used{namespace=\"$namespace\", persistentvolumeclaim=~\"(${instances})-wal\"} / kubelet_volume_stats_inodes{namespace=\"$namespace\", persistentvolumeclaim=~\"(${instances})-wal\"})", @@ -5814,13 +5474,12 @@ } ], "title": "Volume Inode Usage: PGDATA and WAL", - "transformations": [], "type": "gauge" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -5863,7 +5522,9 @@ "minVizWidth": 75, "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -5877,7 +5538,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{namespace=\"$namespace\", persistentvolumeclaim=~\"(${instances})-tbs.*\"}) \n/\nsum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_capacity_bytes{namespace=\"$namespace\", persistentvolumeclaim=~\"(${instances})-tbs.*\"}) \n*\non(namespace, persistentvolumeclaim) group_left(volume,pod)\nkube_pod_spec_volumes_persistentvolumeclaims_info{pod=~\"$instances\"}", @@ -5889,13 +5550,12 @@ } ], "title": "Volume Space Usage: Tablespaces", - "transformations": [], "type": "gauge" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -5974,7 +5634,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -5987,7 +5647,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -6001,7 +5661,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -6015,7 +5675,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -6029,7 +5689,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -6047,7 +5707,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -6126,7 +5786,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -6139,7 +5799,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -6157,7 +5817,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -6234,7 +5894,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -6251,7 +5911,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -6331,7 +5991,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_database_temp_bytes{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -6345,22 +6005,11 @@ "type": "timeseries" } ], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Storage & I/O", "type": "row" }, { "collapsed": true, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -6372,7 +6021,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -6451,7 +6100,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_collector_pg_wal_archive_status{value=\"ready\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6462,7 +6111,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_collector_pg_wal_archive_status{value=\"done\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6478,7 +6127,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -6557,7 +6206,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_archiver_archived_count{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -6568,7 +6217,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_archiver_failed_count{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -6584,7 +6233,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -6665,7 +6314,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_pg_stat_archiver_seconds_since_last_archival{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6680,7 +6329,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -6759,7 +6408,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "cnpg_collector_pg_wal{pod=~\"$instances\", namespace=~\"$namespace\", value=\"count\"}", @@ -6773,22 +6422,11 @@ "type": "timeseries" } ], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Write Ahead Log", "type": "row" }, { "collapsed": true, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -6800,7 +6438,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -6884,7 +6522,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_pg_replication_lag{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6900,7 +6538,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -6980,7 +6618,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -6997,7 +6635,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -7077,7 +6715,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -7094,7 +6732,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -7175,7 +6813,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": true, @@ -7190,22 +6828,11 @@ "type": "timeseries" } ], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Replication", "type": "row" }, { "collapsed": true, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -7215,18 +6842,9 @@ "id": 231, "panels": [ { - "cards": {}, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateOranges", - "exponent": 0.5, - "mode": "spectrum" - }, - "dataFormat": "timeseries", "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -7250,13 +6868,7 @@ "x": 0, "y": 55 }, - "heatmap": {}, - "hideZeroBuckets": false, - "highlightCards": true, "id": 233, - "legend": { - "show": false - }, "options": { "calculate": true, "calculation": {}, @@ -7296,12 +6908,11 @@ } }, "pluginVersion": "10.3.3", - "reverseYBuckets": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_collector_collection_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -7311,25 +6922,12 @@ } ], "title": "Collection Duration", - "tooltip": { - "show": true, - "showHistogram": false - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "yAxis": { - "format": "s", - "logBase": 1, - "show": true - }, - "yBucketBound": "auto" + "type": "heatmap" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -7408,7 +7006,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_collector_last_collection_error{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -7421,22 +7019,11 @@ "type": "timeseries" } ], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Collector Stats", "type": "row" }, { "collapsed": true, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -7448,7 +7035,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "fieldConfig": { "defaults": { @@ -7528,7 +7115,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "cnpg_collector_first_recoverability_point{namespace=~\"$namespace\",pod=~\"$instances\"}*1000 > 0", @@ -7542,22 +7129,11 @@ "type": "timeseries" } ], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Backups", "type": "row" }, { "collapsed": true, - "datasource": { - "uid": "prometheus" - }, "gridPos": { "h": 1, "w": 24, @@ -7569,7 +7145,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -7651,7 +7227,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter|checkpointer)_checkpoints_req\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -7666,7 +7242,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter|checkpointer)_checkpoints_timed\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -7683,7 +7259,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -7765,7 +7341,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter_checkpoint|checkpointer)_write_time\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -7780,7 +7356,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "exemplar": true, "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter_checkpoint|checkpointer)_sync_time\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -7795,14 +7371,6 @@ "type": "timeseries" } ], - "targets": [ - { - "datasource": { - "uid": "prometheus" - }, - "refId": "A" - } - ], "title": "Checkpoints", "type": "row" }, @@ -7819,7 +7387,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "Show the installed extensions and their versions", "fieldConfig": { @@ -7890,7 +7458,9 @@ "footer": { "countRows": false, "fields": "", - "reducer": ["sum"], + "reducer": [ + "sum" + ], "show": false }, "showHeader": true, @@ -7937,22 +7507,22 @@ "excludeByName": { "Time": true }, + "includeByName": {}, "indexByName": { "Time": 0, - "extname": 1, + "Value": 5, "datname": 2, "default_version": 3, - "installed_version": 4, - "Value": 5 + "extname": 1, + "installed_version": 4 }, "renameByName": { - "default_version": "Default Version", + "Value": "Update Available", "datname": "Database", + "default_version": "Default Version", "extname": "Extension", - "installed_version": "Installed Version", - "Value": "Update Available" - }, - "includeByName": {} + "installed_version": "Installed Version" + } } } ], @@ -7975,7 +7545,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -8033,7 +7603,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -8046,7 +7618,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -8058,12 +7630,13 @@ "refId": "A" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8132,7 +7705,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -8145,7 +7720,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -8157,12 +7732,13 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8231,7 +7807,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -8244,7 +7822,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -8256,12 +7834,13 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8330,7 +7909,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -8343,7 +7924,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -8355,12 +7936,13 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8429,7 +8011,9 @@ "justifyMode": "auto", "orientation": "auto", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": [ + "lastNotNull" + ], "fields": "", "values": false }, @@ -8442,7 +8026,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -8454,12 +8038,13 @@ "refId": "RECONCILE_ERRORS_BACKUP" } ], + "title": "", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "", "fieldConfig": { @@ -8560,7 +8145,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", @@ -8577,7 +8162,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8689,7 +8274,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"cluster\"})", @@ -8705,7 +8290,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8817,7 +8402,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"backup\"})", @@ -8833,7 +8418,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8945,7 +8530,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "exemplar": false, @@ -8963,7 +8548,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -9075,7 +8660,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"pooler\"})", @@ -9094,42 +8679,42 @@ } ], "preload": true, - "revision": 1, - "schemaVersion": 39, - "tags": ["service", "cloudnativepg", "storage"], + "refresh": "30s", + "schemaVersion": 41, + "tags": [ + "cloudnativepg", + "service", + "storage" + ], "templating": { "list": [ { "current": { - "selected": false, "text": "Prometheus", - "value": "prometheus" + "value": "kube-prometheus-stack" }, - "hide": 0, "includeAll": false, "label": "Datasource", - "multi": false, "name": "DS_PROMETHEUS", "options": [], "query": "prometheus", - "queryValue": "", "refresh": 1, "regex": "", - "skipUrlSync": false, "type": "datasource" }, { - "current": {}, + "current": { + "text": "cloudnative-pg", + "value": "cloudnative-pg" + }, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "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": { @@ -9139,22 +8724,21 @@ }, "refresh": 2, "regex": "", - "skipUrlSync": false, - "sort": 0, "type": "query" }, { - "current": {}, + "current": { + "text": "argo-workflows", + "value": "argo-workflows" + }, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "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": { @@ -9163,22 +8747,21 @@ }, "refresh": 2, "regex": "/namespace=\"(?[^\"]+)/g", - "skipUrlSync": false, - "sort": 0, "type": "query" }, { - "current": {}, + "current": { + "text": "argo-workflows-postgresql-17-cluster", + "value": "argo-workflows-postgresql-17-cluster" + }, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "definition": "cnpg_collector_up{namespace=~\"$namespace\"}", "description": "CNPG Cluster", - "hide": 0, "includeAll": false, "label": "Cluster", - "multi": false, "name": "cluster", "options": [], "query": { @@ -9187,20 +8770,23 @@ }, "refresh": 2, "regex": "/\\bcluster\\b=\"(?[^\"]+)/g", - "skipUrlSync": false, "sort": 1, "type": "query" }, { "allValue": "$cluster-([1-9][0-9]*)", - "current": {}, + "current": { + "text": "All", + "value": [ + "$__all" + ] + }, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "kube-prometheus-stack" }, "definition": "cnpg_collector_up{namespace=~\"$namespace\",pod=~\"$cluster-([1-9][0-9]*)$\"}", "description": "Database cluster instances", - "hide": 0, "includeAll": true, "label": "Instances", "multi": true, @@ -9213,7 +8799,6 @@ }, "refresh": 2, "regex": "/pod=\"(?[^\"]+)/g", - "skipUrlSync": false, "sort": 1, "type": "query" } @@ -9229,6 +8814,5 @@ "timezone": "", "title": "CloudNativePG", "uid": "cloudnative-pg", - "version": 12, - "weekStart": "" -} + "version": 2 +} \ No newline at end of file