Skip to content

Commit 1cf6e3f

Browse files
committed
[-] fix "Recommendations" dashboard, closes #917
add dashboard variable that will be used instead of absent table if needed. Fill `dbname` with all database names, not only present in recommendations (if any). Use the same trick for "Global health" dashboard
1 parent 724fe1a commit 1cf6e3f

File tree

2 files changed

+186
-36
lines changed

2 files changed

+186
-36
lines changed

grafana/postgres/v12/global-health.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 0,
21-
"id": 32,
21+
"id": 18,
2222
"links": [],
2323
"panels": [
2424
{
@@ -2039,11 +2039,11 @@
20392039
"text": "db_stats",
20402040
"value": "db_stats"
20412041
},
2042-
"definition": "SELECT\nCASE to_regclass('pgbouncer_stats') IS NULL WHEN true THEN 'db_stats'\nELSE 'pgbouncer_stats'\nEND",
2042+
"definition": "SELECT COALESCE(to_regclass('pgbouncer_stats')::text, 'db_stats')",
20432043
"hide": 2,
20442044
"name": "pgbouncer_stats_qry",
20452045
"options": [],
2046-
"query": "SELECT\nCASE to_regclass('pgbouncer_stats') IS NULL WHEN true THEN 'db_stats'\nELSE 'pgbouncer_stats'\nEND",
2046+
"query": "SELECT COALESCE(to_regclass('pgbouncer_stats')::text, 'db_stats')",
20472047
"refresh": 1,
20482048
"regex": "",
20492049
"type": "query"

0 commit comments

Comments
 (0)