Skip to content

Commit ed9979b

Browse files
committed
Merge branch 'fix/grafana-rc6-qa-bugs' into 'main'
fix(grafana): RC6 demo QA pass — Dashboard 3 query text, Dashboard 6 title TODO, ASH legend dedup, default time range, version banner Closes #217 See merge request postgres-ai/postgresai!281
2 parents 5fc2ccf + 7ad3e69 commit ed9979b

21 files changed

Lines changed: 642 additions & 65 deletions

config/grafana/dashboards/Dashboard_10_Index health.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@
12151215
]
12161216
},
12171217
"time": {
1218-
"from": "now-6h",
1218+
"from": "now-1h",
12191219
"to": "now"
12201220
},
12211221
"timepicker": {},

config/grafana/dashboards/Dashboard_11_Single_index_analysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@
839839
]
840840
},
841841
"time": {
842-
"from": "now-12h",
842+
"from": "now-1h",
843843
"to": "now"
844844
},
845845
"timepicker": {},

config/grafana/dashboards/Dashboard_1_Node_performance_overview.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -292,19 +292,6 @@
292292
"legendFormat": "Idle Internal - {{wait_event_type}}",
293293
"range": true,
294294
"refId": "C"
295-
},
296-
{
297-
"datasource": {
298-
"type": "prometheus",
299-
"uid": "P7A0D6631BB10B34F"
300-
},
301-
"editorMode": "code",
302-
"expr": "sum by (wait_event_type) (pgwatch_wait_events_total)>0",
303-
"hide": false,
304-
"interval": "20",
305-
"legendFormat": " {{wait_event_type}}",
306-
"range": true,
307-
"refId": "D"
308295
}
309296
],
310297
"title": "Active session history",
@@ -3569,7 +3556,7 @@
35693556
]
35703557
},
35713558
"time": {
3572-
"from": "now-24h",
3559+
"from": "now-1h",
35733560
"to": "now"
35743561
},
35753562
"timepicker": {},

config/grafana/dashboards/Dashboard_2_Aggregated_query_analysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3520,7 +3520,7 @@
35203520
]
35213521
},
35223522
"time": {
3523-
"from": "now-6h",
3523+
"from": "now-1h",
35243524
"to": "now"
35253525
},
35263526
"timepicker": {},

config/grafana/dashboards/Dashboard_3_Single_query_analysis.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"editorMode": "code",
9393
"format": "table",
9494
"rawQuery": true,
95-
"rawSql": "WITH q AS ( SELECT data ->> 'query' AS qt FROM pgss_queryid_queries WHERE (data ->> 'queryid') = '$query_id' LIMIT 1 ) SELECT qt AS \"Query text\" FROM q UNION ALL SELECT '(query text not yet collected for this queryid pgwatch writes it on the next scrape; refresh in ~30s)' WHERE NOT EXISTS (SELECT 1 FROM q)",
95+
"rawSql": "WITH q AS ( SELECT data ->> 'query' AS qt FROM pgss_queryid_queries WHERE (data ->> 'queryid') = '$query_id' AND (data ? 'real_dbname') AND (data ->> 'real_dbname') = '${db_name}' ORDER BY time DESC LIMIT 1 ) SELECT qt AS \"Query text\" FROM q UNION ALL SELECT '(query text not yet collected for this queryid \u2014 pgwatch writes it on the next scrape; refresh in ~30s)' WHERE NOT EXISTS (SELECT 1 FROM q)",
9696
"refId": "A",
9797
"sql": {
9898
"columns": [
@@ -304,19 +304,6 @@
304304
"legendFormat": "{{wait_event_type}}:{{wait_event}}",
305305
"range": true,
306306
"refId": "A"
307-
},
308-
{
309-
"datasource": {
310-
"type": "prometheus",
311-
"uid": "P7A0D6631BB10B34F"
312-
},
313-
"editorMode": "code",
314-
"expr": "sum by (wait_event_type) (pgwatch_wait_events_total)>0",
315-
"hide": false,
316-
"interval": "20",
317-
"legendFormat": " {{wait_event_type}}",
318-
"range": true,
319-
"refId": "D"
320307
}
321308
],
322309
"title": "Active session history",
@@ -2226,7 +2213,7 @@
22262213
},
22272214
"timepicker": {},
22282215
"timezone": "utc",
2229-
"title": "03. Single queryid analysis",
2216+
"title": "03. Single queryid analysis",
22302217
"uid": "db52944d-b025-4e18-b70b-89c0af3e7e41",
22312218
"version": 2
2232-
}
2219+
}

config/grafana/dashboards/Dashboard_4_Wait_Sampling_Dashboard.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -323,19 +323,6 @@
323323
"legendFormat": "Idle Internal - {{wait_event_type}}",
324324
"range": true,
325325
"refId": "C"
326-
},
327-
{
328-
"datasource": {
329-
"type": "prometheus",
330-
"uid": "P7A0D6631BB10B34F"
331-
},
332-
"editorMode": "code",
333-
"expr": "sum by (wait_event_type) (pgwatch_wait_events_total)>0",
334-
"hide": false,
335-
"interval": "20",
336-
"legendFormat": " {{wait_event_type}}",
337-
"range": true,
338-
"refId": "D"
339326
}
340327
],
341328
"title": "Active session history",
@@ -603,19 +590,6 @@
603590
"legendFormat": "{{wait_event_type}} - {{wait_event}}",
604591
"range": true,
605592
"refId": "A"
606-
},
607-
{
608-
"datasource": {
609-
"type": "prometheus",
610-
"uid": "P7A0D6631BB10B34F"
611-
},
612-
"editorMode": "code",
613-
"expr": "sum by (wait_event_type) (pgwatch_wait_events_total)>0",
614-
"hide": true,
615-
"interval": "20",
616-
"legendFormat": " {{wait_event_type}}",
617-
"range": true,
618-
"refId": "D"
619593
}
620594
],
621595
"title": "Active session history by event type",
@@ -1050,7 +1024,7 @@
10501024
]
10511025
},
10521026
"time": {
1053-
"from": "now-6h",
1027+
"from": "now-1h",
10541028
"to": "now"
10551029
},
10561030
"timepicker": {},

config/grafana/dashboards/Dashboard_6_Replication_and_HA.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@
7272
"list": []
7373
},
7474
"time": {
75-
"from": "now-6h",
75+
"from": "now-1h",
7676
"to": "now"
7777
},
7878
"timepicker": {},
7979
"timezone": "browser",
80-
"title": "06. Replication and HA -- \"Metrics are collected (part of health check); dashboard – TODO\"",
80+
"title": "06. Replication and HA",
8181
"uid": "9086b3ba-a250-429e-a968-9eabee4fb68a",
8282
"version": 1
8383
}

config/grafana/dashboards/Dashboard_7_Autovacuum_and_xmin_horizon.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@
17671767
]
17681768
},
17691769
"time": {
1770-
"from": "now-6h",
1770+
"from": "now-1h",
17711771
"to": "now"
17721772
},
17731773
"timepicker": {},

config/grafana/dashboards/Dashboard_8_Table_Stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3382,7 +3382,7 @@
33823382
]
33833383
},
33843384
"time": {
3385-
"from": "now-6h",
3385+
"from": "now-1h",
33863386
"to": "now"
33873387
},
33883388
"timepicker": {},

config/grafana/dashboards/Dashboard_9_Single_table_analysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@
20582058
]
20592059
},
20602060
"time": {
2061-
"from": "now-6h",
2061+
"from": "now-1h",
20622062
"to": "now"
20632063
},
20642064
"timepicker": {},

0 commit comments

Comments
 (0)