diff --git a/dashboards/service/cloudnativepg.json b/dashboards/service/cloudnativepg.json index cbb8aaa..6aff9ac 100644 --- a/dashboards/service/cloudnativepg.json +++ b/dashboards/service/cloudnativepg.json @@ -23,22 +23,9 @@ }, "editable": false, "fiscalYearStartMonth": 0, - "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": "" - } - ], + "graphTooltip": 0, + "id": 9, + "links": [], "panels": [ { "fieldConfig": { @@ -179,7 +166,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Cluster Replication Health represents the availability of replica servers available to replace the primary in case of a failure.", "fieldConfig": { @@ -191,14 +178,14 @@ { "options": { "0": { - "color": "green", - "index": 1, - "text": "Healthy" - }, - "-1": { "color": "red", - "index": 0, + "index": 2, "text": "None" + }, + "1": { + "color": "orange", + "index": 1, + "text": "Degraded" } }, "type": "value" @@ -207,9 +194,9 @@ "options": { "from": 2, "result": { - "color": "orange", - "index": 2, - "text": "Degraded" + "color": "green", + "index": 0, + "text": "Healthy" }, "to": 999 }, @@ -254,10 +241,10 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "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)", + "expr": "max(cnpg_pg_replication_streaming_replicas{namespace=~\"$namespace\", pod=~\"$instances\"} - cnpg_pg_replication_is_wal_receiver_up{namespace=~\"$namespace\", pod=~\"$instances\"})", "legendFormat": "Replication", "range": true, "refId": "A" @@ -269,7 +256,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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": { @@ -376,7 +363,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})", @@ -389,7 +376,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "expr": "", "hide": false, @@ -404,7 +391,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Low disk space or low inode count will result in data loss.", "fieldConfig": { @@ -523,7 +510,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})))", @@ -539,7 +526,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -588,7 +575,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -608,7 +595,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -655,7 +642,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -672,7 +659,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "CPU Utilisation from Requests", "fieldConfig": { @@ -741,7 +728,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})", @@ -757,7 +744,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Memory Utilisation from Requests", "fieldConfig": { @@ -826,7 +813,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"}))", @@ -842,7 +829,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -903,7 +890,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -920,7 +907,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -979,7 +966,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_write_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -994,7 +981,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1049,7 +1036,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -1064,7 +1051,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -1079,7 +1066,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -1097,7 +1084,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Elapsed time since the last successful base backup.", "fieldConfig": { @@ -1186,7 +1173,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -1203,7 +1190,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "High resource usage (CPU, Memory, DB Connections)", "fieldConfig": { @@ -1310,7 +1297,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"}))", @@ -1322,7 +1309,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})))", @@ -1335,7 +1322,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})))", @@ -1352,7 +1339,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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": { @@ -1424,7 +1411,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -1443,7 +1430,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -1492,7 +1479,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "builder", "exemplar": false, @@ -1513,7 +1500,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1572,7 +1559,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_flush_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -1587,7 +1574,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1646,7 +1633,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "max(cnpg_pg_stat_replication_replay_lag_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -1661,7 +1648,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Base Backups are considered healthy when there has been at least one base backup in the last 24 hours.", "fieldConfig": { @@ -1817,7 +1804,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "time() - max(cnpg_collector_last_available_backup_timestamp{namespace=\"$namespace\", pod=~\"$instances\"})", @@ -1832,7 +1819,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Base Backups are considered healthy when there has been at least one base backup in the last 24 hours.", "fieldConfig": { @@ -1988,7 +1975,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"}))", @@ -2005,7 +1992,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "Online if there is at least one ready operator pod", "fieldConfig": { @@ -2088,14 +2075,14 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", + "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\"})", "hide": false, - "instant": true, + "instant": false, "legendFormat": "Operator Status", - "range": false, + "range": true, "refId": "A" } ], @@ -2105,7 +2092,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -2224,7 +2211,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"backup\"}), 1)", @@ -2236,7 +2223,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"cluster\"}), 1)", @@ -2248,7 +2235,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"pooler\"}), 1)", @@ -2260,10 +2247,10 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"}), 1)", + "expr": "clamp_max(max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"}), 1)", "hide": true, "legendFormat": "__auto", "range": true, @@ -2272,7 +2259,7 @@ { "datasource": { "type": "__expr__", - "uid": "__expr__" + "uid": "${DS_EXPRESSION}" }, "expression": "$RECONCILE_ERRORS_BACKUP + $RECONCILE_ERRORS_CLUSTER * 10 + $RECONCILE_ERRORS_POOLER * 100 + $RECONCILE_ERRORS_SCHEDULED_BACKUP * 1000", "hide": false, @@ -2286,7 +2273,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -2343,7 +2330,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -2361,9 +2348,9 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, - "description": "Container memory working set", + "description": "Excluding cache", "fieldConfig": { "defaults": { "color": { @@ -2417,7 +2404,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -2435,7 +2422,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -2492,7 +2479,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -2527,7 +2514,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -2596,7 +2583,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -2882,7 +2869,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -2949,7 +2936,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -2966,7 +2953,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -3037,7 +3024,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"}", @@ -3053,7 +3040,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -3108,7 +3095,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -3125,7 +3112,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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": { @@ -3177,7 +3164,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -3195,7 +3182,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -3274,7 +3261,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -3291,7 +3278,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -3353,7 +3340,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -3370,7 +3357,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -3432,7 +3419,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -3449,7 +3436,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -3500,7 +3487,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -3520,7 +3507,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -3571,7 +3558,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -3607,7 +3594,7 @@ "h": 1, "w": 3, "x": 0, - "y": 25 + "y": 19 }, "id": 187, "options": { @@ -3619,7 +3606,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Instance", "transparent": true, "type": "text" @@ -3633,7 +3620,7 @@ "h": 1, "w": 3, "x": 3, - "y": 25 + "y": 19 }, "id": 183, "options": { @@ -3645,7 +3632,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Max Connections", "type": "text" }, @@ -3658,7 +3645,7 @@ "h": 1, "w": 3, "x": 6, - "y": 25 + "y": 19 }, "id": 184, "options": { @@ -3670,7 +3657,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Shared Buffers", "type": "text" }, @@ -3683,7 +3670,7 @@ "h": 1, "w": 3, "x": 9, - "y": 25 + "y": 19 }, "id": 185, "options": { @@ -3695,7 +3682,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Effective Cache Size", "type": "text" }, @@ -3708,7 +3695,7 @@ "h": 1, "w": 3, "x": 12, - "y": 25 + "y": 19 }, "id": 186, "options": { @@ -3720,7 +3707,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Work Mem", "type": "text" }, @@ -3733,7 +3720,7 @@ "h": 1, "w": 3, "x": 15, - "y": 25 + "y": 19 }, "id": 188, "options": { @@ -3745,7 +3732,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Maintenance Work Mem", "type": "text" }, @@ -3758,7 +3745,7 @@ "h": 1, "w": 3, "x": 18, - "y": 25 + "y": 19 }, "id": 189, "options": { @@ -3770,7 +3757,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Random Page Cost", "type": "text" }, @@ -3783,7 +3770,7 @@ "h": 1, "w": 3, "x": 21, - "y": 25 + "y": 19 }, "id": 190, "options": { @@ -3795,7 +3782,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Sequential Page Cost", "type": "text" }, @@ -3808,7 +3795,7 @@ "h": 3, "w": 3, "x": 0, - "y": 26 + "y": 20 }, "id": 86, "options": { @@ -3829,7 +3816,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -3853,7 +3840,7 @@ "h": 3, "w": 3, "x": 3, - "y": 26 + "y": 20 }, "id": 30, "options": { @@ -3878,7 +3865,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"max_connections\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -3894,7 +3881,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -3920,7 +3907,7 @@ "h": 3, "w": 3, "x": 6, - "y": 26 + "y": 20 }, "id": 24, "options": { @@ -3945,7 +3932,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})", @@ -3961,7 +3948,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -3987,7 +3974,7 @@ "h": 3, "w": 3, "x": 9, - "y": 26 + "y": 20 }, "id": 57, "options": { @@ -4012,7 +3999,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})", @@ -4028,7 +4015,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -4054,7 +4041,7 @@ "h": 3, "w": 3, "x": 12, - "y": 26 + "y": 20 }, "id": 26, "options": { @@ -4079,7 +4066,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"work_mem\",namespace=~\"$namespace\",pod=~\"$instances\"} * 1024", @@ -4095,7 +4082,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -4120,7 +4107,7 @@ "h": 3, "w": 3, "x": 15, - "y": 26 + "y": 20 }, "id": 47, "options": { @@ -4145,7 +4132,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"maintenance_work_mem\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4161,7 +4148,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -4186,7 +4173,7 @@ "h": 3, "w": 3, "x": 18, - "y": 26 + "y": 20 }, "id": 48, "options": { @@ -4211,7 +4198,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"random_page_cost\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4227,7 +4214,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -4252,7 +4239,7 @@ "h": 3, "w": 3, "x": 21, - "y": 26 + "y": 20 }, "id": 56, "options": { @@ -4277,7 +4264,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{name=\"seq_page_cost\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4293,7 +4280,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -4316,8 +4303,7 @@ "color": "dark-purple" } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -4325,7 +4311,7 @@ "h": 9, "w": 24, "x": 0, - "y": 40 + "y": 60 }, "id": 150, "options": { @@ -4339,12 +4325,12 @@ "showHeader": true, "sortBy": [] }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_pg_settings_setting{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -4427,7 +4413,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -4490,7 +4476,7 @@ "h": 7, "w": 12, "x": 0, - "y": 20 + "y": 67 }, "id": 273, "options": { @@ -4501,17 +4487,16 @@ "showLegend": true }, "tooltip": { - "hideZeros": false, "mode": "multi", "sort": "desc" } }, - "pluginVersion": "12.0.0", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{pod=~\"$instances\", namespace=~\"$namespace\"}) by (pod)", @@ -4529,7 +4514,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -4666,7 +4651,7 @@ "h": 7, "w": 12, "x": 12, - "y": 20 + "y": 67 }, "id": 275, "options": { @@ -4677,17 +4662,16 @@ "showLegend": true }, "tooltip": { - "hideZeros": false, "mode": "multi", "sort": "desc" } }, - "pluginVersion": "12.0.0", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(container_memory_working_set_bytes{pod=~\"$instances\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)", @@ -4699,13 +4683,13 @@ "step": 10 } ], - "title": "Memory Usage (container memory working set)", + "title": "Memory Usage (w/o cache)", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -4762,7 +4746,7 @@ "h": 8, "w": 24, "x": 0, - "y": 35 + "y": 74 }, "id": 39, "options": { @@ -4773,17 +4757,16 @@ "showLegend": true }, "tooltip": { - "hideZeros": false, "mode": "multi", "sort": "none" } }, - "pluginVersion": "12.0.0", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (pod)", @@ -4795,7 +4778,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (state, pod)", @@ -4810,7 +4793,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -4870,7 +4853,7 @@ "h": 8, "w": 12, "x": 0, - "y": 43 + "y": 82 }, "id": 50, "options": { @@ -4881,17 +4864,16 @@ "showLegend": true }, "tooltip": { - "hideZeros": false, "mode": "multi", "sort": "none" } }, - "pluginVersion": "12.0.0", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -4904,7 +4886,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(rate(cnpg_pg_stat_database_xact_rollback{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", @@ -4920,7 +4902,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -4982,7 +4964,7 @@ "h": 8, "w": 12, "x": 12, - "y": 43 + "y": 82 }, "id": 4, "options": { @@ -4993,17 +4975,16 @@ "showLegend": true }, "tooltip": { - "hideZeros": false, "mode": "multi", "sort": "none" } }, - "pluginVersion": "12.0.0", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "max by (pod) (cnpg_backends_max_tx_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", @@ -5018,7 +4999,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -5033,6 +5014,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5070,8 +5052,7 @@ "value": 80 } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -5079,7 +5060,7 @@ "h": 8, "w": 12, "x": 0, - "y": 51 + "y": 90 }, "id": 55, "options": { @@ -5094,11 +5075,12 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_database_deadlocks{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -5115,7 +5097,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -5130,6 +5112,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5167,8 +5150,7 @@ "value": 80 } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -5176,7 +5158,7 @@ "h": 8, "w": 12, "x": 12, - "y": 51 + "y": 90 }, "id": 54, "options": { @@ -5191,11 +5173,12 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_backends_waiting_total{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -5224,7 +5207,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -5250,8 +5233,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -5259,7 +5241,7 @@ "h": 8, "w": 12, "x": 0, - "y": 60 + "y": 21 }, "id": 424, "options": { @@ -5276,12 +5258,12 @@ "sizing": "auto", "text": {} }, - "pluginVersion": "10.3.3", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})", @@ -5294,7 +5276,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})", @@ -5311,7 +5293,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -5338,8 +5320,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -5347,7 +5328,7 @@ "h": 8, "w": 12, "x": 12, - "y": 60 + "y": 21 }, "id": 426, "options": { @@ -5363,12 +5344,12 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "10.3.3", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "max by(persistentvolumeclaim) (kubelet_volume_stats_inodes_used{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"} / kubelet_volume_stats_inodes{namespace=\"$namespace\", persistentvolumeclaim=~\"$instances\"})", @@ -5381,7 +5362,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"})", @@ -5398,7 +5379,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -5424,8 +5405,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -5433,7 +5413,7 @@ "h": 7, "w": 24, "x": 0, - "y": 68 + "y": 29 }, "id": 564, "options": { @@ -5450,12 +5430,12 @@ "sizing": "auto", "text": {} }, - "pluginVersion": "10.3.3", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_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\"}", @@ -5472,7 +5452,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -5486,6 +5466,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5523,8 +5504,7 @@ "value": 80 } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -5532,7 +5512,7 @@ "h": 8, "w": 12, "x": 0, - "y": 75 + "y": 36 }, "id": 44, "options": { @@ -5547,11 +5527,12 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -5564,7 +5545,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -5578,7 +5559,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -5592,7 +5573,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -5606,7 +5587,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -5624,7 +5605,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -5638,6 +5619,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5675,8 +5657,7 @@ "value": 80 } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -5684,7 +5665,7 @@ "h": 8, "w": 12, "x": 12, - "y": 75 + "y": 36 }, "id": 46, "options": { @@ -5699,11 +5680,12 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -5716,7 +5698,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -5734,7 +5716,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -5748,6 +5730,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5782,8 +5765,7 @@ } ] }, - "unit": "decbytes", - "unitScale": true + "unit": "decbytes" }, "overrides": [] }, @@ -5791,7 +5773,7 @@ "h": 8, "w": 12, "x": 0, - "y": 83 + "y": 44 }, "id": 22, "options": { @@ -5806,12 +5788,12 @@ "sort": "none" } }, - "pluginVersion": "8.0.5", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -5828,7 +5810,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -5842,6 +5824,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5880,8 +5863,7 @@ } ] }, - "unit": "decbytes", - "unitScale": true + "unit": "decbytes" }, "overrides": [] }, @@ -5889,7 +5871,7 @@ "h": 8, "w": 12, "x": 12, - "y": 83 + "y": 44 }, "id": 2, "options": { @@ -5904,11 +5886,12 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_database_temp_bytes{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -5938,7 +5921,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -5998,7 +5981,7 @@ "h": 8, "w": 8, "x": 0, - "y": 61 + "y": 100 }, "id": 6, "options": { @@ -6017,7 +6000,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_collector_pg_wal_archive_status{value=\"ready\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6028,7 +6011,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_collector_pg_wal_archive_status{value=\"done\",namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6044,7 +6027,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -6104,7 +6087,7 @@ "h": 8, "w": 8, "x": 8, - "y": 61 + "y": 100 }, "id": 52, "options": { @@ -6123,7 +6106,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_archiver_archived_count{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -6134,7 +6117,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "rate(cnpg_pg_stat_archiver_failed_count{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", @@ -6150,7 +6133,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -6212,7 +6195,7 @@ "h": 8, "w": 8, "x": 16, - "y": 61 + "y": 100 }, "id": 53, "options": { @@ -6231,7 +6214,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_pg_stat_archiver_seconds_since_last_archival{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6246,7 +6229,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -6306,7 +6289,7 @@ "h": 8, "w": 8, "x": 0, - "y": 69 + "y": 108 }, "id": 725, "options": { @@ -6325,7 +6308,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "cnpg_collector_pg_wal{pod=~\"$instances\", namespace=~\"$namespace\", value=\"count\"}", @@ -6355,7 +6338,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -6420,7 +6403,7 @@ "h": 8, "w": 6, "x": 0, - "y": 67 + "y": 106 }, "id": 16, "options": { @@ -6439,7 +6422,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_pg_replication_lag{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6455,7 +6438,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -6516,7 +6499,7 @@ "h": 8, "w": 6, "x": 6, - "y": 67 + "y": 106 }, "id": 14, "options": { @@ -6535,7 +6518,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -6552,7 +6535,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -6613,7 +6596,7 @@ "h": 8, "w": 6, "x": 12, - "y": 67 + "y": 106 }, "id": 59, "options": { @@ -6632,7 +6615,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -6649,7 +6632,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -6711,7 +6694,7 @@ "h": 8, "w": 6, "x": 18, - "y": 67 + "y": 106 }, "id": 20, "options": { @@ -6730,7 +6713,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, @@ -6761,7 +6744,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -6783,7 +6766,7 @@ "h": 8, "w": 12, "x": 0, - "y": 63 + "y": 102 }, "id": 233, "options": { @@ -6829,7 +6812,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_collector_collection_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6844,7 +6827,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -6904,7 +6887,7 @@ "h": 8, "w": 12, "x": 12, - "y": 63 + "y": 102 }, "id": 235, "options": { @@ -6923,7 +6906,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_collector_last_collection_error{namespace=~\"$namespace\",pod=~\"$instances\"}", @@ -6952,7 +6935,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -7013,7 +6996,7 @@ "h": 6, "w": 8, "x": 0, - "y": 64 + "y": 103 }, "id": 237, "options": { @@ -7032,7 +7015,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "cnpg_collector_first_recoverability_point{namespace=~\"$namespace\",pod=~\"$instances\"}*1000 > 0", @@ -7062,7 +7045,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -7124,7 +7107,7 @@ "h": 6, "w": 5, "x": 0, - "y": 65 + "y": 104 }, "id": 295, "options": { @@ -7144,10 +7127,10 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter|checkpointer)_checkpoints_req\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "cnpg_pg_stat_bgwriter_checkpoints_req{namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "hide": false, "instant": false, @@ -7159,10 +7142,10 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter|checkpointer)_checkpoints_timed\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "cnpg_pg_stat_bgwriter_checkpoints_timed{namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -7176,7 +7159,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -7238,7 +7221,7 @@ "h": 6, "w": 5, "x": 5, - "y": 65 + "y": 104 }, "id": 296, "options": { @@ -7258,10 +7241,10 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter_checkpoint|checkpointer)_write_time\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "cnpg_pg_stat_bgwriter_checkpoint_write_time{namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "hide": false, "instant": false, @@ -7273,10 +7256,10 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "{__name__=~\"cnpg_pg_stat_(bgwriter_checkpoint|checkpointer)_sync_time\",namespace=~\"$namespace\",pod=~\"$instances\"}", + "expr": "cnpg_pg_stat_bgwriter_checkpoint_sync_time{namespace=~\"$namespace\",pod=~\"$instances\"}", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -7299,181 +7282,12 @@ "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": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -7522,7 +7336,7 @@ "h": 2, "w": 4, "x": 0, - "y": 72 + "y": 111 }, "id": 697, "options": { @@ -7544,11 +7358,11 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, - "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", + "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\"})", "hide": false, "instant": true, "legendFormat": "Ready Operator Pods", @@ -7562,7 +7376,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -7622,7 +7436,7 @@ "h": 2, "w": 4, "x": 4, - "y": 72 + "y": 111 }, "id": 702, "options": { @@ -7644,7 +7458,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -7662,7 +7476,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -7722,7 +7536,7 @@ "h": 2, "w": 4, "x": 8, - "y": 72 + "y": 111 }, "id": 698, "options": { @@ -7744,7 +7558,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -7762,7 +7576,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -7822,7 +7636,7 @@ "h": 2, "w": 4, "x": 12, - "y": 72 + "y": 111 }, "id": 704, "options": { @@ -7844,11 +7658,11 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, - "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"})", + "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"})", "hide": false, "instant": true, "legendFormat": "Scheduled Backup Reconcile Errors", @@ -7862,7 +7676,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -7922,7 +7736,7 @@ "h": 2, "w": 4, "x": 16, - "y": 72 + "y": 111 }, "id": 703, "options": { @@ -7944,7 +7758,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -7962,7 +7776,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -8043,7 +7857,7 @@ "h": 8, "w": 4, "x": 0, - "y": 74 + "y": 113 }, "id": 746, "options": { @@ -8063,10 +7877,10 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\", pod=~\"cloudnative-pg.+|cnpg-controller-manager.+\", condition=\"true\"})", + "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\"})", "hide": false, "instant": false, "legendFormat": "Ready Operator Pods", @@ -8080,7 +7894,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8172,7 +7986,7 @@ "h": 8, "w": 4, "x": 4, - "y": 74 + "y": 113 }, "id": 767, "options": { @@ -8192,7 +8006,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"cluster\"})", @@ -8208,7 +8022,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8300,7 +8114,7 @@ "h": 8, "w": 4, "x": 8, - "y": 74 + "y": 113 }, "id": 768, "options": { @@ -8320,7 +8134,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"backup\"})", @@ -8336,7 +8150,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8428,7 +8242,7 @@ "h": 8, "w": 4, "x": 12, - "y": 74 + "y": 113 }, "id": 790, "options": { @@ -8448,11 +8262,11 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, - "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=~\"scheduledbackup|scheduled-backup\"})", + "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"scheduledbackup\"})", "hide": false, "instant": false, "legendFormat": "Scheduled Backup Reconcile Errors", @@ -8466,7 +8280,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "description": "The operator reconcile errors don't distinguish between database cluster or namespaces.", "fieldConfig": { @@ -8558,7 +8372,7 @@ "h": 8, "w": 4, "x": 16, - "y": 74 + "y": 113 }, "id": 769, "options": { @@ -8578,7 +8392,7 @@ { "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "max(controller_runtime_reconcile_total{namespace=~\"$operatorNamespace\", result=\"error\", controller=\"pooler\"})", @@ -8596,10 +8410,10 @@ "type": "row" } ], - "preload": false, - "refresh": "30s", + "preload": true, + "refresh": "", "schemaVersion": 41, - "tags": ["cloudnativepg"], + "tags": ["service", "storage", "database"], "templating": { "list": [ { @@ -8623,9 +8437,9 @@ }, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, - "definition": "label_values(controller_runtime_webhook_requests_total{webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"},namespace)", + "definition": "label_values(controller_runtime_active_workers,namespace)", "description": "Namespace where the CNPG operator is located", "includeAll": false, "label": "Operator Namespace", @@ -8633,7 +8447,7 @@ "options": [], "query": { "qryType": 1, - "query": "label_values(controller_runtime_webhook_requests_total{webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"},namespace)", + "query": "label_values(controller_runtime_active_workers,namespace)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 2, @@ -8647,7 +8461,7 @@ }, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "definition": "cnpg_collector_up", "description": "Namespace where the database cluster is located", @@ -8670,7 +8484,7 @@ }, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "definition": "cnpg_collector_up{namespace=~\"$namespace\"}", "description": "CNPG Cluster", @@ -8695,7 +8509,7 @@ }, "datasource": { "type": "prometheus", - "uid": "prometheus" + "uid": "${DS_PROMETHEUS}" }, "definition": "cnpg_collector_up{namespace=~\"$namespace\",pod=~\"$cluster-([1-9][0-9]*)$\"}", "description": "Database cluster instances", @@ -8717,14 +8531,12 @@ ] }, "time": { - "from": "now-7d", + "from": "now-24h", "to": "now" }, - "timepicker": { - "nowDelay": "" - }, - "timezone": "", + "timepicker": {}, + "timezone": "browser", "title": "CloudNativePG", - "uid": "cloudnative-pg", + "uid": "49074fe26a0664be2c478b6fbd59fb54", "version": 1 }