diff --git a/src/grafana_dashboards/postgresql-metrics.json b/src/grafana_dashboards/postgresql-metrics.json index 6d976ba642..e068a0f811 100644 --- a/src/grafana_dashboards/postgresql-metrics.json +++ b/src/grafana_dashboards/postgresql-metrics.json @@ -216,7 +216,8 @@ "format": "time_series", "intervalFactor": 2, "legendFormat": "", - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -558,7 +559,8 @@ "expr": "pg_settings_max_connections{release=\"$release\", instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -620,7 +622,7 @@ "steppedLine": false, "targets": [ { - "expr": "avg(rate(process_cpu_seconds_total{release=\"$release\", instance=\"$instance\"}[5m]) * 1000)", + "expr": "avg(irate(process_cpu_seconds_total{release=\"$release\", instance=\"$instance\"}[5m]) * 1000)", "format": "time_series", "intervalFactor": 2, "legendFormat": "CPU Time", @@ -714,14 +716,14 @@ "steppedLine": false, "targets": [ { - "expr": "avg(rate(process_resident_memory_bytes{release=\"$release\", instance=\"$instance\"}[5m]))", + "expr": "avg(irate(process_resident_memory_bytes{release=\"$release\", instance=\"$instance\"}[5m]))", "format": "time_series", "intervalFactor": 2, "legendFormat": "Resident Mem", "refId": "A" }, { - "expr": "avg(rate(process_virtual_memory_bytes{release=\"$release\", instance=\"$instance\"}[5m]))", + "expr": "avg(irate(process_virtual_memory_bytes{release=\"$release\", instance=\"$instance\"}[5m]))", "format": "time_series", "intervalFactor": 2, "legendFormat": "Virtual Mem", @@ -946,7 +948,8 @@ "expr": "pg_settings_shared_buffers_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1030,7 +1033,8 @@ "expr": "pg_settings_effective_cache_size_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1114,7 +1118,8 @@ "expr": "pg_settings_maintenance_work_mem_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1199,7 +1204,8 @@ "format": "time_series", "intervalFactor": 1, "legendFormat": "", - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1284,7 +1290,8 @@ "expr": "pg_settings_max_wal_size_bytes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1368,7 +1375,8 @@ "expr": "pg_settings_random_page_cost{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1452,7 +1460,8 @@ "expr": "pg_settings_seq_page_cost", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1536,7 +1545,8 @@ "expr": "pg_settings_max_worker_processes{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1620,7 +1630,8 @@ "expr": "pg_settings_max_parallel_workers{instance=\"$instance\"}", "format": "time_series", "intervalFactor": 1, - "refId": "A" + "refId": "A", + "instant": true } ], "thresholds": "", @@ -1663,8 +1674,8 @@ "gridPos": { "h": 7, "w": 8, - "x": 0, - "y": 15 + "x": 16, + "y": 22 }, "id": 1, "legend": { @@ -1680,7 +1691,7 @@ "total": false, "values": true }, - "lines": false, + "lines": true, "linewidth": 1, "links": [], "nullPointMode": "connected", @@ -1689,7 +1700,7 @@ }, "percentage": false, "pointradius": 3, - "points": true, + "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, @@ -1762,7 +1773,7 @@ "gridPos": { "h": 7, "w": 8, - "x": 8, + "x": 16, "y": 15 }, "id": 60, @@ -1863,8 +1874,8 @@ "gridPos": { "h": 7, "w": 8, - "x": 16, - "y": 15 + "x": 8, + "y": 29 }, "id": 8, "legend": { @@ -1898,7 +1909,7 @@ "steppedLine": false, "targets": [ { - "expr": "pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"} != 0", + "expr": "pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{datname}}", @@ -1910,7 +1921,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Update data", + "title": "Write count (UPDATE)", "tooltip": { "shared": true, "sort": 0, @@ -1926,8 +1937,8 @@ }, "yaxes": [ { - "format": "bytes", - "label": null, + "format": "short", + "label": "Rows", "logBase": 1, "max": null, "min": null, @@ -1962,9 +1973,9 @@ "h": 7, "w": 8, "x": 0, - "y": 22 + "y": 15 }, - "id": 5, + "id": 509, "legend": { "alignAsTable": true, "avg": true, @@ -1995,7 +2006,7 @@ "steppedLine": false, "targets": [ { - "expr": "pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"} != 0", + "expr": "irate(pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{datname}}", @@ -2007,7 +2018,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Fetch data (SELECT)", + "title": "Read rate (fetched)", "tooltip": { "shared": true, "sort": 0, @@ -2023,8 +2034,8 @@ }, "yaxes": [ { - "format": "bytes", - "label": null, + "format": "ops", + "label": "Rows/sec", "logBase": 1, "max": null, "min": null, @@ -2058,10 +2069,10 @@ "gridPos": { "h": 7, "w": 8, - "x": 8, + "x": 0, "y": 22 }, - "id": 6, + "id": 5, "legend": { "alignAsTable": true, "avg": true, @@ -2092,7 +2103,7 @@ "steppedLine": false, "targets": [ { - "expr": "pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"$instance\"} != 0", + "expr": "irate(pg_stat_database_tup_returned{datname=~\"$datname\", instance=~\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{datname}}", @@ -2104,7 +2115,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Insert data", + "title": "Read rate (SELECT)", "tooltip": { "shared": true, "sort": 0, @@ -2120,8 +2131,8 @@ }, "yaxes": [ { - "format": "bytes", - "label": null, + "format": "ops", + "label": "Rows/sec", "logBase": 1, "max": null, "min": null, @@ -2150,21 +2161,19 @@ "type": "datasource", "uid": "${prometheusds}" }, - "decimals": 0, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 8, - "x": 16, - "y": 22 + "x": 0, + "y": 29 }, - "id": 3, + "id": 500, "legend": { "alignAsTable": true, "avg": true, "current": true, - "hideEmpty": false, "max": false, "min": false, "rightSide": false, @@ -2191,10 +2200,10 @@ "steppedLine": false, "targets": [ { - "expr": "pg_locks_count{datname=~\"$datname\", instance=~\"$instance\", mode=~\"$mode\"} != 0", + "expr": "irate(pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{datname}},{{mode}}", + "legendFormat": "{{datname}}", "refId": "A", "step": 2 } @@ -2203,7 +2212,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Lock tables", + "title": "Write rate (UPDATE)", "tooltip": { "shared": true, "sort": 0, @@ -2219,12 +2228,11 @@ }, "yaxes": [ { - "decimals": 0, - "format": "short", - "label": null, + "format": "ops", + "label": "Rows/sec", "logBase": 1, "max": null, - "min": "0", + "min": null, "show": true }, { @@ -2256,9 +2264,9 @@ "h": 7, "w": 8, "x": 0, - "y": 29 + "y": 36 }, - "id": 14, + "id": 501, "legend": { "alignAsTable": true, "avg": true, @@ -2267,7 +2275,7 @@ "min": false, "rightSide": false, "show": true, - "sort": "total", + "sort": "current", "sortDesc": true, "total": true, "values": true @@ -2289,11 +2297,11 @@ "steppedLine": false, "targets": [ { - "expr": "pg_stat_database_tup_returned{datname=~\"$datname\", instance=~\"$instance\"} != 0", + "expr": "irate(pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{datname}}", - "refId": "A", + "refId": "B", "step": 2 } ], @@ -2301,7 +2309,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Return data", + "title": "Write rate (INSERT)", "tooltip": { "shared": true, "sort": 0, @@ -2317,8 +2325,8 @@ }, "yaxes": [ { - "format": "bytes", - "label": null, + "format": "ops", + "label": "Rows/sec", "logBase": 1, "max": null, "min": null, @@ -2352,21 +2360,21 @@ "gridPos": { "h": 7, "w": 8, - "x": 8, - "y": 29 + "x": 0, + "y": 43 }, - "id": 4, + "id": 502, "legend": { "alignAsTable": true, - "avg": false, + "avg": true, "current": true, - "max": true, + "max": false, "min": false, "rightSide": false, "show": true, "sort": "current", - "sortDesc": false, - "total": false, + "sortDesc": true, + "total": true, "values": true }, "lines": true, @@ -2386,11 +2394,11 @@ "steppedLine": false, "targets": [ { - "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"$instance\", state=~\"idle|idle in transaction|idle in transaction (aborted)\"}", + "expr": "irate(pg_stat_database_tup_deleted{datname=~\"$datname\", instance=~\"$instance\"}[5m])", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{datname}}, s: {{state}}", - "refId": "A", + "legendFormat": "{{datname}}", + "refId": "C", "step": 2 } ], @@ -2398,7 +2406,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Idle sessions", + "title": "Write rate (DELETE)", "tooltip": { "shared": true, "sort": 0, @@ -2414,11 +2422,11 @@ }, "yaxes": [ { - "format": "short", - "label": null, + "format": "ops", + "label": "Rows/sec", "logBase": 1, "max": null, - "min": "0", + "min": null, "show": true }, { @@ -2449,10 +2457,10 @@ "gridPos": { "h": 7, "w": 8, - "x": 16, - "y": 29 + "x": 8, + "y": 36 }, - "id": 7, + "id": 6, "legend": { "alignAsTable": true, "avg": true, @@ -2483,7 +2491,7 @@ "steppedLine": false, "targets": [ { - "expr": "pg_stat_database_tup_deleted{datname=~\"$datname\", instance=~\"$instance\"} != 0", + "expr": "pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"$instance\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{datname}}", @@ -2495,7 +2503,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Delete data", + "title": "Write count (INSERT)", "tooltip": { "shared": true, "sort": 0, @@ -2511,8 +2519,8 @@ }, "yaxes": [ { - "format": "bytes", - "label": null, + "format": "short", + "label": "Rows", "logBase": 1, "max": null, "min": null, @@ -2541,31 +2549,37 @@ "type": "datasource", "uid": "${prometheusds}" }, - "decimals": 2, + "decimals": 0, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 7, "w": 8, - "x": 0, + "x": 16, "y": 36 }, - "id": 62, + "id": 3, "legend": { "alignAsTable": true, "avg": true, "current": true, + "hideEmpty": false, "max": false, "min": false, "rightSide": false, "show": true, - "total": false, + "sort": "current", + "sortDesc": true, + "total": true, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", - "options": {}, + "options": { + "dataLinks": [] + }, "percentage": false, "pointradius": 5, "points": false, @@ -2576,17 +2590,19 @@ "steppedLine": false, "targets": [ { - "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\"})", + "expr": "pg_locks_count{datname=~\"$datname\", instance=~\"$instance\", mode=~\"$mode\"} != 0", "format": "time_series", - "intervalFactor": 1, - "legendFormat": "{{ datname }}", - "refId": "A" + "intervalFactor": 2, + "legendFormat": "{{datname}},{{mode}}", + "refId": "A", + "step": 2 } ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, - "title": "Cache Hit Rate", + "title": "Lock tables", "tooltip": { "shared": true, "sort": 0, @@ -2602,12 +2618,12 @@ }, "yaxes": [ { - "decimals": 4, - "format": "percentunit", - "label": "", + "decimals": 0, + "format": "short", + "label": null, "logBase": 1, "max": null, - "min": null, + "min": "0", "show": true }, { @@ -2634,29 +2650,34 @@ "uid": "${prometheusds}" }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 7, "w": 8, "x": 8, - "y": 36 + "y": 15 }, - "id": 64, + "id": 141, "legend": { "alignAsTable": true, "avg": true, "current": true, - "max": true, - "min": true, + "max": false, + "min": false, "rightSide": false, "show": true, - "total": false, + "sort": "total", + "sortDesc": true, + "total": true, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", - "options": {}, + "options": { + "dataLinks": [] + }, "percentage": false, "pointradius": 5, "points": false, @@ -2667,45 +2688,19 @@ "steppedLine": false, "targets": [ { - "expr": "irate(pg_stat_bgwriter_buffers_backend_total{instance=\"$instance\"}[5m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "buffers_backend", - "refId": "A" - }, - { - "expr": "irate(pg_stat_bgwriter_buffers_alloc_total{instance=\"$instance\"}[5m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "buffers_alloc", - "refId": "B" - }, - { - "expr": "irate(pg_stat_bgwriter_buffers_backend_fsync_total{instance=\"$instance\"}[5m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "backend_fsync", - "refId": "C" - }, - { - "expr": "irate(pg_stat_bgwriter_buffers_checkpoint_total{instance=\"$instance\"}[5m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "buffers_checkpoint", - "refId": "D" - }, - { - "expr": "irate(pg_stat_bgwriter_buffers_clean_total{instance=\"$instance\"}[5m])", + "expr": "pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"}", "format": "time_series", - "intervalFactor": 1, - "legendFormat": "buffers_clean", - "refId": "E" + "intervalFactor": 2, + "legendFormat": "{{datname}}", + "refId": "A", + "step": 2 } ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, - "title": "Buffers (bgwriter)", + "title": "Read count (fetched)", "tooltip": { "shared": true, "sort": 0, @@ -2722,7 +2717,7 @@ "yaxes": [ { "format": "short", - "label": null, + "label": "Rows", "logBase": 1, "max": null, "min": null, @@ -2751,15 +2746,15 @@ "type": "datasource", "uid": "${prometheusds}" }, - "decimals": 0, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 7, "w": 8, - "x": 16, - "y": 36 + "x": 8, + "y": 22 }, - "id": 66, + "id": 14, "legend": { "alignAsTable": true, "avg": true, @@ -2768,6 +2763,8 @@ "min": false, "rightSide": false, "show": true, + "sort": "total", + "sortDesc": true, "total": true, "values": true }, @@ -2775,7 +2772,9 @@ "linewidth": 1, "links": [], "nullPointMode": "null", - "options": {}, + "options": { + "dataLinks": [] + }, "percentage": false, "pointradius": 5, "points": false, @@ -2786,24 +2785,19 @@ "steppedLine": false, "targets": [ { - "expr": "irate(pg_stat_database_conflicts{instance=\"$instance\", datname=~\"$datname\"}[5m])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "{{datname}} conflicts", - "refId": "B" - }, - { - "expr": "irate(pg_stat_database_deadlocks{instance=\"$instance\", datname=~\"$datname\"}[5m])", + "expr": "pg_stat_database_tup_returned{datname=~\"$datname\", instance=~\"$instance\"}", "format": "time_series", - "intervalFactor": 1, - "legendFormat": "{{datname}} deadlocks", - "refId": "A" + "intervalFactor": 2, + "legendFormat": "{{datname}}", + "refId": "A", + "step": 2 } ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, - "title": "Conflicts/Deadlocks", + "title": "Read count (SELECT)", "tooltip": { "shared": true, "sort": 0, @@ -2820,10 +2814,10 @@ "yaxes": [ { "format": "short", - "label": null, + "label": "Rows", "logBase": 1, "max": null, - "min": "0", + "min": null, "show": true }, { @@ -2849,31 +2843,35 @@ "type": "datasource", "uid": "${prometheusds}" }, - "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": { "h": 7, "w": 8, - "x": 0, - "y": 43 + "x": 16, + "y": 29 }, - "id": 68, + "id": 4, "legend": { "alignAsTable": true, - "avg": true, + "avg": false, "current": true, - "max": false, + "max": true, "min": false, "rightSide": false, "show": true, - "total": true, + "sort": "current", + "sortDesc": false, + "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", - "options": {}, + "options": { + "dataLinks": [] + }, "percentage": false, "pointradius": 5, "points": false, @@ -2884,17 +2882,19 @@ "steppedLine": false, "targets": [ { - "expr": "irate(pg_stat_database_temp_bytes{instance=\"$instance\", datname=~\"$datname\"}[5m])", + "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"$instance\", state=~\"idle|idle in transaction|idle in transaction (aborted)\"}", "format": "time_series", - "intervalFactor": 1, - "legendFormat": "{{datname}}", - "refId": "A" - } - ], - "thresholds": [], + "intervalFactor": 2, + "legendFormat": "{{datname}}, s: {{state}}", + "refId": "A", + "step": 2 + } + ], + "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, - "title": "Temp File (Bytes)", + "title": "Idle sessions", "tooltip": { "shared": true, "sort": 0, @@ -2910,7 +2910,7 @@ }, "yaxes": [ { - "format": "bytes", + "format": "short", "label": null, "logBase": 1, "max": null, @@ -2941,12 +2941,508 @@ "uid": "${prometheusds}" }, "fill": 1, + "fillGradient": 0, "gridPos": { "h": 7, - "w": 16, + "w": 8, "x": 8, "y": 43 }, + "id": 7, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "pg_stat_database_tup_deleted{datname=~\"$datname\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{datname}}", + "refId": "A", + "step": 2 + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Write count (DELETE)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": "Rows", + "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": { + "type": "datasource", + "uid": "${prometheusds}" + }, + "decimals": 2, + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 50 + }, + "id": 62, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": {}, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "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 }}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Cache Hit Rate", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 4, + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "datasource", + "uid": "${prometheusds}" + }, + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 43 + }, + "id": 64, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": {}, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(pg_stat_bgwriter_buffers_backend_total{instance=\"$instance\"}[5m])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "buffers_backend", + "refId": "A" + }, + { + "expr": "irate(pg_stat_bgwriter_buffers_alloc_total{instance=\"$instance\"}[5m])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "buffers_alloc", + "refId": "B" + }, + { + "expr": "irate(pg_stat_bgwriter_buffers_backend_fsync_total{instance=\"$instance\"}[5m])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "backend_fsync", + "refId": "C" + }, + { + "expr": "irate(pg_stat_bgwriter_buffers_checkpoint_total{instance=\"$instance\"}[5m])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "buffers_checkpoint", + "refId": "D" + }, + { + "expr": "irate(pg_stat_bgwriter_buffers_clean_total{instance=\"$instance\"}[5m])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "buffers_clean", + "refId": "E" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Buffers (bgwriter)", + "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": { + "type": "datasource", + "uid": "${prometheusds}" + }, + "decimals": 0, + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 50 + }, + "id": 66, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": {}, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(pg_stat_database_conflicts{instance=\"$instance\", datname=~\"$datname\"}[5m])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{datname}} conflicts", + "refId": "B" + }, + { + "expr": "irate(pg_stat_database_deadlocks{instance=\"$instance\", datname=~\"$datname\"}[5m])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{datname}} deadlocks", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Conflicts/Deadlocks", + "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": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "datasource", + "uid": "${prometheusds}" + }, + "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, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 57 + }, + "id": 68, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": {}, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(pg_stat_database_temp_bytes{instance=\"$instance\", datname=~\"$datname\"}[5m])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{datname}}", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Temp File (Bytes)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "datasource", + "uid": "${prometheusds}" + }, + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 50 + }, "id": 70, "legend": { "alignAsTable": true,