From 6bb1be830942eefe8c6f73eb33d34fb9ca5f01ce Mon Sep 17 00:00:00 2001 From: Austin Georgiades Date: Fri, 7 Jul 2023 14:27:58 -0400 Subject: [PATCH] updated postgresql dashboard json to account for changes in the exporter --- .../postgresql/postgresql-prometheus.json | 104 ++++++++++++++---- 1 file changed, 82 insertions(+), 22 deletions(-) diff --git a/dashboards/postgresql/postgresql-prometheus.json b/dashboards/postgresql/postgresql-prometheus.json index f261991083..3cb9da12f1 100644 --- a/dashboards/postgresql/postgresql-prometheus.json +++ b/dashboards/postgresql/postgresql-prometheus.json @@ -17,7 +17,7 @@ "templateVariable": "Namespace" } ], - "displayName": "PostgreSQL Prometheus Overview", + "displayName": "PostgreSQL Prometheus Overview - Q2 2023 Currency Testing Fix", "labels": {}, "mosaicLayout": { "columns": 12, @@ -32,22 +32,32 @@ }, "dataSets": [ { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_tup_returned{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_database_tup_fetched_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } }, { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_tup_returned{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_database_tup_returned_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } } ], + "thresholds": [], "timeshiftDuration": "0s", "yAxis": { + "label": "", "scale": "LINEAR" } } @@ -66,22 +76,21 @@ }, "dataSets": [ { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_tup_returned{${Cluster},${Location},${Namespace}}" - } - }, - { - "plotType": "LINE", - "targetAxis": "Y1", - "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_tup_returned{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_database_temp_bytes_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } } ], + "thresholds": [], "timeshiftDuration": "0s", "yAxis": { + "label": "", "scale": "LINEAR" } } @@ -100,29 +109,43 @@ }, "dataSets": [ { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_tup_deleted{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_database_tup_inserted_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } }, { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_tup_updated{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_database_tup_updated_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } }, { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_tup_deleted{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_database_tup_deleted_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } } ], + "thresholds": [], "timeshiftDuration": "0s", "yAxis": { + "label": "", "scale": "LINEAR" } } @@ -141,22 +164,32 @@ }, "dataSets": [ { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_bgwriter_checkpoints_req_total{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_bgwriter_checkpoints_req_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } }, { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_bgwriter_checkpoints_timed_total{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_bgwriter_checkpoints_timed_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } } ], + "thresholds": [], "timeshiftDuration": "0s", "yAxis": { + "label": "", "scale": "LINEAR" } } @@ -175,29 +208,43 @@ }, "dataSets": [ { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_bgwriter_buffers_checkpoint_total{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_bgwriter_buffers_checkpoint_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } }, { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_bgwriter_buffers_clean_total{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_bgwriter_buffers_clean_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } }, { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_bgwriter_buffers_backend_total{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_bgwriter_buffers_backend_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } } ], + "thresholds": [], "timeshiftDuration": "0s", "yAxis": { + "label": "", "scale": "LINEAR" } } @@ -211,10 +258,13 @@ "widget": { "scorecard": { "gaugeView": { + "lowerBound": 0, "upperBound": 1 }, + "thresholds": [], "timeSeriesQuery": { - "prometheusQuery": "sum(pg_stat_database_numbackends{${Cluster},${Location},${Namespace}}) / sum(pg_settings_max_connections{${Cluster},${Location},${Namespace}})" + "prometheusQuery": "sum(pg_stat_database_numbackends{${Cluster},${Location},${Namespace}}) / sum(pg_settings_max_connections{${Cluster},${Location},${Namespace}})", + "unitOverride": "" } }, "title": "Backend Utilization %" @@ -233,22 +283,32 @@ }, "dataSets": [ { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_blks_hit{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_database_blks_hit_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } }, { + "breakdowns": [], + "dimensions": [], + "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "prometheusQuery": "pg_stat_database_blks_read{${Cluster},${Location},${Namespace}}" + "prometheusQuery": "pg_stat_database_blks_read_total{${Cluster},${Location},${Namespace}}", + "unitOverride": "" } } ], + "thresholds": [], "timeshiftDuration": "0s", "yAxis": { + "label": "", "scale": "LINEAR" } }