Skip to content

Commit

Permalink
updated postgresql dashboard json to account for changes in the exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
algchoo committed Jul 7, 2023
1 parent 2da4658 commit 6bb1be8
Showing 1 changed file with 82 additions and 22 deletions.
104 changes: 82 additions & 22 deletions dashboards/postgresql/postgresql-prometheus.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"templateVariable": "Namespace"
}
],
"displayName": "PostgreSQL Prometheus Overview",
"displayName": "PostgreSQL Prometheus Overview - Q2 2023 Currency Testing Fix",
"labels": {},
"mosaicLayout": {
"columns": 12,
Expand All @@ -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"
}
}
Expand All @@ -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"
}
}
Expand All @@ -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"
}
}
Expand All @@ -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"
}
}
Expand All @@ -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"
}
}
Expand All @@ -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 %"
Expand All @@ -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"
}
}
Expand Down

0 comments on commit 6bb1be8

Please sign in to comment.