From 065a8fcb7045d116f27ef932a0bd01000dc418c2 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Wed, 14 May 2025 19:43:21 -0500 Subject: [PATCH] update dashboard with vendor provided one --- dashboards/service/cloudnativepg.json | 1061 ++++++++++++++----------- 1 file changed, 598 insertions(+), 463 deletions(-) diff --git a/dashboards/service/cloudnativepg.json b/dashboards/service/cloudnativepg.json index 5748868..cbb8aaa 100644 --- a/dashboards/service/cloudnativepg.json +++ b/dashboards/service/cloudnativepg.json @@ -23,9 +23,22 @@ }, "editable": false, "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 62, - "links": [], + "graphTooltip": 1, + "id": 29, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": ["cloudnativepg"], + "targetBlank": false, + "title": "Related Dashboards", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], "panels": [ { "fieldConfig": { @@ -47,17 +60,19 @@ "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": "11.4.0", + "pluginVersion": "12.0.0", "title": "Alerts", "type": "alertlist" }, @@ -82,7 +97,7 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Health", "type": "text" }, @@ -107,7 +122,7 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Overview", "type": "text" }, @@ -132,7 +147,7 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Storage", "type": "text" }, @@ -157,14 +172,14 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Backups", "type": "text" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "Cluster Replication Health represents the availability of replica servers available to replace the primary in case of a failure.", "fieldConfig": { @@ -176,14 +191,14 @@ { "options": { "0": { - "color": "red", - "index": 2, - "text": "None" - }, - "1": { - "color": "orange", + "color": "green", "index": 1, - "text": "Degraded" + "text": "Healthy" + }, + "-1": { + "color": "red", + "index": 0, + "text": "None" } }, "type": "value" @@ -192,9 +207,9 @@ "options": { "from": 2, "result": { - "color": "green", - "index": 0, - "text": "Healthy" + "color": "orange", + "index": 2, + "text": "Degraded" }, "to": 999 }, @@ -205,8 +220,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -235,15 +249,15 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", - "expr": "max(cnpg_pg_replication_streaming_replicas{namespace=~\"$namespace\", pod=~\"$instances\"} - cnpg_pg_replication_is_wal_receiver_up{namespace=~\"$namespace\", pod=~\"$instances\"})", + "expr": "(max(cnpg_pg_replication_streaming_replicas{namespace=~\"$namespace\", pod=~\"$instances\"}) - sum(cnpg_pg_replication_is_wal_receiver_up{namespace=~\"$namespace\", pod=~\"$instances\"})) + (clamp_max(max(cnpg_pg_replication_streaming_replicas{namespace=~\"$namespace\", pod=~\"$instances\"}), 1) - 1)", "legendFormat": "Replication", "range": true, "refId": "A" @@ -255,7 +269,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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": { @@ -328,8 +342,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -358,12 +371,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})", @@ -376,7 +389,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "expr": "", "hide": false, @@ -391,7 +404,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "Low disk space or low inode count will result in data loss.", "fieldConfig": { @@ -476,8 +489,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -506,12 +518,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})))", @@ -527,7 +539,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -540,8 +552,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue", - "value": null + "color": "dark-blue" } ] }, @@ -572,12 +583,12 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -597,7 +608,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -609,8 +620,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -640,12 +650,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -662,7 +672,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "CPU Utilisation from Requests", "fieldConfig": { @@ -689,8 +699,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "orange", @@ -727,12 +736,12 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})", @@ -748,7 +757,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "Memory Utilisation from Requests", "fieldConfig": { @@ -775,8 +784,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "orange", @@ -813,12 +821,12 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"}))", @@ -834,7 +842,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -848,8 +856,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "yellow", @@ -891,12 +898,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -913,7 +920,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -925,8 +932,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "yellow", @@ -968,12 +974,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_write_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -988,7 +994,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -1002,8 +1008,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "orange", @@ -1039,12 +1044,12 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -1059,7 +1064,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -1074,7 +1079,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -1092,7 +1097,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "Elapsed time since the last successful base backup.", "fieldConfig": { @@ -1130,8 +1135,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "semi-dark-red", @@ -1177,12 +1181,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -1199,7 +1203,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "High resource usage (CPU, Memory, DB Connections)", "fieldConfig": { @@ -1272,8 +1276,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -1302,12 +1305,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"}))", @@ -1319,7 +1322,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})))", @@ -1332,7 +1335,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})))", @@ -1349,7 +1352,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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": { @@ -1386,8 +1389,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, @@ -1417,12 +1419,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -1441,7 +1443,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -1454,8 +1456,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue", - "value": null + "color": "dark-blue" } ] }, @@ -1486,12 +1487,12 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "builder", "exemplar": false, @@ -1512,7 +1513,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -1524,8 +1525,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "yellow", @@ -1567,12 +1567,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_flush_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -1587,7 +1587,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -1599,8 +1599,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "yellow", @@ -1642,12 +1641,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_replay_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -1662,7 +1661,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "Base Backups are considered healthy when there has been at least one base backup in the last 24 hours.", "fieldConfig": { @@ -1723,8 +1722,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -1814,12 +1812,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "time() - max(cnpg_collector_last_available_backup_timestamp{namespace=\"$namespace\", pod=~\"$instances\"})", @@ -1834,7 +1832,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "Base Backups are considered healthy when there has been at least one base backup in the last 24 hours.", "fieldConfig": { @@ -1895,8 +1893,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -1986,12 +1983,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"}))", @@ -2008,7 +2005,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "Online if there is at least one ready operator pod", "fieldConfig": { @@ -2044,8 +2041,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -2087,19 +2083,19 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", - "expr": "sum by (label_app_kubernetes_io_name) (kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})", + "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", "hide": false, - "instant": false, + "instant": true, "legendFormat": "Operator Status", - "range": true, + "range": false, "refId": "A" } ], @@ -2109,7 +2105,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -2181,8 +2177,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -2224,12 +2219,12 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"backup\"}), 1)", @@ -2241,7 +2236,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"cluster\"}), 1)", @@ -2253,7 +2248,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"pooler\"}), 1)", @@ -2265,10 +2260,10 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", - "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"}), 1)", + "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"}), 1)", "hide": true, "legendFormat": "__auto", "range": true, @@ -2277,7 +2272,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, @@ -2291,7 +2286,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -2305,8 +2300,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -2344,12 +2338,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -2367,9 +2361,9 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, - "description": "Excluding cache", + "description": "Container memory working set", "fieldConfig": { "defaults": { "color": { @@ -2380,8 +2374,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -2419,12 +2412,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -2442,7 +2435,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -2456,8 +2449,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -2495,12 +2487,12 @@ "textMode": "value", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -2535,7 +2527,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -2569,8 +2561,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, @@ -2600,12 +2591,12 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -2655,7 +2646,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Instance", "transparent": true, "type": "text" @@ -2681,7 +2672,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Status", "type": "text" }, @@ -2706,7 +2697,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Clustering / replicas", "type": "text" }, @@ -2731,7 +2722,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Zone", "type": "text" }, @@ -2756,7 +2747,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Connections", "type": "text" }, @@ -2781,7 +2772,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Max Connections", "type": "text" }, @@ -2807,7 +2798,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Wraparound", "type": "text" }, @@ -2832,7 +2823,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Started", "type": "text" }, @@ -2857,7 +2848,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "title": "Version", "type": "text" }, @@ -2891,7 +2882,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -2917,8 +2908,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-red", - "value": null + "color": "dark-red" }, { "color": "green", @@ -2959,7 +2949,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -2976,7 +2966,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -3006,8 +2996,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3048,7 +3037,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "1 - cnpg_pg_replication_in_recovery{namespace=~\"$namespace\",pod=~\"$instances\"} + cnpg_pg_replication_is_wal_receiver_up{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -3064,7 +3053,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -3078,8 +3067,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3120,7 +3108,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -3137,7 +3125,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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": { @@ -3150,8 +3138,7 @@ "mode": "absolute", "steps": [ { - "color": "blue", - "value": null + "color": "blue" } ] }, @@ -3190,7 +3177,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -3208,7 +3195,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -3252,8 +3239,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, @@ -3288,7 +3274,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -3305,7 +3291,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -3322,8 +3308,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -3368,7 +3353,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -3385,7 +3370,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -3399,8 +3384,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -3448,7 +3432,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -3465,7 +3449,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -3478,8 +3462,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue", - "value": null + "color": "dark-blue" } ] }, @@ -3517,7 +3500,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -3537,7 +3520,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -3550,8 +3533,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-blue", - "value": null + "color": "dark-blue" } ] }, @@ -3589,7 +3571,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -3625,7 +3607,7 @@ "h": 1, "w": 3, "x": 0, - "y": 19 + "y": 25 }, "id": 187, "options": { @@ -3637,7 +3619,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "title": "Instance", "transparent": true, "type": "text" @@ -3651,7 +3633,7 @@ "h": 1, "w": 3, "x": 3, - "y": 19 + "y": 25 }, "id": 183, "options": { @@ -3663,7 +3645,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "title": "Max Connections", "type": "text" }, @@ -3676,7 +3658,7 @@ "h": 1, "w": 3, "x": 6, - "y": 19 + "y": 25 }, "id": 184, "options": { @@ -3688,7 +3670,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "title": "Shared Buffers", "type": "text" }, @@ -3701,7 +3683,7 @@ "h": 1, "w": 3, "x": 9, - "y": 19 + "y": 25 }, "id": 185, "options": { @@ -3713,7 +3695,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "title": "Effective Cache Size", "type": "text" }, @@ -3726,7 +3708,7 @@ "h": 1, "w": 3, "x": 12, - "y": 19 + "y": 25 }, "id": 186, "options": { @@ -3738,7 +3720,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "title": "Work Mem", "type": "text" }, @@ -3751,7 +3733,7 @@ "h": 1, "w": 3, "x": 15, - "y": 19 + "y": 25 }, "id": 188, "options": { @@ -3763,7 +3745,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "title": "Maintenance Work Mem", "type": "text" }, @@ -3776,7 +3758,7 @@ "h": 1, "w": 3, "x": 18, - "y": 19 + "y": 25 }, "id": 189, "options": { @@ -3788,7 +3770,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "title": "Random Page Cost", "type": "text" }, @@ -3801,7 +3783,7 @@ "h": 1, "w": 3, "x": 21, - "y": 19 + "y": 25 }, "id": 190, "options": { @@ -3813,7 +3795,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "title": "Sequential Page Cost", "type": "text" }, @@ -3826,7 +3808,7 @@ "h": 3, "w": 3, "x": 0, - "y": 20 + "y": 26 }, "id": 86, "options": { @@ -3847,7 +3829,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -3859,8 +3841,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple", - "value": null + "color": "dark-purple" } ] }, @@ -3872,7 +3853,7 @@ "h": 3, "w": 3, "x": 3, - "y": 20 + "y": 26 }, "id": 30, "options": { @@ -3897,7 +3878,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"max_connections\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -3913,7 +3894,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -3926,8 +3907,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple", - "value": null + "color": "dark-purple" } ] }, @@ -3940,7 +3920,7 @@ "h": 3, "w": 3, "x": 6, - "y": 20 + "y": 26 }, "id": 24, "options": { @@ -3965,7 +3945,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})", @@ -3981,7 +3961,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -3994,8 +3974,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple", - "value": null + "color": "dark-purple" } ] }, @@ -4008,7 +3987,7 @@ "h": 3, "w": 3, "x": 9, - "y": 20 + "y": 26 }, "id": 57, "options": { @@ -4033,7 +4012,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})", @@ -4049,7 +4028,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -4062,8 +4041,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple", - "value": null + "color": "dark-purple" } ] }, @@ -4076,7 +4054,7 @@ "h": 3, "w": 3, "x": 12, - "y": 20 + "y": 26 }, "id": 26, "options": { @@ -4101,7 +4079,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"work_mem\",namespace=~\"$namespace\",pod=~\"$instances\"} * 1024", @@ -4117,7 +4095,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -4129,8 +4107,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple", - "value": null + "color": "dark-purple" } ] }, @@ -4143,7 +4120,7 @@ "h": 3, "w": 3, "x": 15, - "y": 20 + "y": 26 }, "id": 47, "options": { @@ -4168,7 +4145,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"maintenance_work_mem\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4184,7 +4161,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -4196,8 +4173,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple", - "value": null + "color": "dark-purple" } ] }, @@ -4210,7 +4186,7 @@ "h": 3, "w": 3, "x": 18, - "y": 20 + "y": 26 }, "id": 48, "options": { @@ -4235,7 +4211,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"random_page_cost\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4251,7 +4227,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -4263,8 +4239,7 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple", - "value": null + "color": "dark-purple" } ] }, @@ -4277,7 +4252,7 @@ "h": 3, "w": 3, "x": 21, - "y": 20 + "y": 26 }, "id": 56, "options": { @@ -4302,7 +4277,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"seq_page_cost\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4318,7 +4293,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -4338,11 +4313,11 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple", - "value": null + "color": "dark-purple" } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -4350,7 +4325,7 @@ "h": 9, "w": 24, "x": 0, - "y": 60 + "y": 40 }, "id": 150, "options": { @@ -4364,12 +4339,12 @@ "showHeader": true, "sortBy": [] }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4452,7 +4427,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -4499,8 +4474,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4516,7 +4490,7 @@ "h": 7, "w": 12, "x": 0, - "y": 67 + "y": 20 }, "id": 273, "options": { @@ -4527,16 +4501,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "desc" } }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{pod=~\"$instances\", namespace=~\"$namespace\"}) by (pod)", @@ -4554,7 +4529,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -4600,8 +4575,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4692,7 +4666,7 @@ "h": 7, "w": 12, "x": 12, - "y": 67 + "y": 20 }, "id": 275, "options": { @@ -4703,16 +4677,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "desc" } }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "sum(container_memory_working_set_bytes{pod=~\"$instances\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)", @@ -4724,13 +4699,13 @@ "step": 10 } ], - "title": "Memory Usage (w/o cache)", + "title": "Memory Usage (container memory working set)", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -4776,8 +4751,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -4788,7 +4762,7 @@ "h": 8, "w": 24, "x": 0, - "y": 74 + "y": 35 }, "id": 39, "options": { @@ -4799,16 +4773,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "none" } }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (pod)", @@ -4820,7 +4795,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (state, pod)", @@ -4835,7 +4810,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -4880,8 +4855,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4896,7 +4870,7 @@ "h": 8, "w": 12, "x": 0, - "y": 82 + "y": 43 }, "id": 50, "options": { @@ -4907,16 +4881,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "none" } }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -4929,7 +4904,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "sum(rate(cnpg_pg_stat_database_xact_rollback{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", @@ -4945,7 +4920,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -4991,8 +4966,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -5008,7 +4982,7 @@ "h": 8, "w": 12, "x": 12, - "y": 82 + "y": 43 }, "id": 4, "options": { @@ -5019,16 +4993,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "multi", "sort": "none" } }, - "pluginVersion": "11.4.0", + "pluginVersion": "12.0.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "max by (pod) (cnpg_backends_max_tx_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -5043,7 +5018,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -5058,7 +5033,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5089,15 +5063,15 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", "value": 80 } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -5105,7 +5079,7 @@ "h": 8, "w": 12, "x": 0, - "y": 90 + "y": 51 }, "id": 55, "options": { @@ -5120,12 +5094,11 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_database_deadlocks{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -5142,7 +5115,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -5157,7 +5130,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5188,15 +5160,15 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", "value": 80 } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -5204,7 +5176,7 @@ "h": 8, "w": 12, "x": 12, - "y": 90 + "y": 51 }, "id": 54, "options": { @@ -5219,12 +5191,11 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_backends_waiting_total{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -5253,7 +5224,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -5267,8 +5238,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -5280,7 +5250,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -5288,7 +5259,7 @@ "h": 8, "w": 12, "x": 0, - "y": 21 + "y": 60 }, "id": 424, "options": { @@ -5305,12 +5276,12 @@ "sizing": "auto", "text": {} }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})", @@ -5323,7 +5294,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})", @@ -5340,7 +5311,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -5355,8 +5326,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -5368,7 +5338,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -5376,7 +5347,7 @@ "h": 8, "w": 12, "x": 12, - "y": 21 + "y": 60 }, "id": 426, "options": { @@ -5392,12 +5363,12 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "max by(persistentvolumeclaim) (kubelet_volume_stats_inodes_used{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"} / kubelet_volume_stats_inodes{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"})", @@ -5410,7 +5381,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"})", @@ -5427,7 +5398,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -5441,8 +5412,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "#EAB839", @@ -5454,7 +5424,8 @@ } ] }, - "unit": "percentunit" + "unit": "percentunit", + "unitScale": true }, "overrides": [] }, @@ -5462,7 +5433,7 @@ "h": 7, "w": 24, "x": 0, - "y": 29 + "y": 68 }, "id": 564, "options": { @@ -5479,12 +5450,12 @@ "sizing": "auto", "text": {} }, - "pluginVersion": "11.4.0", + "pluginVersion": "10.3.3", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "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\"}", @@ -5501,7 +5472,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -5515,7 +5486,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5546,15 +5516,15 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", "value": 80 } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -5562,7 +5532,7 @@ "h": 8, "w": 12, "x": 0, - "y": 36 + "y": 75 }, "id": 44, "options": { @@ -5577,12 +5547,11 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -5595,7 +5564,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -5609,7 +5578,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -5623,7 +5592,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -5637,7 +5606,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -5655,7 +5624,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -5669,7 +5638,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5700,15 +5668,15 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", "value": 80 } ] - } + }, + "unitScale": true }, "overrides": [] }, @@ -5716,7 +5684,7 @@ "h": 8, "w": 12, "x": 12, - "y": 36 + "y": 75 }, "id": 46, "options": { @@ -5731,12 +5699,11 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -5749,7 +5716,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -5767,7 +5734,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -5781,7 +5748,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5812,12 +5778,12 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, - "unit": "decbytes" + "unit": "decbytes", + "unitScale": true }, "overrides": [] }, @@ -5825,7 +5791,7 @@ "h": 8, "w": 12, "x": 0, - "y": 44 + "y": 83 }, "id": 22, "options": { @@ -5840,12 +5806,12 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", + "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -5862,7 +5828,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -5876,7 +5842,6 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5907,8 +5872,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -5916,7 +5880,8 @@ } ] }, - "unit": "decbytes" + "unit": "decbytes", + "unitScale": true }, "overrides": [] }, @@ -5924,7 +5889,7 @@ "h": 8, "w": 12, "x": 12, - "y": 44 + "y": 83 }, "id": 2, "options": { @@ -5939,12 +5904,11 @@ "sort": "none" } }, - "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_database_temp_bytes{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -5974,7 +5938,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -6034,7 +5998,7 @@ "h": 8, "w": 8, "x": 0, - "y": 100 + "y": 61 }, "id": 6, "options": { @@ -6053,7 +6017,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_collector_pg_wal_archive_status{value=\"ready\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6064,7 +6028,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_collector_pg_wal_archive_status{value=\"done\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6080,7 +6044,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -6140,7 +6104,7 @@ "h": 8, "w": 8, "x": 8, - "y": 100 + "y": 61 }, "id": 52, "options": { @@ -6159,7 +6123,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_archiver_archived_count{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -6170,7 +6134,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_archiver_failed_count{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -6186,7 +6150,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -6248,7 +6212,7 @@ "h": 8, "w": 8, "x": 16, - "y": 100 + "y": 61 }, "id": 53, "options": { @@ -6267,7 +6231,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_pg_stat_archiver_seconds_since_last_archival{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6282,7 +6246,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -6342,7 +6306,7 @@ "h": 8, "w": 8, "x": 0, - "y": 108 + "y": 69 }, "id": 725, "options": { @@ -6361,7 +6325,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "cnpg_collector_pg_wal{pod=~\"$instances\", namespace=~\"$namespace\", value=\"count\"}", @@ -6391,7 +6355,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -6456,7 +6420,7 @@ "h": 8, "w": 6, "x": 0, - "y": 106 + "y": 67 }, "id": 16, "options": { @@ -6475,7 +6439,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_pg_replication_lag{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6491,7 +6455,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -6552,7 +6516,7 @@ "h": 8, "w": 6, "x": 6, - "y": 106 + "y": 67 }, "id": 14, "options": { @@ -6571,7 +6535,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -6588,7 +6552,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -6649,7 +6613,7 @@ "h": 8, "w": 6, "x": 12, - "y": 106 + "y": 67 }, "id": 59, "options": { @@ -6668,7 +6632,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -6685,7 +6649,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -6747,7 +6711,7 @@ "h": 8, "w": 6, "x": 18, - "y": 106 + "y": 67 }, "id": 20, "options": { @@ -6766,7 +6730,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": true, @@ -6797,7 +6761,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -6819,7 +6783,7 @@ "h": 8, "w": 12, "x": 0, - "y": 102 + "y": 63 }, "id": 233, "options": { @@ -6865,7 +6829,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_collector_collection_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6880,7 +6844,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -6940,7 +6904,7 @@ "h": 8, "w": 12, "x": 12, - "y": 102 + "y": 63 }, "id": 235, "options": { @@ -6959,7 +6923,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_collector_last_collection_error{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6988,7 +6952,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "fieldConfig": { "defaults": { @@ -7049,7 +7013,7 @@ "h": 6, "w": 8, "x": 0, - "y": 103 + "y": 64 }, "id": 237, "options": { @@ -7068,7 +7032,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, "expr": "cnpg_collector_first_recoverability_point{namespace=~\"$namespace\",pod=~\"$instances\"}*1000 > 0", @@ -7098,7 +7062,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -7160,7 +7124,7 @@ "h": 6, "w": 5, "x": 0, - "y": 104 + "y": 65 }, "id": 295, "options": { @@ -7180,10 +7144,10 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, - "expr": "cnpg_pg_stat_bgwriter_checkpoints_req{namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter|checkpointer)_checkpoints_req\",namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "hide": false, "instant": false, @@ -7195,10 +7159,10 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, - "expr": "cnpg_pg_stat_bgwriter_checkpoints_timed{namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter|checkpointer)_checkpoints_timed\",namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -7212,7 +7176,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -7274,7 +7238,7 @@ "h": 6, "w": 5, "x": 5, - "y": 104 + "y": 65 }, "id": 296, "options": { @@ -7294,10 +7258,10 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, - "expr": "cnpg_pg_stat_bgwriter_checkpoint_write_time{namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter_checkpoint|checkpointer)_write_time\",namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "hide": false, "instant": false, @@ -7309,10 +7273,10 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "exemplar": true, - "expr": "cnpg_pg_stat_bgwriter_checkpoint_sync_time{namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter_checkpoint|checkpointer)_sync_time\",namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -7335,12 +7299,181 @@ "x": 0, "y": 26 }, + "id": 794, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "Show the installed extensions and their versions", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto", + "wrapText": false + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Update Available" + }, + "properties": [ + { + "id": "unit", + "value": "bool" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "transparent", + "index": 1 + }, + "1": { + "color": "red", + "index": 0 + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "applyToRow": true, + "mode": "gradient", + "type": "color-background" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 792, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": ["sum"], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "Value" + } + ] + }, + "pluginVersion": "12.0.0", + "targets": [ + { + "disableTextWrap": false, + "exemplar": false, + "expr": "max(cnpg_pg_extensions_update_available{pod=~\"$instances\", namespace=~\"$namespace\"}) by (datname, extname, default_version, installed_version)", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": true, + "interval": "", + "legendFormat": "__auto", + "range": false, + "refId": "A", + "useBackend": false + } + ], + "title": "Installed extensions", + "transformations": [ + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "field": "extname" + } + ] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "includeByName": {}, + "indexByName": { + "Time": 0, + "Value": 5, + "datname": 2, + "default_version": 3, + "extname": 1, + "installed_version": 4 + }, + "renameByName": { + "Value": "Update Available", + "datname": "Database", + "default_version": "Default Version", + "extname": "Extension", + "installed_version": "Installed Version" + } + } + } + ], + "type": "table" + } + ], + "title": "Extensions", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 27 + }, "id": 696, "panels": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -7389,7 +7522,7 @@ "h": 2, "w": 4, "x": 0, - "y": 111 + "y": 72 }, "id": 697, "options": { @@ -7411,11 +7544,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, - "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})", + "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", "hide": false, "instant": true, "legendFormat": "Ready Operator Pods", @@ -7429,7 +7562,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -7489,7 +7622,7 @@ "h": 2, "w": 4, "x": 4, - "y": 111 + "y": 72 }, "id": 702, "options": { @@ -7511,7 +7644,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -7529,7 +7662,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -7589,7 +7722,7 @@ "h": 2, "w": 4, "x": 8, - "y": 111 + "y": 72 }, "id": 698, "options": { @@ -7611,7 +7744,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -7629,7 +7762,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -7689,7 +7822,7 @@ "h": 2, "w": 4, "x": 12, - "y": 111 + "y": 72 }, "id": 704, "options": { @@ -7711,11 +7844,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, - "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"})", + "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"})", "hide": false, "instant": true, "legendFormat": "Scheduled Backup Reconcile Errors", @@ -7729,7 +7862,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -7789,7 +7922,7 @@ "h": 2, "w": 4, "x": 16, - "y": 111 + "y": 72 }, "id": 703, "options": { @@ -7811,7 +7944,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, @@ -7829,7 +7962,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -7910,7 +8043,7 @@ "h": 8, "w": 4, "x": 0, - "y": 113 + "y": 74 }, "id": 746, "options": { @@ -7930,10 +8063,10 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})", + "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", "hide": false, "instant": false, "legendFormat": "Ready Operator Pods", @@ -7947,7 +8080,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8039,7 +8172,7 @@ "h": 8, "w": 4, "x": 4, - "y": 113 + "y": 74 }, "id": 767, "options": { @@ -8059,7 +8192,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"cluster\"})", @@ -8075,7 +8208,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8167,7 +8300,7 @@ "h": 8, "w": 4, "x": 8, - "y": 113 + "y": 74 }, "id": 768, "options": { @@ -8187,7 +8320,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"backup\"})", @@ -8203,7 +8336,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8295,7 +8428,7 @@ "h": 8, "w": 4, "x": 12, - "y": 113 + "y": 74 }, "id": 790, "options": { @@ -8315,11 +8448,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "exemplar": false, - "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"})", + "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"})", "hide": false, "instant": false, "legendFormat": "Scheduled Backup Reconcile Errors", @@ -8333,7 +8466,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8425,7 +8558,7 @@ "h": 8, "w": 4, "x": 16, - "y": 113 + "y": 74 }, "id": 769, "options": { @@ -8445,7 +8578,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"pooler\"})", @@ -8463,10 +8596,10 @@ "type": "row" } ], - "preload": true, - "refresh": "", - "schemaVersion": 40, - "tags": ["service", "storage", "database"], + "preload": false, + "refresh": "30s", + "schemaVersion": 41, + "tags": ["cloudnativepg"], "templating": { "list": [ { @@ -8490,9 +8623,9 @@ }, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, - "definition": "label_values(controller_runtime_active_workers,namespace)", + "definition": "label_values(controller_runtime_webhook_requests_total{webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"},namespace)", "description": "Namespace where the CNPG operator is located", "includeAll": false, "label": "Operator Namespace", @@ -8500,7 +8633,7 @@ "options": [], "query": { "qryType": 1, - "query": "label_values(controller_runtime_active_workers,namespace)", + "query": "label_values(controller_runtime_webhook_requests_total{webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"},namespace)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 2, @@ -8514,7 +8647,7 @@ }, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "definition": "cnpg_collector_up", "description": "Namespace where the database cluster is located", @@ -8537,7 +8670,7 @@ }, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "definition": "cnpg_collector_up{namespace=~\"$namespace\"}", "description": "CNPG Cluster", @@ -8562,7 +8695,7 @@ }, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "prometheus" }, "definition": "cnpg_collector_up{namespace=~\"$namespace\",pod=~\"$cluster-([1-9][0-9]*)$\"}", "description": "Database cluster instances", @@ -8584,12 +8717,14 @@ ] }, "time": { - "from": "now-24h", + "from": "now-7d", "to": "now" }, - "timepicker": {}, - "timezone": "browser", + "timepicker": { + "nowDelay": "" + }, + "timezone": "", "title": "CloudNativePG", - "uid": "49074fe26a0664be2c478b6fbd59fb54", - "weekStart": "" + "uid": "cloudnative-pg", + "version": 1 }