diff --git a/postgres-observability/templates/grafana/database-dashboard-definition.yaml b/postgres-observability/templates/grafana/database-dashboard-definition.yaml index 3d3ed5d..cae05e9 100644 --- a/postgres-observability/templates/grafana/database-dashboard-definition.yaml +++ b/postgres-observability/templates/grafana/database-dashboard-definition.yaml @@ -13,26 +13,38 @@ data: "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, "type": "dashboard" } ] }, "description": "postgres exporter Dashboard for display important postgreSQL metric", "editable": true, + "fiscalYearStartMonth": 0, "gnetId": 12485, "graphTooltip": 0, - "id": 139, - "iteration": 1662220831032, + "id": 66, "links": [], + "liveNow": false, "panels": [ { "collapsed": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, @@ -41,32 +53,55 @@ data: }, "id": 18, "panels": [], + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" + } + ], "title": "Global Statistics", "type": "row" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Source: server_version_num", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -74,87 +109,75 @@ data: "y": 1 }, "id": 11, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "max(pg_settings_server_version_num)", "legendFormat": "", "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "PostgreSQL Version", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Max Replication lag behind master in seconds\n\nOnly available on a standby system.\n\nSource: pg_last_xact_replay_timestamp\n\nUse: pg_stat_replication for Details.", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, "overrides": [] }, - "format": "s", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -162,46 +185,28 @@ data: "y": 1 }, "id": 84, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:489", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:490", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "max(ccp_replication_lag_received_time{instance=\"$Instance\"})", "interval": "", @@ -209,45 +214,48 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Max Replication Lag", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:492", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Clients executing Statements.\n\nSource: pg_stat_activity", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -255,82 +263,56 @@ data: "y": 1 }, "id": 23, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:1083", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:1084", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum(pg_stat_activity_count{state=\"active\",instance=\"$Instance\"})", "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Active clients", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:1086", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Shared buffer hits vs reads from disc", "fieldConfig": { "defaults": { "decimals": 2, "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -373,34 +355,40 @@ data: "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum(pg_stat_database_blks_hit{instance=~\"$Instance\"})/(sum(pg_stat_database_blks_hit{instance=~\"$Instance\"})+sum(pg_stat_database_blks_read{instance=~\"$Instance\"}))*100", "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "Shared Buffer Hits", "type": "gauge" }, { - "cacheTimeout": null, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Percentage of max_connections used", "fieldConfig": { "defaults": { "decimals": 0, "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], + "max": 1, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -443,34 +431,40 @@ data: "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum(pg_stat_database_numbackends)/max(pg_settings_max_connections)", "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "Connections used", "type": "gauge" }, { - "cacheTimeout": null, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Transaction committed vs rollbacked", "fieldConfig": { "defaults": { "decimals": 2, "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], + "max": 1, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -513,42 +507,58 @@ data: "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum(pg_stat_database_xact_commit{instance=\"$Instance\"})/(sum(pg_stat_database_xact_commit{instance=\"$Instance\"}) + sum(pg_stat_database_xact_rollback{instance=\"$Instance\"}))", "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "Commit Ratio", "type": "gauge" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "decimals": 1, + "datasource": { + "uid": "prometheus" + }, "description": "Source: ccp_postmaster_uptime_seconds()", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, "overrides": [] }, - "format": "s", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -556,46 +566,28 @@ data: "y": 4 }, "id": 57, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:987", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:988", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "ccp_postmaster_uptime_seconds{instance=\"$Instance\"}", "interval": "", @@ -603,45 +595,48 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "PostgreSQL Uptime", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:990", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Transactions committed + roolback per minute\n\nSource: pg_stat_database,xact_commit + xact_rollback", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -651,133 +646,104 @@ data: "id": 14, "interval": "", "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum((rate(pg_stat_database_xact_commit{instance=\"$Instance\"}[$Interval])))+sum((rate(pg_stat_database_xact_rollback{instance=\"$Instance\"}[$Interval])))", "interval": "", "legendFormat": "", "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Transaction rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Statements executed per Minute.\n\nSource: pg_stat_statements.calls", "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 4 - }, - "id": 93, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:379", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:380", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 8, + "y": 4 + }, + "id": 93, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "sum((rate(ccp_pg_stat_statements_total_calls_count{instance=\"$Instance\"}[$Interval])))", "interval": "", @@ -785,46 +751,49 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Query rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:382", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "decimals": 2, + "datasource": { + "uid": "prometheus" + }, "description": "Size of all databases in $Instance.\n\nSource: pg_database_size()", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -832,46 +801,28 @@ data: "y": 7 }, "id": 37, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:107", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:108", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(ccp_database_size_bytes{instance=\"$Instance\"})", "interval": "", @@ -879,45 +830,48 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Total database size", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:110", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Source: pg_stat_statements.total_time / pg_stat_statements.calls", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, "overrides": [] }, - "format": "s", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -925,46 +879,28 @@ data: "y": 7 }, "id": 102, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:334", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:335", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "sum((delta(ccp_pg_stat_statements_total_exec_time_ms{instance=\"$Instance\"}[$Interval])))/sum((delta(ccp_pg_stat_statements_total_calls_count{instance=\"$Instance\"}[$Interval])))", "interval": "", @@ -972,46 +908,48 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Average query runtime", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:337", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "decimals": 0, + "datasource": { + "uid": "prometheus" + }, "description": "Setting: shared_buffers in PostgreSQL.conf", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -1019,86 +957,73 @@ data: "y": 7 }, "id": 66, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_shared_buffers_bytes{instance=\"$Instance\"}", "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Shared Buffers", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Setting: max_connections in postgreSQL.conf", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -1106,69 +1031,43 @@ data: "y": 7 }, "id": 75, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_max_connections{instance=\"$Instance\"}", "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Max Connections", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "decimals": 0, "description": "View: pg_stat_activity", "fieldConfig": { @@ -1215,7 +1114,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -1225,15 +1124,16 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum by (state) (pg_stat_activity_count{instance=\"$Instance\"})", - "legendFormat": "{{`{{state}}`}}", + "legendFormat": "{{ `{{` }}state{{ `}}` }}", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Connections by state (stacked)", "tooltip": { "shared": true, @@ -1242,9 +1142,7 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -1252,25 +1150,18 @@ data: { "decimals": 0, "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "decimals": 0, "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1278,7 +1169,9 @@ data: "bars": true, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "decimals": 0, "description": "View: pg_stat_activity", "fieldConfig": { @@ -1325,7 +1218,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", @@ -1335,15 +1228,16 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum by (datname) (pg_stat_activity_count{instance=\"$Instance\"})", - "legendFormat": "{{`{{datname}}`}}", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Connections by database (stacked)", "tooltip": { "shared": true, @@ -1352,2635 +1246,38 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "decimals": 0, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "decimals": 0, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "decimals": 2, - "description": "1 Minute rate of transactions committed or rollback.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 19 - }, - "hiddenSeries": false, - "id": 12, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum ((rate(pg_stat_database_xact_commit[$Interval])))", - "interval": "", - "legendFormat": "committed", - "refId": "A" - }, - { - "expr": "sum ((rate(pg_stat_database_xact_rollback[$Interval])))", - "hide": false, - "interval": "", - "legendFormat": "rollback", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Transactions", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Source: pg_stat_database", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 19 - }, - "hiddenSeries": false, - "id": 27, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideZero": false, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum((rate(pg_stat_database_tup_inserted{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "Inserts", - "refId": "A" - }, - { - "expr": "sum((rate(pg_stat_database_tup_updated{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "Updates", - "refId": "B" - }, - { - "expr": "sum((rate(pg_stat_database_tup_deleted{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "Deletes", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Tuples inserts/updates/deletes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "* blk_read_time: Time spent reading data file blocks by backends in this database, in milliseconds\n* blk_write_time: Time spent writing data file blocks by backends in this database, in milliseconds\n\ntrack_io_timings needs to be activated", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 28 - }, - "hiddenSeries": false, - "id": 26, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum ((rate(pg_stat_database_blk_read_time{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "blk_read_time", - "refId": "A" - }, - { - "expr": "sum ((rate(pg_stat_database_blk_write_time{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "blk_read_time", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "I/O Read/Write time", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Source: pg_stat_database\n\n* tup_fetched: rows needed to satisfy queries\n* tup_returned: rows read/scanned", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 28 - }, - "hiddenSeries": false, - "id": 111, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideZero": false, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum((rate(pg_stat_database_tup_fetched{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "Fetched", - "refId": "A" - }, - { - "expr": "sum((rate(pg_stat_database_tup_returned{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "Returned", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Tuples fetched/returned", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Source: pg_locks", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 37 - }, - "hiddenSeries": false, - "id": 29, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [ - { - "title": "PostgreSQL Lock Modes", - "url": "https://www.postgresql.org/docs/12/explicit-locking.html#LOCKING-TABLES" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (mode) (pg_locks_count{instance=\"$Instance\"})", - "legendFormat": "{{`{{mode}}`}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Locks by state", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Should be 0 \n\nSource: pg_stat_database\n\nWith log_lock_waits turned on, deadlocks will be logged to the PostgreSQL Logfiles.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 37 - }, - "hiddenSeries": false, - "id": 30, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [ - { - "title": "PostgreSQL Locking", - "url": "https://www.postgresql.org/docs/12/explicit-locking.html" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (datname) ((rate(pg_stat_database_deadlocks{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "{{`{{datname}}`}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Deadlocks by database", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Should be 0. If temporary files are created, it can indicate insufficient work_mem. With log_temp_files the creation of temporary files are logged to the PostgreSQL Logfiles.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 42 - }, - "hiddenSeries": false, - "id": 31, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [ - { - "title": "PostgreSQL Ressources", - "url": "https://www.postgresql.org/docs/current/runtime-config-resource.html" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (datname) ((rate(pg_stat_database_temp_files{instance=\"$Instance\"}[$Interval])))", - "interval": "", - "legendFormat": "{{`{{datname}}`}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Temporary files by database", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Lag behind master in seconds.\n\nOnly available on a standby System.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 47 - }, - "hiddenSeries": false, - "id": 120, - "interval": "1m", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "max(pg_replication_lag{instance=\"$Instance\"})", - "instant": false, - "intervalFactor": 1, - "legendFormat": "lag ", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Replication lag ", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": false, - "datasource": "prometheus", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 57 - }, - "id": 20, - "panels": [], - "repeat": "Database", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "title": "Database: $Database", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 58 - }, - "id": 46, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:712", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:713", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "exemplar": true, - "expr": "pg_stat_activity_count{state=\"active\",instance=\"$Instance\",datname=~\"$Database\"}", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Active clients", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:715", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "decimals": 2, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 58 - }, - "id": 43, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:419", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:420", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "exemplar": true, - "expr": "ccp_database_size_bytes{instance=\"$Instance\", dbname=\"$Database\"}", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Database size", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:422", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "datasource": "prometheus", - "description": "Shared buffer hits vs reads from disc", - "fieldConfig": { - "defaults": { - "decimals": 2, - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "semi-dark-red", - "value": null - }, - { - "color": "semi-dark-yellow", - "value": 0.8 - }, - { - "color": "semi-dark-green", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 8, - "y": 58 - }, - "id": 44, - "links": [], - "options": { - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "7.5.16", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "targets": [ - { - "expr": "pg_stat_database_blks_hit{instance=~\"$Instance\",datname=~\"$Database\"}/(pg_stat_database_blks_hit{instance=~\"$Instance\",datname=~\"$Database\"}+pg_stat_database_blks_read{instance=~\"$Instance\",datname=~\"$Database\"})", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Shared Buffer Hits", - "type": "gauge" - }, - { - "cacheTimeout": null, - "datasource": "prometheus", - "description": "Transaction committed vs rollbacked", - "fieldConfig": { - "defaults": { - "decimals": 2, - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "semi-dark-red", - "value": null - }, - { - "color": "#EAB839", - "value": 0.75 - }, - { - "color": "semi-dark-green", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 12, - "y": 58 - }, - "id": 45, - "links": [], - "options": { - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "7.5.16", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "targets": [ - { - "expr": "pg_stat_database_xact_commit{instance=\"$Instance\",datname=~\"$Database\"}/(pg_stat_database_xact_commit{instance=\"$Instance\",datname=~\"$Database\"} + pg_stat_database_xact_rollback{instance=\"$Instance\",datname=~\"$Database\"})", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Commit Ratio", - "type": "gauge" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "description": "Transactions committed + roolback per minute\n\nSource: pg_stat_database,xact_commit + xact_rollback", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 61 - }, - "id": 122, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum((rate(pg_stat_database_xact_commit{instance=\"$Instance\",datname=\"$Database\"}[$Interval])))+sum((rate(pg_stat_database_xact_rollback{instance=\"$Instance\",datname=\"$Database\"}[$Interval])))", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Transaction rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "decimals": 0, - "description": "View: pg_stat_activity", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 64 - }, - "hiddenSeries": false, - "id": 47, - "interval": "$Interval", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 1, - "links": [ - { - "targetBlank": true, - "title": "PostgreSQL Documentation", - "url": "https://www.postgresql.org/docs/current/monitoring-stats.html" - } - ], - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (state) (pg_stat_activity_count{instance=\"$Instance\",datname=\"$Database\"})", - "legendFormat": "{{`{{state}}`}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Connections by state (stacked)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "decimals": 0, - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "decimals": 2, - "description": "1 Minute rate of transactions committed or rollback.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 64 - }, - "hiddenSeries": false, - "id": 48, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(pg_stat_database_xact_commit{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "committed", - "refId": "A" - }, - { - "expr": "rate(pg_stat_database_xact_rollback{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "hide": false, - "interval": "", - "legendFormat": "rollback", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Transactions", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Source: pg_stat_database", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 73 - }, - "hiddenSeries": false, - "id": 124, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideZero": false, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(pg_stat_database_tup_inserted{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "Inserts", - "refId": "A" - }, - { - "expr": "rate(pg_stat_database_tup_updated{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "Updates", - "refId": "B" - }, - { - "expr": "rate(pg_stat_database_tup_deleted{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "Deletes", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Tuples inserts/updates/deletes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Source: pg_stat_database\n\n* tup_fetched: rows needed to satisfy queries\n* tup_returned: rows read/scanned", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 73 - }, - "hiddenSeries": false, - "id": 126, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideZero": false, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(pg_stat_database_tup_fetched{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "Fetched", - "refId": "A" - }, - { - "expr": "rate(pg_stat_database_tup_returned{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "Returned", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Tuples fetched/returned", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Source: pg_locks", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 82 - }, - "hiddenSeries": false, - "id": 128, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [ - { - "title": "PostgreSQL Lock Modes", - "url": "https://www.postgresql.org/docs/12/explicit-locking.html#LOCKING-TABLES" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (mode) (pg_locks_count{instance=\"$Instance\",datname=\"$Database\"})", - "legendFormat": "{{`{{mode}}`}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Locks by state", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Should be 0 \n\nSource: pg_stat_database\n\nWith log_lock_waits turned on, deadlocks will be logged to the PostgreSQL Logfiles.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 82 - }, - "hiddenSeries": false, - "id": 130, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [ - { - "title": "PostgreSQL Locking", - "url": "https://www.postgresql.org/docs/12/explicit-locking.html" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(pg_stat_database_deadlocks{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "deadlocks", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Deadlocks by database", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "prometheus", - "description": "Should be 0. If temporary files are created, it can indicate insufficient work_mem. With log_temp_files the creation of temporary files are logged to the PostgreSQL Logfiles.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 87 - }, - "hiddenSeries": false, - "id": 132, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [ - { - "title": "PostgreSQL Ressources", - "url": "https://www.postgresql.org/docs/current/runtime-config-resource.html" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.16", - "pointradius": 2, - "points": false, - "renderer": "flot", - "scopedVars": { - "Database": { - "selected": false, - "text": "documentservice-db", - "value": "documentservice-db" - } - }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(pg_stat_database_temp_files{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "temp_files", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Temporary files by database", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": false, - "datasource": "prometheus", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 92 - }, - "id": 133, - "panels": [], - "repeatIteration": 1662220831032, - "repeatPanelId": 20, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, - "title": "Database: $Database", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 93 - }, - "id": 134, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:712", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:713", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1662220831032, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "exemplar": true, - "expr": "pg_stat_activity_count{state=\"active\",instance=\"$Instance\",datname=~\"$Database\"}", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Active clients", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:715", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "decimals": 2, - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 93 - }, - "id": 135, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:419", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:420", - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1662220831032, - "repeatPanelId": 43, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "exemplar": true, - "expr": "ccp_database_size_bytes{instance=\"$Instance\", dbname=\"$Database\"}", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Database size", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:422", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "datasource": "prometheus", - "description": "Shared buffer hits vs reads from disc", - "fieldConfig": { - "defaults": { - "decimals": 2, - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "semi-dark-red", - "value": null - }, - { - "color": "semi-dark-yellow", - "value": 0.8 - }, - { - "color": "semi-dark-green", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 8, - "y": 93 - }, - "id": 136, - "links": [], - "options": { - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "7.5.16", - "repeatIteration": 1662220831032, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, - "targets": [ - { - "expr": "pg_stat_database_blks_hit{instance=~\"$Instance\",datname=~\"$Database\"}/(pg_stat_database_blks_hit{instance=~\"$Instance\",datname=~\"$Database\"}+pg_stat_database_blks_read{instance=~\"$Instance\",datname=~\"$Database\"})", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Shared Buffer Hits", - "type": "gauge" - }, - { - "cacheTimeout": null, - "datasource": "prometheus", - "description": "Transaction committed vs rollbacked", - "fieldConfig": { - "defaults": { - "decimals": 2, - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "semi-dark-red", - "value": null - }, - { - "color": "#EAB839", - "value": 0.75 - }, - { - "color": "semi-dark-green", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 12, - "y": 93 - }, - "id": 137, - "links": [], - "options": { - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": {} - }, - "pluginVersion": "7.5.16", - "repeatIteration": 1662220831032, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, - "targets": [ - { - "expr": "pg_stat_database_xact_commit{instance=\"$Instance\",datname=~\"$Database\"}/(pg_stat_database_xact_commit{instance=\"$Instance\",datname=~\"$Database\"} + pg_stat_database_xact_rollback{instance=\"$Instance\",datname=~\"$Database\"})", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Commit Ratio", - "type": "gauge" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "description": "Transactions committed + roolback per minute\n\nSource: pg_stat_database,xact_commit + xact_rollback", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 96 - }, - "id": 138, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1662220831032, - "repeatPanelId": 122, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", - "targets": [ - { - "expr": "sum((rate(pg_stat_database_xact_commit{instance=\"$Instance\",datname=\"$Database\"}[$Interval])))+sum((rate(pg_stat_database_xact_rollback{instance=\"$Instance\",datname=\"$Database\"}[$Interval])))", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Transaction rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ + "decimals": 0, + "format": "short", + "logBase": 1, + "show": true + }, { - "op": "=", - "text": "N/A", - "value": "null" + "decimals": 0, + "format": "short", + "logBase": 1, + "show": true } ], - "valueName": "current" + "yaxis": { + "align": false + } }, { "aliasColors": {}, - "bars": true, + "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", - "decimals": 0, - "description": "View: pg_stat_activity", + "datasource": { + "uid": "prometheus" + }, + "decimals": 2, + "description": "1 Minute rate of transactions committed or rollback.", "fieldConfig": { "defaults": { "links": [] @@ -3993,17 +1290,17 @@ data: "h": 9, "w": 12, "x": 0, - "y": 99 + "y": 19 }, "hiddenSeries": false, - "id": 139, - "interval": "$Interval", + "id": 12, + "interval": "", "legend": { "alignAsTable": true, "avg": true, "current": true, - "hideEmpty": true, - "hideZero": true, + "hideEmpty": false, + "hideZero": false, "max": true, "min": false, "rightSide": false, @@ -4011,50 +1308,45 @@ data: "total": false, "values": true }, - "lines": false, + "lines": true, "linewidth": 1, - "links": [ - { - "targetBlank": true, - "title": "PostgreSQL Documentation", - "url": "https://www.postgresql.org/docs/current/monitoring-stats.html" - } - ], - "nullPointMode": "null as zero", + "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, - "stack": true, + "stack": false, "steppedLine": false, "targets": [ { - "expr": "sum by (state) (pg_stat_activity_count{instance=\"$Instance\",datname=\"$Database\"})", - "legendFormat": "{{`{{state}}`}}", + "datasource": { + "uid": "prometheus" + }, + "expr": "sum ((rate(pg_stat_database_xact_commit[$Interval])))", + "interval": "", + "legendFormat": "committed", "refId": "A" + }, + { + "datasource": { + "uid": "prometheus" + }, + "expr": "sum ((rate(pg_stat_database_xact_rollback[$Interval])))", + "hide": false, + "interval": "", + "legendFormat": "rollback", + "refId": "B" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, - "title": "Connections by state (stacked)", + "title": "Transactions", "tooltip": { "shared": true, "sort": 0, @@ -4062,35 +1354,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "decimals": 0, "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { - "decimals": 0, "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -4098,9 +1379,10 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", - "decimals": 2, - "description": "1 Minute rate of transactions committed or rollback.", + "datasource": { + "uid": "prometheus" + }, + "description": "Source: pg_stat_database", "fieldConfig": { "defaults": { "links": [] @@ -4113,20 +1395,17 @@ data: "h": 9, "w": 12, "x": 12, - "y": 99 + "y": 19 }, "hiddenSeries": false, - "id": 140, - "interval": "", + "id": 27, "legend": { "alignAsTable": true, "avg": true, "current": true, - "hideEmpty": false, "hideZero": false, "max": true, "min": false, - "rightSide": false, "show": true, "total": false, "values": true @@ -4138,44 +1417,46 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 48, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "rate(pg_stat_database_xact_commit{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", + "datasource": { + "uid": "prometheus" + }, + "expr": "sum((rate(pg_stat_database_tup_inserted{instance=\"$Instance\"}[$Interval])))", "interval": "", - "legendFormat": "committed", + "legendFormat": "Inserts", "refId": "A" }, { - "expr": "rate(pg_stat_database_xact_rollback{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "hide": false, + "datasource": { + "uid": "prometheus" + }, + "expr": "sum((rate(pg_stat_database_tup_updated{instance=\"$Instance\"}[$Interval])))", "interval": "", - "legendFormat": "rollback", + "legendFormat": "Updates", "refId": "B" + }, + { + "datasource": { + "uid": "prometheus" + }, + "expr": "sum((rate(pg_stat_database_tup_deleted{instance=\"$Instance\"}[$Interval])))", + "interval": "", + "legendFormat": "Deletes", + "refId": "C" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, - "title": "Transactions", + "title": "Tuples inserts/updates/deletes", "tooltip": { "shared": true, "sort": 0, @@ -4183,33 +1464,26 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "format": "short", - "label": null, + "format": "none", "logBase": 1, - "max": null, - "min": null, + "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, + "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -4217,8 +1491,10 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", - "description": "Source: pg_stat_database", + "datasource": { + "uid": "prometheus" + }, + "description": "* blk_read_time: Time spent reading data file blocks by backends in this database, in milliseconds\n* blk_write_time: Time spent writing data file blocks by backends in this database, in milliseconds\n\ntrack_io_timings needs to be activated", "fieldConfig": { "defaults": { "links": [] @@ -4231,15 +1507,14 @@ data: "h": 9, "w": 12, "x": 0, - "y": 108 + "y": 28 }, "hiddenSeries": false, - "id": 141, + "id": 26, "legend": { "alignAsTable": true, "avg": true, "current": true, - "hideZero": false, "max": true, "min": false, "show": true, @@ -4253,49 +1528,37 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 124, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "rate(pg_stat_database_tup_inserted{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", + "datasource": { + "uid": "prometheus" + }, + "expr": "sum ((rate(pg_stat_database_blk_read_time{instance=\"$Instance\"}[$Interval])))", "interval": "", - "legendFormat": "Inserts", + "legendFormat": "blk_read_time", "refId": "A" }, { - "expr": "rate(pg_stat_database_tup_updated{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", + "datasource": { + "uid": "prometheus" + }, + "expr": "sum ((rate(pg_stat_database_blk_write_time{instance=\"$Instance\"}[$Interval])))", "interval": "", - "legendFormat": "Updates", + "legendFormat": "blk_read_time", "refId": "B" - }, - { - "expr": "rate(pg_stat_database_tup_deleted{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "Deletes", - "refId": "C" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, - "title": "Tuples inserts/updates/deletes", + "title": "I/O Read/Write time", "tooltip": { "shared": true, "sort": 0, @@ -4303,33 +1566,26 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "format": "none", - "label": null, + "format": "ms", "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -4337,7 +1593,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Source: pg_stat_database\n\n* tup_fetched: rows needed to satisfy queries\n* tup_returned: rows read/scanned", "fieldConfig": { "defaults": { @@ -4351,10 +1609,10 @@ data: "h": 9, "w": 12, "x": 12, - "y": 108 + "y": 28 }, "hiddenSeries": false, - "id": 142, + "id": 111, "legend": { "alignAsTable": true, "avg": true, @@ -4373,42 +1631,36 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 126, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "rate(pg_stat_database_tup_fetched{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", + "datasource": { + "uid": "prometheus" + }, + "expr": "sum((rate(pg_stat_database_tup_fetched{instance=\"$Instance\"}[$Interval])))", "interval": "", "legendFormat": "Fetched", "refId": "A" }, { - "expr": "rate(pg_stat_database_tup_returned{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", + "datasource": { + "uid": "prometheus" + }, + "expr": "sum((rate(pg_stat_database_tup_returned{instance=\"$Instance\"}[$Interval])))", "interval": "", "legendFormat": "Returned", "refId": "B" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Tuples fetched/returned", "tooltip": { "shared": true, @@ -4417,33 +1669,26 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "format": "none", - "label": null, + "format": "short", "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", - "show": true + "show": false } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -4451,7 +1696,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Source: pg_locks", "fieldConfig": { "defaults": { @@ -4465,10 +1712,10 @@ data: "h": 10, "w": 12, "x": 0, - "y": 117 + "y": 37 }, "hiddenSeries": false, - "id": 143, + "id": 29, "legend": { "alignAsTable": true, "avg": true, @@ -4492,35 +1739,26 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 128, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "sum by (mode) (pg_locks_count{instance=\"$Instance\",datname=\"$Database\"})", - "legendFormat": "{{`{{mode}}`}}", + "datasource": { + "uid": "prometheus" + }, + "expr": "sum by (mode) (pg_locks_count{instance=\"$Instance\"})", + "legendFormat": "{{ `{{` }}mode{{ `}}` }}", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Locks by state", "tooltip": { "shared": true, @@ -4529,33 +1767,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, - "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -4563,7 +1792,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Should be 0 \n\nSource: pg_stat_database\n\nWith log_lock_waits turned on, deadlocks will be logged to the PostgreSQL Logfiles.", "fieldConfig": { "defaults": { @@ -4577,10 +1808,10 @@ data: "h": 5, "w": 12, "x": 12, - "y": 117 + "y": 37 }, "hiddenSeries": false, - "id": 144, + "id": 30, "legend": { "alignAsTable": true, "avg": true, @@ -4606,36 +1837,27 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 130, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "rate(pg_stat_database_deadlocks{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", + "datasource": { + "uid": "prometheus" + }, + "expr": "sum by (datname) ((rate(pg_stat_database_deadlocks{instance=\"$Instance\"}[$Interval])))", "interval": "", - "legendFormat": "deadlocks", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Deadlocks by database", "tooltip": { "shared": true, @@ -4644,33 +1866,26 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -4678,7 +1893,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Should be 0. If temporary files are created, it can indicate insufficient work_mem. With log_temp_files the creation of temporary files are logged to the PostgreSQL Logfiles.", "fieldConfig": { "defaults": { @@ -4692,10 +1909,10 @@ data: "h": 5, "w": 12, "x": 12, - "y": 122 + "y": 42 }, "hiddenSeries": false, - "id": 145, + "id": 31, "legend": { "alignAsTable": true, "avg": true, @@ -4721,37 +1938,124 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 132, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "oauthservice-db", - "value": "oauthservice-db" + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "expr": "sum by (datname) ((rate(pg_stat_database_temp_files{instance=\"$Instance\"}[$Interval])))", + "interval": "", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Temporary files by database", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "min": "0", + "show": true } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "prometheus" + }, + "description": "Lag behind master in seconds.\n\nOnly available on a standby System.", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 10, + "w": 12, + "x": 0, + "y": 47 + }, + "hiddenSeries": false, + "id": 120, + "interval": "1m", + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true }, + "percentage": false, + "pluginVersion": "9.1.6", + "pointradius": 2, + "points": false, + "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "rate(pg_stat_database_temp_files{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", - "interval": "", - "legendFormat": "temp_files", + "datasource": { + "uid": "prometheus" + }, + "expr": "max(pg_replication_lag{instance=\"$Instance\"})", + "instant": false, + "intervalFactor": 1, + "legendFormat": "lag ", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, - "title": "Temporary files by database", + "title": "Replication lag ", "tooltip": { "shared": true, "sort": 0, @@ -4759,137 +2063,120 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "format": "none", - "label": null, + "format": "s", "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { "collapsed": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 127 + "y": 57 }, - "id": 146, + "id": 20, "panels": [], - "repeatIteration": 1662220831032, - "repeatPanelId": 20, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" + "repeat": "Database", + "targets": [ + { + "datasource": { + "uid": "prometheus" + }, + "refId": "A" } - }, + ], "title": "Database: $Database", "type": "row" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, "x": 0, - "y": 128 + "y": 58 }, - "id": 147, - "interval": null, + "id": 46, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:712", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:713", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1662220831032, - "repeatPanelId": 46, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "pg_stat_activity_count{state=\"active\",instance=\"$Instance\",datname=~\"$Database\"}", "interval": "", @@ -4897,102 +2184,77 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Active clients", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:715", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "decimals": 2, + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, "x": 4, - "y": 128 + "y": 58 }, - "id": 148, - "interval": null, + "id": 43, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:419", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:420", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1662220831032, - "repeatPanelId": 43, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "ccp_database_size_bytes{instance=\"$Instance\", dbname=\"$Database\"}", "interval": "", @@ -5000,38 +2262,30 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Database size", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:422", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Shared buffer hits vs reads from disc", "fieldConfig": { "defaults": { "decimals": 2, "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], + "max": 1, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -5057,9 +2311,9 @@ data: "h": 6, "w": 4, "x": 8, - "y": 128 + "y": 58 }, - "id": 149, + "id": 44, "links": [], "options": { "orientation": "horizontal", @@ -5074,44 +2328,40 @@ data: "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "7.5.16", - "repeatIteration": 1662220831032, - "repeatPanelId": 44, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_stat_database_blks_hit{instance=~\"$Instance\",datname=~\"$Database\"}/(pg_stat_database_blks_hit{instance=~\"$Instance\",datname=~\"$Database\"}+pg_stat_database_blks_read{instance=~\"$Instance\",datname=~\"$Database\"})", "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "Shared Buffer Hits", "type": "gauge" }, { - "cacheTimeout": null, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Transaction committed vs rollbacked", "fieldConfig": { "defaults": { "decimals": 2, "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], + "max": 1, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -5137,9 +2387,9 @@ data: "h": 6, "w": 4, "x": 12, - "y": 128 + "y": 58 }, - "id": 150, + "id": 45, "links": [], "options": { "orientation": "horizontal", @@ -5154,133 +2404,104 @@ data: "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "7.5.16", - "repeatIteration": 1662220831032, - "repeatPanelId": 45, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_stat_database_xact_commit{instance=\"$Instance\",datname=~\"$Database\"}/(pg_stat_database_xact_commit{instance=\"$Instance\",datname=~\"$Database\"} + pg_stat_database_xact_rollback{instance=\"$Instance\",datname=~\"$Database\"})", "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "Commit Ratio", "type": "gauge" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Transactions committed + roolback per minute\n\nSource: pg_stat_database,xact_commit + xact_rollback", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, "x": 0, - "y": 131 + "y": 61 }, - "id": 151, - "interval": null, + "id": 122, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeatIteration": 1662220831032, - "repeatPanelId": 122, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum((rate(pg_stat_database_xact_commit{instance=\"$Instance\",datname=\"$Database\"}[$Interval])))+sum((rate(pg_stat_database_xact_rollback{instance=\"$Instance\",datname=\"$Database\"}[$Interval])))", "interval": "", "legendFormat": "", "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Transaction rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "decimals": 0, "description": "View: pg_stat_activity", "fieldConfig": { @@ -5295,10 +2516,10 @@ data: "h": 9, "w": 12, "x": 0, - "y": 134 + "y": 64 }, "hiddenSeries": false, - "id": 152, + "id": 47, "interval": "$Interval", "legend": { "alignAsTable": true, @@ -5327,35 +2548,26 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 47, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": true, "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum by (state) (pg_stat_activity_count{instance=\"$Instance\",datname=\"$Database\"})", - "legendFormat": "{{`{{state}}`}}", + "legendFormat": "{{ `{{` }}state{{ `}}` }}", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Connections by state (stacked)", "tooltip": { "shared": true, @@ -5364,9 +2576,7 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -5374,25 +2584,18 @@ data: { "decimals": 0, "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "decimals": 0, "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -5400,7 +2603,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "decimals": 2, "description": "1 Minute rate of transactions committed or rollback.", "fieldConfig": { @@ -5415,10 +2620,10 @@ data: "h": 9, "w": 12, "x": 12, - "y": 134 + "y": 64 }, "hiddenSeries": false, - "id": 153, + "id": 48, "interval": "", "legend": { "alignAsTable": true, @@ -5440,32 +2645,28 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 48, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_xact_commit{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "interval": "", "legendFormat": "committed", "refId": "A" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_xact_rollback{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "hide": false, "interval": "", @@ -5474,9 +2675,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Transactions", "tooltip": { "shared": true, @@ -5485,33 +2684,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -5519,7 +2709,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Source: pg_stat_database", "fieldConfig": { "defaults": { @@ -5533,10 +2725,10 @@ data: "h": 9, "w": 12, "x": 0, - "y": 143 + "y": 73 }, "hiddenSeries": false, - "id": 154, + "id": 124, "legend": { "alignAsTable": true, "avg": true, @@ -5555,38 +2747,37 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 124, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_tup_inserted{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "interval": "", "legendFormat": "Inserts", "refId": "A" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_tup_updated{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "interval": "", "legendFormat": "Updates", "refId": "B" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_tup_deleted{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "interval": "", "legendFormat": "Deletes", @@ -5594,9 +2785,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Tuples inserts/updates/deletes", "tooltip": { "shared": true, @@ -5605,33 +2794,26 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -5639,7 +2821,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Source: pg_stat_database\n\n* tup_fetched: rows needed to satisfy queries\n* tup_returned: rows read/scanned", "fieldConfig": { "defaults": { @@ -5653,10 +2837,10 @@ data: "h": 9, "w": 12, "x": 12, - "y": 143 + "y": 73 }, "hiddenSeries": false, - "id": 155, + "id": 126, "legend": { "alignAsTable": true, "avg": true, @@ -5675,32 +2859,28 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 126, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_tup_fetched{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "interval": "", "legendFormat": "Fetched", "refId": "A" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_tup_returned{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "interval": "", "legendFormat": "Returned", @@ -5708,9 +2888,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Tuples fetched/returned", "tooltip": { "shared": true, @@ -5719,33 +2897,26 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -5753,7 +2924,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Source: pg_locks", "fieldConfig": { "defaults": { @@ -5767,10 +2940,10 @@ data: "h": 10, "w": 12, "x": 0, - "y": 152 + "y": 82 }, "hiddenSeries": false, - "id": 156, + "id": 128, "legend": { "alignAsTable": true, "avg": true, @@ -5794,35 +2967,26 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 128, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "sum by (mode) (pg_locks_count{instance=\"$Instance\",datname=\"$Database\"})", - "legendFormat": "{{`{{mode}}`}}", + "legendFormat": "{{ `{{` }}mode{{ `}}` }}", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Locks by state", "tooltip": { "shared": true, @@ -5831,33 +2995,26 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -5865,7 +3022,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Should be 0 \n\nSource: pg_stat_database\n\nWith log_lock_waits turned on, deadlocks will be logged to the PostgreSQL Logfiles.", "fieldConfig": { "defaults": { @@ -5879,10 +3038,10 @@ data: "h": 5, "w": 12, "x": 12, - "y": 152 + "y": 82 }, "hiddenSeries": false, - "id": 157, + "id": 130, "legend": { "alignAsTable": true, "avg": true, @@ -5908,26 +3067,19 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 130, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_deadlocks{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "interval": "", "legendFormat": "deadlocks", @@ -5935,9 +3087,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Deadlocks by database", "tooltip": { "shared": true, @@ -5946,33 +3096,26 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -5980,7 +3123,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Should be 0. If temporary files are created, it can indicate insufficient work_mem. With log_temp_files the creation of temporary files are logged to the PostgreSQL Logfiles.", "fieldConfig": { "defaults": { @@ -5994,10 +3139,10 @@ data: "h": 5, "w": 12, "x": 12, - "y": 157 + "y": 87 }, "hiddenSeries": false, - "id": 158, + "id": 132, "legend": { "alignAsTable": true, "avg": true, @@ -6023,26 +3168,19 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 2, "points": false, "renderer": "flot", - "repeatIteration": 1662220831032, - "repeatPanelId": 132, - "repeatedByRow": true, - "scopedVars": { - "Database": { - "selected": false, - "text": "schedulerservice-db", - "value": "schedulerservice-db" - } - }, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "rate(pg_stat_database_temp_files{instance=\"$Instance\",datname=\"$Database\"}[$Interval])", "interval": "", "legendFormat": "temp_files", @@ -6050,9 +3188,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Temporary files by database", "tooltip": { "shared": true, @@ -6061,56 +3197,49 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } } ], "refresh": "", - "schemaVersion": 27, + "schemaVersion": 37, "style": "dark", "tags": [], "templating": { "list": [ { - "allValue": null, "current": { + "isNone": true, "selected": false, - "text": "10.131.0.27:9187", - "value": "10.131.0.27:9187" + "text": "None", + "value": "" + }, + "datasource": { + "type": "prometheus", + "uid": "${Datasource}" }, - "datasource": "prometheus", "definition": "label_values({job=\"postgres-exporter\"}, instance)", - "description": null, - "error": null, "hide": 0, "includeAll": false, - "label": null, "multi": false, "name": "Instance", "options": [], @@ -6123,25 +3252,23 @@ data: "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": { "selected": false, "text": "All", "value": "$__all" }, - "datasource": "prometheus", + "datasource": { + "type": "prometheus", + "uid": "${Datasource}" + }, "definition": "label_values(datname)", - "description": null, - "error": null, "hide": 0, "includeAll": true, - "label": null, "multi": true, "name": "Database", "options": [], @@ -6154,7 +3281,6 @@ data: "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -6168,10 +3294,7 @@ data: "text": "10m", "value": "10m" }, - "description": null, - "error": null, "hide": 0, - "label": null, "name": "Interval", "options": [ { @@ -6225,6 +3348,23 @@ data: "refresh": 2, "skipUrlSync": false, "type": "interval" + }, + { + "current": { + "selected": false, + "text": "Prometheus", + "value": "Prometheus" + }, + "hide": 2, + "includeAll": false, + "multi": false, + "name": "Datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" } ] }, @@ -6245,6 +3385,8 @@ data: }, "timezone": "", "title": "PostgreSQL Database Dashboard", - "version": 1 + "uid": "cc4e5bba-5a58-49c3-b1d3-5a8eb23103c0", + "version": 1, + "weekStart": "" } {{- end }} \ No newline at end of file diff --git a/postgres-observability/templates/grafana/overview-dashboard-definition.yaml b/postgres-observability/templates/grafana/overview-dashboard-definition.yaml index 5e22b6d..a25d0bb 100644 --- a/postgres-observability/templates/grafana/overview-dashboard-definition.yaml +++ b/postgres-observability/templates/grafana/overview-dashboard-definition.yaml @@ -13,26 +13,39 @@ data: "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, "type": "dashboard" } ] }, "description": "This dashboard works with postgres_exporter for prometheus", "editable": true, + "fiscalYearStartMonth": 0, "gnetId": 9628, "graphTooltip": 0, - "id": 140, - "iteration": 1662220794681, + "id": 68, "links": [], + "liveNow": false, "panels": [ { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "3063d7f5-ff58-43d9-bfbe-bb2117a31348" + }, "gridPos": { "h": 1, "w": 24, @@ -41,31 +54,55 @@ data: }, "id": 34, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "3063d7f5-ff58-43d9-bfbe-bb2117a31348" + }, + "refId": "A" + } + ], "title": "General Counters, CPU, Memory and File Descriptor Stats", "type": "row" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "#7eb26d", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 2, "w": 4, @@ -73,86 +110,77 @@ data: "y": 1 }, "id": 36, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "name" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_static{release=\"$release\", instance=\"$instance\"}", "format": "time_series", "instant": true, "intervalFactor": 1, - "legendFormat": "{{`{{short_version}}`}}", + "legendFormat": "{{ `{{` }}short_version{{ `}}` }}", "refId": "A" } ], - "thresholds": "", "title": "Version", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "name" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "start time of the process", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, "overrides": [] }, - "format": "s", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 2, "w": 4, @@ -160,44 +188,28 @@ data: "y": 1 }, "id": 28, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:1178", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:1179", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "110%", - "prefix": "", - "prefixFontSize": "110%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "ccp_postmaster_uptime_seconds{release=\"$release\", instance=\"$instance\"}", "format": "time_series", @@ -207,88 +219,75 @@ data: "refId": "A" } ], - "thresholds": "", "title": "Start Time", - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "$$hashKey": "object:1181", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, "overrides": [] }, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 2, "w": 4, "x": 8, "y": 1 }, - "height": "200px", "id": 10, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:1298", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:1299", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "SUM(pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"})", "format": "time_series", "intervalFactor": 2, @@ -296,86 +295,75 @@ data: "step": 4 } ], - "thresholds": "", "title": "Current fetch data", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:1301", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, "overrides": [] }, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 2, "w": 4, "x": 12, "y": 1 }, - "height": "200px", "id": 11, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "SUM(pg_stat_database_tup_inserted{release=\"$release\", datname=~\"$datname\", instance=~\"$instance\"})", "format": "time_series", "intervalFactor": 2, @@ -383,85 +371,75 @@ data: "step": 4 } ], - "thresholds": "", "title": "Current insert data", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, "overrides": [] }, - "format": "decbytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 2, "w": 4, "x": 16, "y": 1 }, - "height": "200px", "id": 12, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "SUM(pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"})", "format": "time_series", "intervalFactor": 2, @@ -469,41 +447,46 @@ data: "step": 4 } ], - "thresholds": "", "title": "Current update data", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 2, "w": 4, @@ -511,85 +494,77 @@ data: "y": 1 }, "id": 38, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_max_connections{release=\"$release\", instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Max Connections", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "decimals": 2, + "datasource": { + "uid": "prometheus" + }, "description": "Size of all databases in $Instance.\n\nSource: pg_database_size()", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -597,46 +572,28 @@ data: "y": 3 }, "id": 72, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:107", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:108", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(ccp_database_size_bytes{instance=\"$instance\"})", "interval": "", @@ -644,45 +601,48 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Total database size", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:110", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Clients executing Statements.\n\nSource: pg_stat_activity", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -690,46 +650,28 @@ data: "y": 3 }, "id": 74, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:1083", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:1084", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "sum(pg_stat_activity_count{state=\"active\",instance=\"$instance\"})", "interval": "", @@ -737,45 +679,48 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Active clients", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:1086", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Transactions committed + roolback per minute\n\nSource: pg_stat_database,xact_commit + xact_rollback", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -785,44 +730,27 @@ data: "id": 76, "interval": "", "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:351", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:352", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "sum((rate(pg_stat_database_xact_commit{instance=\"$instance\"}[$interval])))+sum((rate(pg_stat_database_xact_rollback{instance=\"$instance\"}[$interval])))", "interval": "", @@ -830,45 +758,48 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Transaction rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:354", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Source: pg_stat_statements.total_time / pg_stat_statements.calls", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, "overrides": [] }, - "format": "s", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -876,46 +807,28 @@ data: "y": 3 }, "id": 78, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:334", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:335", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "sum((delta(ccp_pg_stat_statements_total_exec_time_ms{instance=\"$instance\"}[$interval])))/sum((delta(ccp_pg_stat_statements_total_calls_count{instance=\"$instance\"}[$interval])))", "interval": "", @@ -923,45 +836,48 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Average query runtime", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:337", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Statements executed per Minute.\n\nSource: pg_stat_statements.calls", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 4, @@ -969,46 +885,28 @@ data: "y": 3 }, "id": 80, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:379", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:380", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true, - "ymax": null, - "ymin": null - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "sum((rate(ccp_pg_stat_statements_total_calls_count{instance=\"$instance\"}[$interval])))", "interval": "", @@ -1016,28 +914,17 @@ data: "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Query rate", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:382", - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Average user and system CPU time spent in seconds.", "fieldConfig": { "defaults": { @@ -1073,7 +960,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -1083,6 +970,9 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "avg(rate(process_cpu_seconds_total{release=\"$release\", instance=\"$instance\"}[5m]) * 1000)", "format": "time_series", @@ -1093,9 +983,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Average CPU Usage", "tooltip": { "shared": true, @@ -1104,33 +992,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "s", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1138,7 +1017,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Virtual and Resident memory size in bytes, averages over 5 min interval", "fieldConfig": { "defaults": { @@ -1174,7 +1055,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -1184,6 +1065,9 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "avg(rate(process_resident_memory_bytes{release=\"$release\", instance=\"$instance\"}[5m]))", "format": "time_series", "intervalFactor": 2, @@ -1191,6 +1075,9 @@ data: "refId": "A" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "avg(rate(process_virtual_memory_bytes{release=\"$release\", instance=\"$instance\"}[5m]))", "format": "time_series", "intervalFactor": 2, @@ -1199,9 +1086,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Average Memory Usage", "tooltip": { "shared": true, @@ -1210,34 +1095,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "decimals": null, "format": "decbytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1245,7 +1120,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "description": "Number of open file descriptors", "fieldConfig": { "defaults": { @@ -1281,7 +1158,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -1291,6 +1168,9 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "process_open_fds{release=\"$release\", instance=\"$instance\"}", "format": "time_series", "intervalFactor": 2, @@ -1299,9 +1179,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Open File Descriptors", "tooltip": { "shared": true, @@ -1310,39 +1188,32 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "decimals": null, "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "3063d7f5-ff58-43d9-bfbe-bb2117a31348" + }, "gridPos": { "h": 1, "w": 24, @@ -1351,31 +1222,55 @@ data: }, "id": 32, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "3063d7f5-ff58-43d9-bfbe-bb2117a31348" + }, + "refId": "A" + } + ], "title": "Settings", "type": "row" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 3, @@ -1383,83 +1278,74 @@ data: "y": 14 }, "id": 40, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_shared_buffers_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Shared Buffers", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 3, @@ -1467,83 +1353,74 @@ data: "y": 14 }, "id": 42, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_effective_cache_size_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Effective Cache", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 3, @@ -1551,83 +1428,74 @@ data: "y": 14 }, "id": 44, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_maintenance_work_mem_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Maintenance Work Mem", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 3, @@ -1635,42 +1503,28 @@ data: "y": 14 }, "id": 46, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_work_mem_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, @@ -1678,42 +1532,47 @@ data: "refId": "A" } ], - "thresholds": "", "title": "Work Mem", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", - "decimals": 1, + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 3, @@ -1721,83 +1580,74 @@ data: "y": 14 }, "id": 48, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_max_wal_size_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Max WAL Size", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 3, @@ -1805,83 +1655,74 @@ data: "y": 14 }, "id": 50, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_random_page_cost{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Random Page Cost", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 2, @@ -1889,83 +1730,74 @@ data: "y": 14 }, "id": 52, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_seq_page_cost", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Seq Page Cost", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 2, @@ -1973,83 +1805,74 @@ data: "y": 14 }, "id": 54, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_max_worker_processes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Max Worker Processes", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 2, @@ -2057,64 +1880,43 @@ data: "y": 14 }, "id": 56, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.1.6", "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_settings_max_parallel_workers{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, "refId": "A" } ], - "thresholds": "", "title": "Max Parallel Workers", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "3063d7f5-ff58-43d9-bfbe-bb2117a31348" + }, "gridPos": { "h": 1, "w": 24, @@ -2123,6 +1925,15 @@ data: }, "id": 30, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "3063d7f5-ff58-43d9-bfbe-bb2117a31348" + }, + "refId": "A" + } + ], "title": "Database Stats", "type": "row" }, @@ -2131,7 +1942,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "links": [] @@ -2169,7 +1982,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 3, "points": true, "renderer": "flot", @@ -2179,20 +1992,21 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"$instance\", state=\"active\"} !=0", "format": "time_series", "interval": "", "intervalFactor": 2, - "legendFormat": "{{`{{datname}}`}}, s: {{`{{state}}`}}", + "legendFormat": "{{ `{{` }}datname}}, s: {{ `{{` }}state{{ `}}` }}", "refId": "A", "step": 2 } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Active sessions", "tooltip": { "shared": true, @@ -2201,9 +2015,7 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -2211,24 +2023,17 @@ data: { "decimals": 0, "format": "none", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2236,7 +2041,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "links": [] @@ -2272,7 +2079,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -2282,24 +2089,28 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_database_xact_commit{instance=\"$instance\", datname=~\"$datname\"}[5m])", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{`{{datname}}`}} commits", + "legendFormat": "{{ `{{` }}datname}} commits", "refId": "A" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_database_xact_rollback{instance=\"$instance\", datname=~\"$datname\"}[5m])", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{`{{datname}}`}} rollbacks", + "legendFormat": "{{ `{{` }}datname}} rollbacks", "refId": "B" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Transactions", "tooltip": { "shared": true, @@ -2308,33 +2119,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2342,7 +2144,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "links": [] @@ -2367,7 +2171,6 @@ data: "min": false, "rightSide": true, "show": true, - "sideWidth": null, "sort": "current", "sortDesc": true, "total": true, @@ -2381,7 +2184,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -2391,20 +2194,21 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "exemplar": true, "expr": " pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"} != 0", "format": "time_series", "interval": "", "intervalFactor": 2, - "legendFormat": "{{`{{datname}}`}}", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", "refId": "A", "step": 2 } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Update data", "tooltip": { "shared": true, @@ -2413,33 +2217,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2447,7 +2242,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "links": [] @@ -2485,7 +2282,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -2495,18 +2292,19 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"} != 0", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{`{{datname}}`}}", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", "refId": "A", "step": 2 } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Fetch data (SELECT)", "tooltip": { "shared": true, @@ -2515,33 +2313,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2549,7 +2338,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "links": [] @@ -2587,7 +2378,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -2597,18 +2388,19 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"$instance\"} != 0", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{`{{datname}}`}}", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", "refId": "A", "step": 2 } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Insert data", "tooltip": { "shared": true, @@ -2617,33 +2409,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2651,7 +2434,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "decimals": 0, "fieldConfig": { "defaults": { @@ -2691,7 +2476,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -2701,18 +2486,19 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_locks_count{datname=~\"$datname\", instance=~\"$instance\", mode=~\"$mode\"} != 0", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{`{{datname}}`}},{{`{{mode}}`}}", + "legendFormat": "{{ `{{` }}datname}},{{ `{{` }}mode{{ `}}` }}", "refId": "A", "step": 2 } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Lock tables", "tooltip": { "shared": true, @@ -2721,9 +2507,7 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -2731,24 +2515,18 @@ data: { "decimals": 0, "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2756,7 +2534,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "links": [] @@ -2794,7 +2574,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -2804,18 +2584,19 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_stat_database_tup_returned{datname=~\"$datname\", instance=~\"$instance\"} != 0", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{`{{datname}}`}}", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", "refId": "A", "step": 2 } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Return data", "tooltip": { "shared": true, @@ -2824,33 +2605,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2858,7 +2630,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "links": [] @@ -2896,7 +2670,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -2906,18 +2680,19 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"$instance\", state=~\"idle|idle in transaction|idle in transaction (aborted)\"}", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{`{{datname}}`}}, s: {{`{{state}}`}}", + "legendFormat": "{{ `{{` }}datname}}, s: {{ `{{` }}state{{ `}}` }}", "refId": "A", "step": 2 } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Idle sessions", "tooltip": { "shared": true, @@ -2926,33 +2701,25 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2960,7 +2727,9 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", + "datasource": { + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "links": [] @@ -2998,7 +2767,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -3008,18 +2777,19 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_stat_database_tup_deleted{datname=~\"$datname\", instance=~\"$instance\"} != 0", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{`{{datname}}`}}", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", "refId": "A", "step": 2 } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Delete data", "tooltip": { "shared": true, @@ -3028,33 +2798,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -3062,12 +2823,10 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", - "decimals": 2, - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "prometheus" }, + "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { @@ -3097,7 +2856,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -3107,17 +2866,18 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "pg_stat_database_blks_hit{instance=\"$instance\", datname=~\"$datname\"} / (pg_stat_database_blks_read{instance=\"$instance\", datname=~\"$datname\"} + pg_stat_database_blks_hit{instance=\"$instance\", datname=~\"$datname\"})", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{`{{ datname }}`}}", + "legendFormat": "{{ `{{` }} datname {{ `}}` }}", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Cache Hit Rate", "tooltip": { "shared": true, @@ -3126,9 +2886,7 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -3138,22 +2896,16 @@ data: "format": "percentunit", "label": "", "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -3161,10 +2913,8 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "prometheus" }, "fill": 1, "fillGradient": 0, @@ -3195,7 +2945,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -3205,6 +2955,9 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_bgwriter_buffers_backend{instance=\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 1, @@ -3212,6 +2965,9 @@ data: "refId": "A" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_bgwriter_buffers_alloc{instance=\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 1, @@ -3219,6 +2975,9 @@ data: "refId": "B" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_bgwriter_buffers_backend_fsync{instance=\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 1, @@ -3226,6 +2985,9 @@ data: "refId": "C" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_bgwriter_buffers_checkpoint{instance=\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 1, @@ -3233,6 +2995,9 @@ data: "refId": "D" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_bgwriter_buffers_clean{instance=\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 1, @@ -3241,9 +3006,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Buffers (bgwriter)", "tooltip": { "shared": true, @@ -3252,33 +3015,24 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -3286,12 +3040,10 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", - "decimals": 0, - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "prometheus" }, + "decimals": 0, "fill": 1, "fillGradient": 0, "gridPos": { @@ -3321,7 +3073,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -3331,24 +3083,28 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_database_conflicts{instance=\"$instance\", datname=~\"$datname\"}[5m])", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{`{{datname}}`}} conflicts", + "legendFormat": "{{ `{{` }}datname}} conflicts", "refId": "B" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_database_deadlocks{instance=\"$instance\", datname=~\"$datname\"}[5m])", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{`{{datname}}`}} deadlocks", + "legendFormat": "{{ `{{` }}datname}} deadlocks", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Conflicts/Deadlocks", "tooltip": { "shared": true, @@ -3357,33 +3113,25 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -3391,12 +3139,10 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", - "description": "Total amount of data written to temporary files by queries in this database. All temporary files are counted, regardless of why the temporary file was created, and regardless of the log_temp_files setting.", - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "prometheus" }, + "description": "Total amount of data written to temporary files by queries in this database. All temporary files are counted, regardless of why the temporary file was created, and regardless of the log_temp_files setting.", "fill": 1, "fillGradient": 0, "gridPos": { @@ -3426,7 +3172,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -3436,17 +3182,18 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_database_temp_bytes{instance=\"$instance\", datname=~\"$datname\"}[5m])", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{`{{datname}}`}}", + "legendFormat": "{{ `{{` }}datname{{ `}}` }}", "refId": "A" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Temp File (Bytes)", "tooltip": { "shared": true, @@ -3455,33 +3202,25 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -3489,10 +3228,8 @@ data: "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus", - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "prometheus" }, "fill": 1, "fillGradient": 0, @@ -3522,7 +3259,7 @@ data: "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.16", + "pluginVersion": "9.1.6", "pointradius": 5, "points": false, "renderer": "flot", @@ -3532,6 +3269,9 @@ data: "steppedLine": false, "targets": [ { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_bgwriter_checkpoint_write_time{instance=\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 1, @@ -3539,6 +3279,9 @@ data: "refId": "B" }, { + "datasource": { + "uid": "prometheus" + }, "expr": "irate(pg_stat_bgwriter_checkpoint_sync_time{instance=\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 1, @@ -3547,9 +3290,7 @@ data: } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Checkpoint Stats", "tooltip": { "shared": true, @@ -3558,38 +3299,29 @@ data: }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ms", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } } ], "refresh": "10s", - "schemaVersion": 27, + "schemaVersion": 37, "style": "dark", "tags": [ "postgres", @@ -3601,11 +3333,9 @@ data: { "current": { "selected": false, - "text": "prometheus", - "value": "prometheus" + "text": "Prometheus", + "value": "Prometheus" }, - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "datasource", @@ -3627,8 +3357,6 @@ data: "text": "auto", "value": "$__auto_interval_interval" }, - "description": null, - "error": null, "hide": 0, "label": "Interval", "name": "interval", @@ -3681,17 +3409,17 @@ data: "type": "interval" }, { - "allValue": null, "current": { "isNone": true, "selected": false, "text": "None", "value": "" }, - "datasource": "prometheus", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Namespace", @@ -3707,23 +3435,22 @@ data: "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": { "isNone": true, "selected": false, "text": "None", "value": "" }, - "datasource": "prometheus", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Release", @@ -3739,22 +3466,22 @@ data: "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": { + "isNone": true, "selected": false, - "text": "10.131.0.27:9187", - "value": "10.131.0.27:9187" + "text": "None", + "value": "" + }, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "datasource": "prometheus", "definition": "", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Instance", @@ -3770,22 +3497,21 @@ data: "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": { "selected": false, "text": "All", "value": "$__all" }, - "datasource": "prometheus", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "label_values(datname)", - "description": null, - "error": null, "hide": 0, "includeAll": true, "label": "Database", @@ -3801,22 +3527,21 @@ data: "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": { "selected": false, "text": "All", "value": "$__all" }, - "datasource": "prometheus", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "", - "description": null, - "error": null, "hide": 0, "includeAll": true, "label": "Lock table", @@ -3832,7 +3557,6 @@ data: "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -3870,6 +3594,8 @@ data: }, "timezone": "", "title": "PostgreSQL Overview Dashboard", - "version": 1 + "uid": "aecd46f7-5af9-4cc8-a796-c4c1af799bd9", + "version": 1, + "weekStart": "" } {{- end }} \ No newline at end of file diff --git a/postgres-observability/values.yaml b/postgres-observability/values.yaml index 5cdaf3c..4fb3bca 100644 --- a/postgres-observability/values.yaml +++ b/postgres-observability/values.yaml @@ -7,8 +7,8 @@ global: grafana: # Grafana instance selector instanceSelector: - labels: - grafanaDashboard: grafana-operator + matchLabels: + dashboards: grafana dashboard: datasources: - inputName: "DS_PROMETHEUS" @@ -21,18 +21,19 @@ grafana: prometheus: serviceMonitor: enabled: true + name: posgtres-exporter specs: - name: posgtres-exporter - port: exporter - scheme: http - interval: 10s - scrapeTimeout: 5s - path: /metrics + endpoints: + - port: exporter + scheme: http + interval: 10s + scrapeTimeout: 5s + path: /metrics selector: matchLabels: postgres-operator.crunchydata.com/crunchy-postgres-exporter: 'true' postgres-operator.crunchydata.com/cluster: postgres - namespaceSelector: + namespaceSelector: any: true # Sample rules are taken from below sources