Skip to content

Commit ee29983

Browse files
author
Dementii Priadko
committed
Merge branch 'mvp' into 'main'
Dashboard fixes and new reports See merge request postgres-ai/postgres_ai!18
2 parents 7dced65 + 5893f80 commit ee29983

13 files changed

+1489
-45
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"annotations": {
3+
"list": [
4+
{
5+
"builtIn": 1,
6+
"datasource": {
7+
"type": "grafana",
8+
"uid": "-- Grafana --"
9+
},
10+
"enable": true,
11+
"hide": true,
12+
"iconColor": "rgba(0, 211, 255, 1)",
13+
"name": "Annotations & Alerts",
14+
"type": "dashboard"
15+
}
16+
]
17+
},
18+
"editable": true,
19+
"fiscalYearStartMonth": 0,
20+
"graphTooltip": 0,
21+
"id": 9,
22+
"links": [],
23+
"panels": [
24+
{
25+
"fieldConfig": {
26+
"defaults": {},
27+
"overrides": []
28+
},
29+
"gridPos": {
30+
"h": 8,
31+
"w": 12,
32+
"x": 0,
33+
"y": 0
34+
},
35+
"id": 1,
36+
"options": {
37+
"code": {
38+
"language": "plaintext",
39+
"showLineNumbers": false,
40+
"showMiniMap": false
41+
},
42+
"content": "# Coming soon...",
43+
"mode": "markdown"
44+
},
45+
"pluginVersion": "12.0.2",
46+
"title": "",
47+
"type": "text"
48+
}
49+
],
50+
"preload": false,
51+
"schemaVersion": 41,
52+
"tags": [],
53+
"templating": {
54+
"list": []
55+
},
56+
"time": {
57+
"from": "now-6h",
58+
"to": "now"
59+
},
60+
"timepicker": {},
61+
"timezone": "browser",
62+
"title": "10. Tables – TODO",
63+
"uid": "2ef67a88-bca1-4eb6-9fe0-fe9dd32b786b",
64+
"version": 1
65+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"annotations": {
3+
"list": [
4+
{
5+
"builtIn": 1,
6+
"datasource": {
7+
"type": "grafana",
8+
"uid": "-- Grafana --"
9+
},
10+
"enable": true,
11+
"hide": true,
12+
"iconColor": "rgba(0, 211, 255, 1)",
13+
"name": "Annotations & Alerts",
14+
"type": "dashboard"
15+
}
16+
]
17+
},
18+
"editable": true,
19+
"fiscalYearStartMonth": 0,
20+
"graphTooltip": 0,
21+
"id": 9,
22+
"links": [],
23+
"panels": [
24+
{
25+
"fieldConfig": {
26+
"defaults": {},
27+
"overrides": []
28+
},
29+
"gridPos": {
30+
"h": 8,
31+
"w": 12,
32+
"x": 0,
33+
"y": 0
34+
},
35+
"id": 1,
36+
"options": {
37+
"code": {
38+
"language": "plaintext",
39+
"showLineNumbers": false,
40+
"showMiniMap": false
41+
},
42+
"content": "# Coming soon...",
43+
"mode": "markdown"
44+
},
45+
"pluginVersion": "12.0.2",
46+
"title": "",
47+
"type": "text"
48+
}
49+
],
50+
"preload": false,
51+
"schemaVersion": 41,
52+
"tags": [],
53+
"templating": {
54+
"list": []
55+
},
56+
"time": {
57+
"from": "now-6h",
58+
"to": "now"
59+
},
60+
"timepicker": {},
61+
"timezone": "browser",
62+
"title": "11. Indexes – TODO",
63+
"uid": "043c4e0c-3f0b-4842-acb2-d775186a7f98",
64+
"version": 1
65+
}

config/grafana/dashboards/Dashboard_1_Node_performance_overview.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 1,
21-
"id": 4,
21+
"id": 2,
2222
"links": [],
2323
"panels": [
2424
{
@@ -4026,8 +4026,8 @@
40264026
},
40274027
{
40284028
"current": {
4029-
"text": "target_database",
4030-
"value": "target_database"
4029+
"text": "postgres",
4030+
"value": "postgres"
40314031
},
40324032
"definition": "label_values(pgwatch_pg_database_wraparound_age_datfrozenxid{cluster=\"$cluster_name\", node_name=\"$node_name\", datname!=\"template1\"},datname)",
40334033
"label": "DB name",
@@ -4050,7 +4050,7 @@
40504050
},
40514051
"timepicker": {},
40524052
"timezone": "utc",
4053-
"title": "1. Postgres node performance overview (high-level)",
4053+
"title": "01. Single node performance overview (high-level)",
40544054
"uid": "f90500a0-a12e-4081-a2f0-07ed96f27915",
4055-
"version": 5
4055+
"version": 2
40564056
}

config/grafana/dashboards/Dashboard_2_Aggregated_query_analysis.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 0,
21-
"id": 1,
21+
"id": 3,
2222
"links": [],
2323
"panels": [
2424
{
@@ -607,7 +607,7 @@
607607
}
608608
]
609609
},
610-
"unit": "ms"
610+
"unit": "ms/s"
611611
},
612612
"overrides": [
613613
{
@@ -1083,7 +1083,7 @@
10831083
}
10841084
]
10851085
},
1086-
"unit": "bytes"
1086+
"unit": "Bps"
10871087
},
10881088
"overrides": [
10891089
{
@@ -1321,7 +1321,7 @@
13211321
}
13221322
]
13231323
},
1324-
"unit": "bytes"
1324+
"unit": "Bps"
13251325
},
13261326
"overrides": [
13271327
{
@@ -1556,7 +1556,8 @@
15561556
"value": 80
15571557
}
15581558
]
1559-
}
1559+
},
1560+
"unit": "Bps"
15601561
},
15611562
"overrides": [
15621563
{
@@ -1791,7 +1792,7 @@
17911792
}
17921793
]
17931794
},
1794-
"unit": "bytes"
1795+
"unit": "Bps"
17951796
},
17961797
"overrides": [
17971798
{
@@ -2027,7 +2028,7 @@
20272028
}
20282029
]
20292030
},
2030-
"unit": "bytes"
2031+
"unit": "Bps"
20312032
},
20322033
"overrides": [
20332034
{
@@ -2277,8 +2278,8 @@
22772278
},
22782279
{
22792280
"current": {
2280-
"text": "target_database",
2281-
"value": "target_database"
2281+
"text": "postgres",
2282+
"value": "postgres"
22822283
},
22832284
"definition": "label_values(pgwatch_pg_database_wraparound_age_datfrozenxid{cluster=\"$cluster_name\", node_name=\"$node_name\", datname!=\"template1\"},datname)",
22842285
"label": "DB name",
@@ -2301,7 +2302,7 @@
23012302
},
23022303
"timepicker": {},
23032304
"timezone": "utc",
2304-
"title": "2. Postgres aggregated query performance analysis",
2305+
"title": "02. Query performance analysis (top-N)",
23052306
"uid": "3ceb2e98-639d-48df-8e1f-7686d2052170",
2306-
"version": 5
2307+
"version": 2
23072308
}

config/grafana/dashboards/Dashboard_3_Single_query_analysis.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 0,
21-
"id": 8,
21+
"id": 4,
2222
"links": [],
2323
"panels": [
2424
{
@@ -513,7 +513,7 @@
513513
}
514514
]
515515
},
516-
"unit": "ms"
516+
"unit": "ms/s"
517517
},
518518
"overrides": [
519519
{
@@ -989,7 +989,7 @@
989989
}
990990
]
991991
},
992-
"unit": "bytes"
992+
"unit": "Bps"
993993
},
994994
"overrides": [
995995
{
@@ -1227,7 +1227,7 @@
12271227
}
12281228
]
12291229
},
1230-
"unit": "bytes"
1230+
"unit": "Bps"
12311231
},
12321232
"overrides": [
12331233
{
@@ -1697,7 +1697,7 @@
16971697
}
16981698
]
16991699
},
1700-
"unit": "bytes"
1700+
"unit": "Bps"
17011701
},
17021702
"overrides": [
17031703
{
@@ -1933,7 +1933,7 @@
19331933
}
19341934
]
19351935
},
1936-
"unit": "bytes"
1936+
"unit": "Bps"
19371937
},
19381938
"overrides": [
19391939
{
@@ -2173,8 +2173,8 @@
21732173
},
21742174
{
21752175
"current": {
2176-
"text": "target_database",
2177-
"value": "target_database"
2176+
"text": "postgres",
2177+
"value": "postgres"
21782178
},
21792179
"definition": "label_values(pgwatch_pg_database_wraparound_age_datfrozenxid{cluster=\"$cluster_name\", node_name=\"$node_name\", datname!=\"template1\"},datname)",
21802180
"label": "DB name",
@@ -2197,7 +2197,7 @@
21972197
},
21982198
"timepicker": {},
21992199
"timezone": "utc",
2200-
"title": "3. Postgres single query performance analysis",
2200+
"title": "03. Single queryid analysis",
22012201
"uid": "db52944d-b025-4e18-b70b-89c0af3e7e41",
2202-
"version": 26
2202+
"version": 2
22032203
}

config/grafana/dashboards/Dashboard_4_Wait_Sampling_Dashboard.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 0,
21-
"id": 11,
21+
"id": 1,
2222
"links": [],
2323
"panels": [
2424
{
@@ -688,8 +688,10 @@
688688
"allowCustomValue": false,
689689
"current": {
690690
"text": [
691+
"CPU*"
691692
],
692693
"value": [
694+
"CPU*"
693695
]
694696
},
695697
"definition": "label_values(pgwatch_wait_events_total,wait_event_type)",
@@ -711,8 +713,10 @@
711713
"allowCustomValue": false,
712714
"current": {
713715
"text": [
716+
"CPU*"
714717
],
715718
"value": [
719+
"CPU*"
716720
]
717721
},
718722
"definition": "label_values(pgwatch_wait_events_total{wait_event_type=~\"$wait_event_type\"},wait_event)",
@@ -767,8 +771,8 @@
767771
},
768772
{
769773
"current": {
770-
"text": "target_database",
771-
"value": "target_database"
774+
"text": "postgres",
775+
"value": "postgres"
772776
},
773777
"definition": "label_values(pgwatch_pg_database_wraparound_age_datfrozenxid{cluster=\"$cluster_name\", node_name=\"$node_name\", datname!=\"template1\"},datname)",
774778
"label": "DB name",
@@ -791,7 +795,7 @@
791795
},
792796
"timepicker": {},
793797
"timezone": "browser",
794-
"title": "4. Wait sampling dashboard",
798+
"title": "04. Wait event analysis (Active Session History)",
795799
"uid": "a222b233-acef-4bac-a451-1591023e4d4f",
796-
"version": 13
800+
"version": 2
797801
}

0 commit comments

Comments
 (0)