From 40558dd74c0a65a94fdcfb8ee9d0a8453516bd73 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 5 Jan 2025 20:19:10 -0600 Subject: [PATCH] match to live --- dashboards/service/cloudnativepg.json | 1810 +++++++++++++------------ 1 file changed, 924 insertions(+), 886 deletions(-) diff --git a/dashboards/service/cloudnativepg.json b/dashboards/service/cloudnativepg.json index 6d9a4a7..5748868 100644 --- a/dashboards/service/cloudnativepg.json +++ b/dashboards/service/cloudnativepg.json @@ -24,7 +24,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 205, + "id": 62, "links": [], "panels": [ { @@ -3625,7 +3625,7 @@ "h": 1, "w": 3, "x": 0, - "y": 25 + "y": 19 }, "id": 187, "options": { @@ -3637,7 +3637,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Instance", "transparent": true, "type": "text" @@ -3651,7 +3651,7 @@ "h": 1, "w": 3, "x": 3, - "y": 25 + "y": 19 }, "id": 183, "options": { @@ -3663,7 +3663,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Max Connections", "type": "text" }, @@ -3676,7 +3676,7 @@ "h": 1, "w": 3, "x": 6, - "y": 25 + "y": 19 }, "id": 184, "options": { @@ -3688,7 +3688,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Shared Buffers", "type": "text" }, @@ -3701,7 +3701,7 @@ "h": 1, "w": 3, "x": 9, - "y": 25 + "y": 19 }, "id": 185, "options": { @@ -3713,7 +3713,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Effective Cache Size", "type": "text" }, @@ -3726,7 +3726,7 @@ "h": 1, "w": 3, "x": 12, - "y": 25 + "y": 19 }, "id": 186, "options": { @@ -3738,7 +3738,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Work Mem", "type": "text" }, @@ -3751,7 +3751,7 @@ "h": 1, "w": 3, "x": 15, - "y": 25 + "y": 19 }, "id": 188, "options": { @@ -3763,7 +3763,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Maintenance Work Mem", "type": "text" }, @@ -3776,7 +3776,7 @@ "h": 1, "w": 3, "x": 18, - "y": 25 + "y": 19 }, "id": 189, "options": { @@ -3788,7 +3788,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Random Page Cost", "type": "text" }, @@ -3801,7 +3801,7 @@ "h": 1, "w": 3, "x": 21, - "y": 25 + "y": 19 }, "id": 190, "options": { @@ -3813,7 +3813,7 @@ "content": "", "mode": "html" }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "title": "Sequential Page Cost", "type": "text" }, @@ -3826,7 +3826,7 @@ "h": 3, "w": 3, "x": 0, - "y": 26 + "y": 20 }, "id": 86, "options": { @@ -3859,7 +3859,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple" + "color": "dark-purple", + "value": null } ] }, @@ -3871,7 +3872,7 @@ "h": 3, "w": 3, "x": 3, - "y": 26 + "y": 20 }, "id": 30, "options": { @@ -3925,7 +3926,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple" + "color": "dark-purple", + "value": null } ] }, @@ -3938,7 +3940,7 @@ "h": 3, "w": 3, "x": 6, - "y": 26 + "y": 20 }, "id": 24, "options": { @@ -3992,7 +3994,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple" + "color": "dark-purple", + "value": null } ] }, @@ -4005,7 +4008,7 @@ "h": 3, "w": 3, "x": 9, - "y": 26 + "y": 20 }, "id": 57, "options": { @@ -4059,7 +4062,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple" + "color": "dark-purple", + "value": null } ] }, @@ -4072,7 +4076,7 @@ "h": 3, "w": 3, "x": 12, - "y": 26 + "y": 20 }, "id": 26, "options": { @@ -4125,7 +4129,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple" + "color": "dark-purple", + "value": null } ] }, @@ -4138,7 +4143,7 @@ "h": 3, "w": 3, "x": 15, - "y": 26 + "y": 20 }, "id": 47, "options": { @@ -4191,7 +4196,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple" + "color": "dark-purple", + "value": null } ] }, @@ -4204,7 +4210,7 @@ "h": 3, "w": 3, "x": 18, - "y": 26 + "y": 20 }, "id": 48, "options": { @@ -4257,7 +4263,8 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple" + "color": "dark-purple", + "value": null } ] }, @@ -4270,7 +4277,7 @@ "h": 3, "w": 3, "x": 21, - "y": 26 + "y": 20 }, "id": 56, "options": { @@ -4331,11 +4338,11 @@ "mode": "absolute", "steps": [ { - "color": "dark-purple" + "color": "dark-purple", + "value": null } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -4343,7 +4350,7 @@ "h": 9, "w": 24, "x": 0, - "y": 32 + "y": 60 }, "id": 150, "options": { @@ -4357,7 +4364,7 @@ "showHeader": true, "sortBy": [] }, - "pluginVersion": "10.3.1", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -4433,7 +4440,7 @@ "type": "row" }, { - "collapsed": false, + "collapsed": true, "gridPos": { "h": 1, "w": 24, @@ -4441,800 +4448,805 @@ "y": 19 }, "id": 10, - "panels": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 67 + }, + "id": 273, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{pod=~\"$instances\", namespace=~\"$namespace\"}) by (pod)", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{pod}}", + "refId": "A", + "step": 10 + } + ], + "title": "CPU Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "quota - requests" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#F2495C", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [10, 10], + "fill": "dash" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "quota - limits" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#FF9830", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [10, 10], + "fill": "dash" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 67 + }, + "id": 275, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(container_memory_working_set_bytes{pod=~\"$instances\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{pod}}", + "refId": "A", + "step": 10 + } + ], + "title": "Memory Usage (w/o cache)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 74 + }, + "id": 39, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (pod)", + "hide": false, + "interval": "", + "legendFormat": "total ({{pod}})", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (state, pod)", + "interval": "", + "legendFormat": "{{state}} ({{pod}})", + "refId": "A" + } + ], + "title": "Session States", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 82 + }, + "id": 50, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "sum(rate(cnpg_pg_stat_database_xact_commit{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", + "interval": "", + "legendFormat": "committed ({{pod}})", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(rate(cnpg_pg_stat_database_xact_rollback{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", + "hide": false, + "interval": "", + "legendFormat": "rolled back ({{pod}})", + "refId": "B" + } + ], + "title": "Transactions [5m]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 82 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "max by (pod) (cnpg_backends_max_tx_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], + "title": "Longest Transaction", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 90 + }, + "id": 55, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "rate(cnpg_pg_stat_database_deadlocks{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "count ({{pod}})", + "refId": "B" + } + ], + "title": "Deadlocks [5m]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 90 + }, + "id": 54, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "cnpg_backends_waiting_total{namespace=~\"$namespace\",pod=~\"$instances\"}", + "interval": "", + "legendFormat": "{{pod}}", + "refId": "A" + } + ], + "title": "Blocked Queries", + "type": "timeseries" + } + ], "title": "Operational Stats", "type": "row" }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "log": 10, - "type": "log" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 20 - }, - "id": 273, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{pod=~\"$instances\", namespace=~\"$namespace\"}) by (pod)", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{pod}}", - "refId": "A", - "step": 10 - } - ], - "title": "CPU Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "quota - requests" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#F2495C", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineStyle", - "value": { - "dash": [10, 10], - "fill": "dash" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "quota - limits" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#FF9830", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineStyle", - "value": { - "dash": [10, 10], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 20 - }, - "id": 275, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(container_memory_working_set_bytes{pod=~\"$instances\", namespace=\"$namespace\", container!=\"\", image!=\"\"}) by (pod)", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{pod}}", - "refId": "A", - "step": 10 - } - ], - "title": "Memory Usage (w/o cache)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 27 - }, - "id": 39, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (pod)", - "hide": false, - "interval": "", - "legendFormat": "total ({{pod}})", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(cnpg_backends_total{namespace=~\"$namespace\",pod=~\"$instances\"}) by (state, pod)", - "interval": "", - "legendFormat": "{{state}} ({{pod}})", - "refId": "A" - } - ], - "title": "Session States", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 35 - }, - "id": 50, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(rate(cnpg_pg_stat_database_xact_commit{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", - "interval": "", - "legendFormat": "committed ({{pod}})", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(rate(cnpg_pg_stat_database_xact_rollback{namespace=~\"$namespace\",pod=~\"$instances\"}[5m])) by (pod)", - "hide": false, - "interval": "", - "legendFormat": "rolled back ({{pod}})", - "refId": "B" - } - ], - "title": "Transactions [5m]", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 35 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "max by (pod) (cnpg_backends_max_tx_duration_seconds{namespace=~\"$namespace\",pod=~\"$instances\"})", - "interval": "", - "legendFormat": "{{pod}}", - "refId": "A" - } - ], - "title": "Longest Transaction", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unitScale": true - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 43 - }, - "id": 55, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "rate(cnpg_pg_stat_database_deadlocks{datname=\"\",namespace=~\"$namespace\",pod=~\"$instances\"}[5m])", - "hide": false, - "instant": false, - "interval": "", - "legendFormat": "count ({{pod}})", - "refId": "B" - } - ], - "title": "Deadlocks [5m]", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unitScale": true - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 43 - }, - "id": 54, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "cnpg_backends_waiting_total{namespace=~\"$namespace\",pod=~\"$instances\"}", - "interval": "", - "legendFormat": "{{pod}}", - "refId": "A" - } - ], - "title": "Blocked Queries", - "type": "timeseries" - }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 51 + "y": 20 }, "id": 35, "panels": [ @@ -5255,7 +5267,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -5267,8 +5280,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -5276,7 +5288,7 @@ "h": 8, "w": 12, "x": 0, - "y": 52 + "y": 21 }, "id": 424, "options": { @@ -5293,7 +5305,7 @@ "sizing": "auto", "text": {} }, - "pluginVersion": "10.3.3", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5343,7 +5355,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -5355,8 +5368,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -5364,7 +5376,7 @@ "h": 8, "w": 12, "x": 12, - "y": 52 + "y": 21 }, "id": 426, "options": { @@ -5380,7 +5392,7 @@ "showThresholdMarkers": true, "sizing": "auto" }, - "pluginVersion": "10.3.3", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5429,7 +5441,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "#EAB839", @@ -5441,8 +5454,7 @@ } ] }, - "unit": "percentunit", - "unitScale": true + "unit": "percentunit" }, "overrides": [] }, @@ -5450,7 +5462,7 @@ "h": 7, "w": 24, "x": 0, - "y": 60 + "y": 29 }, "id": 564, "options": { @@ -5467,7 +5479,7 @@ "sizing": "auto", "text": {} }, - "pluginVersion": "10.3.3", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5503,6 +5515,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5533,15 +5546,15 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", "value": 80 } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -5549,7 +5562,7 @@ "h": 8, "w": 12, "x": 0, - "y": 67 + "y": 36 }, "id": 44, "options": { @@ -5564,6 +5577,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5655,6 +5669,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5685,15 +5700,15 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", "value": 80 } ] - }, - "unitScale": true + } }, "overrides": [] }, @@ -5701,7 +5716,7 @@ "h": 8, "w": 12, "x": 12, - "y": 67 + "y": 36 }, "id": 46, "options": { @@ -5716,6 +5731,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5765,6 +5781,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5795,12 +5812,12 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, - "unit": "decbytes", - "unitScale": true + "unit": "decbytes" }, "overrides": [] }, @@ -5808,7 +5825,7 @@ "h": 8, "w": 12, "x": 0, - "y": 75 + "y": 44 }, "id": 22, "options": { @@ -5823,7 +5840,7 @@ "sort": "none" } }, - "pluginVersion": "8.0.5", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5859,6 +5876,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -5889,7 +5907,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -5897,8 +5916,7 @@ } ] }, - "unit": "decbytes", - "unitScale": true + "unit": "decbytes" }, "overrides": [] }, @@ -5906,7 +5924,7 @@ "h": 8, "w": 12, "x": 12, - "y": 75 + "y": 44 }, "id": 2, "options": { @@ -5921,6 +5939,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -5948,7 +5967,7 @@ "h": 1, "w": 24, "x": 0, - "y": 52 + "y": 21 }, "id": 37, "panels": [ @@ -6015,7 +6034,7 @@ "h": 8, "w": 8, "x": 0, - "y": 53 + "y": 100 }, "id": 6, "options": { @@ -6121,7 +6140,7 @@ "h": 8, "w": 8, "x": 8, - "y": 53 + "y": 100 }, "id": 52, "options": { @@ -6229,7 +6248,7 @@ "h": 8, "w": 8, "x": 16, - "y": 53 + "y": 100 }, "id": 53, "options": { @@ -6323,7 +6342,7 @@ "h": 8, "w": 8, "x": 0, - "y": 61 + "y": 108 }, "id": 725, "options": { @@ -6365,7 +6384,7 @@ "h": 1, "w": 24, "x": 0, - "y": 53 + "y": 22 }, "id": 18, "panels": [ @@ -6437,7 +6456,7 @@ "h": 8, "w": 6, "x": 0, - "y": 59 + "y": 106 }, "id": 16, "options": { @@ -6533,7 +6552,7 @@ "h": 8, "w": 6, "x": 6, - "y": 59 + "y": 106 }, "id": 14, "options": { @@ -6630,7 +6649,7 @@ "h": 8, "w": 6, "x": 12, - "y": 59 + "y": 106 }, "id": 59, "options": { @@ -6728,7 +6747,7 @@ "h": 8, "w": 6, "x": 18, - "y": 59 + "y": 106 }, "id": 20, "options": { @@ -6771,7 +6790,7 @@ "h": 1, "w": 24, "x": 0, - "y": 54 + "y": 23 }, "id": 231, "panels": [ @@ -6800,7 +6819,7 @@ "h": 8, "w": 12, "x": 0, - "y": 55 + "y": 102 }, "id": 233, "options": { @@ -6921,7 +6940,7 @@ "h": 8, "w": 12, "x": 12, - "y": 55 + "y": 102 }, "id": 235, "options": { @@ -6962,7 +6981,7 @@ "h": 1, "w": 24, "x": 0, - "y": 55 + "y": 24 }, "id": 239, "panels": [ @@ -7030,7 +7049,7 @@ "h": 6, "w": 8, "x": 0, - "y": 56 + "y": 103 }, "id": 237, "options": { @@ -7072,7 +7091,7 @@ "h": 1, "w": 24, "x": 0, - "y": 56 + "y": 25 }, "id": 293, "panels": [ @@ -7141,7 +7160,7 @@ "h": 6, "w": 5, "x": 0, - "y": 57 + "y": 104 }, "id": 295, "options": { @@ -7255,7 +7274,7 @@ "h": 6, "w": 5, "x": 5, - "y": 57 + "y": 104 }, "id": 296, "options": { @@ -7314,7 +7333,7 @@ "h": 1, "w": 24, "x": 0, - "y": 57 + "y": 26 }, "id": 696, "panels": [ @@ -7370,7 +7389,7 @@ "h": 2, "w": 4, "x": 0, - "y": 64 + "y": 111 }, "id": 697, "options": { @@ -7470,7 +7489,7 @@ "h": 2, "w": 4, "x": 4, - "y": 64 + "y": 111 }, "id": 702, "options": { @@ -7570,7 +7589,7 @@ "h": 2, "w": 4, "x": 8, - "y": 64 + "y": 111 }, "id": 698, "options": { @@ -7670,7 +7689,7 @@ "h": 2, "w": 4, "x": 12, - "y": 64 + "y": 111 }, "id": 704, "options": { @@ -7770,7 +7789,7 @@ "h": 2, "w": 4, "x": 16, - "y": 64 + "y": 111 }, "id": 703, "options": { @@ -7891,7 +7910,7 @@ "h": 8, "w": 4, "x": 0, - "y": 66 + "y": 113 }, "id": 746, "options": { @@ -8020,7 +8039,7 @@ "h": 8, "w": 4, "x": 4, - "y": 66 + "y": 113 }, "id": 767, "options": { @@ -8148,7 +8167,7 @@ "h": 8, "w": 4, "x": 8, - "y": 66 + "y": 113 }, "id": 768, "options": { @@ -8276,7 +8295,7 @@ "h": 8, "w": 4, "x": 12, - "y": 66 + "y": 113 }, "id": 790, "options": { @@ -8406,7 +8425,7 @@ "h": 8, "w": 4, "x": 16, - "y": 66 + "y": 113 }, "id": 769, "options": { @@ -8447,10 +8466,14 @@ "preload": true, "refresh": "", "schemaVersion": 40, - "tags": ["service","storage","database"], + "tags": ["service", "storage", "database"], "templating": { "list": [ { + "current": { + "text": "Prometheus", + "value": "prometheus" + }, "includeAll": false, "label": "Datasource", "name": "DS_PROMETHEUS", @@ -8461,6 +8484,10 @@ "type": "datasource" }, { + "current": { + "text": "cloudnative-pg", + "value": "cloudnative-pg" + }, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" @@ -8481,6 +8508,10 @@ "type": "query" }, { + "current": { + "text": "argo-workflows", + "value": "argo-workflows" + }, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" @@ -8500,6 +8531,10 @@ "type": "query" }, { + "current": { + "text": "argo-workflows-postgresql-17-cluster", + "value": "argo-workflows-postgresql-17-cluster" + }, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" @@ -8521,6 +8556,10 @@ }, { "allValue": "$cluster-([1-9][0-9]*)", + "current": { + "text": "All", + "value": ["$__all"] + }, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" @@ -8552,6 +8591,5 @@ "timezone": "browser", "title": "CloudNativePG", "uid": "49074fe26a0664be2c478b6fbd59fb54", - "version": 2, "weekStart": "" }