Skip to content

Commit d108322

Browse files
author
Dementii Priadko
committed
Merge branch 'mvp' into 'main'
Dashboards improvements See merge request postgres-ai/postgres_ai!19
2 parents ee29983 + ff09eae commit d108322

5 files changed

+130
-193
lines changed

config/grafana/dashboards/Dashboard_1_Node_performance_overview.json

Lines changed: 19 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@
825825
}
826826
]
827827
},
828-
"unit": "ops"
828+
"unit": "ops/s"
829829
},
830830
"overrides": []
831831
},
@@ -927,7 +927,7 @@
927927
}
928928
]
929929
},
930-
"unit": "ops"
930+
"unit": "ops/s"
931931
},
932932
"overrides": [
933933
{
@@ -1253,7 +1253,7 @@
12531253
}
12541254
]
12551255
},
1256-
"unit": "sec/sec"
1256+
"unit": "s/s"
12571257
},
12581258
"overrides": []
12591259
},
@@ -1647,7 +1647,7 @@
16471647
}
16481648
]
16491649
},
1650-
"unit": "sec/sec"
1650+
"unit": "s/s"
16511651
},
16521652
"overrides": []
16531653
},
@@ -2782,7 +2782,7 @@
27822782
}
27832783
]
27842784
},
2785-
"unit": "bytes"
2785+
"unit": "binBps"
27862786
},
27872787
"overrides": []
27882788
},
@@ -2986,7 +2986,7 @@
29862986
}
29872987
]
29882988
},
2989-
"unit": "bytes"
2989+
"unit": "binBps"
29902990
},
29912991
"overrides": []
29922992
},
@@ -3191,7 +3191,7 @@
31913191
}
31923192
]
31933193
},
3194-
"unit": "bytes"
3194+
"unit": "binBps"
31953195
},
31963196
"overrides": []
31973197
},
@@ -3795,192 +3795,29 @@
37953795
"type": "timeseries"
37963796
},
37973797
{
3798-
"datasource": {
3799-
"type": "prometheus",
3800-
"uid": "P7A0D6631BB10B34F"
3801-
},
38023798
"fieldConfig": {
3803-
"defaults": {
3804-
"color": {
3805-
"mode": "palette-classic"
3806-
},
3807-
"custom": {
3808-
"axisBorderShow": false,
3809-
"axisCenteredZero": false,
3810-
"axisColorMode": "text",
3811-
"axisLabel": "",
3812-
"axisPlacement": "auto",
3813-
"barAlignment": 0,
3814-
"barWidthFactor": 0.6,
3815-
"drawStyle": "line",
3816-
"fillOpacity": 0,
3817-
"gradientMode": "none",
3818-
"hideFrom": {
3819-
"legend": false,
3820-
"tooltip": false,
3821-
"viz": false
3822-
},
3823-
"insertNulls": false,
3824-
"lineInterpolation": "linear",
3825-
"lineWidth": 1,
3826-
"pointSize": 1,
3827-
"scaleDistribution": {
3828-
"type": "linear"
3829-
},
3830-
"showPoints": "auto",
3831-
"spanNulls": false,
3832-
"stacking": {
3833-
"group": "A",
3834-
"mode": "none"
3835-
},
3836-
"thresholdsStyle": {
3837-
"mode": "off"
3838-
}
3839-
},
3840-
"mappings": [],
3841-
"thresholds": {
3842-
"mode": "absolute",
3843-
"steps": [
3844-
{
3845-
"color": "green"
3846-
}
3847-
]
3848-
}
3849-
},
3799+
"defaults": {},
38503800
"overrides": []
38513801
},
38523802
"gridPos": {
3853-
"h": 8,
3854-
"w": 12,
3803+
"h": 3,
3804+
"w": 24,
38553805
"x": 0,
38563806
"y": 149
38573807
},
3858-
"id": 36,
3859-
"options": {
3860-
"legend": {
3861-
"calcs": [],
3862-
"displayMode": "list",
3863-
"placement": "bottom",
3864-
"showLegend": false
3865-
},
3866-
"tooltip": {
3867-
"hideZeros": false,
3868-
"mode": "single",
3869-
"sort": "none"
3870-
}
3871-
},
3872-
"pluginVersion": "12.0.2",
3873-
"targets": [
3874-
{
3875-
"editorMode": "code",
3876-
"expr": "pgwatch_pg_archiver_pending_wal_count{cluster='$cluster_name', node_name='$node_name', datname=\"$db_name\"}",
3877-
"legendFormat": "No of files",
3878-
"range": true,
3879-
"refId": "A"
3880-
}
3881-
],
3882-
"title": "TODO: No. of pending WAL files to be archived",
3883-
"type": "timeseries"
3884-
},
3885-
{
3886-
"datasource": {
3887-
"type": "prometheus",
3888-
"uid": "P7A0D6631BB10B34F"
3889-
},
3890-
"fieldConfig": {
3891-
"defaults": {
3892-
"color": {
3893-
"mode": "palette-classic"
3894-
},
3895-
"custom": {
3896-
"axisBorderShow": false,
3897-
"axisCenteredZero": false,
3898-
"axisColorMode": "text",
3899-
"axisLabel": "",
3900-
"axisPlacement": "auto",
3901-
"barAlignment": 0,
3902-
"barWidthFactor": 0.6,
3903-
"drawStyle": "line",
3904-
"fillOpacity": 0,
3905-
"gradientMode": "none",
3906-
"hideFrom": {
3907-
"legend": false,
3908-
"tooltip": false,
3909-
"viz": false
3910-
},
3911-
"insertNulls": false,
3912-
"lineInterpolation": "linear",
3913-
"lineWidth": 1,
3914-
"pointSize": 1,
3915-
"scaleDistribution": {
3916-
"type": "linear"
3917-
},
3918-
"showPoints": "auto",
3919-
"spanNulls": false,
3920-
"stacking": {
3921-
"group": "A",
3922-
"mode": "none"
3923-
},
3924-
"thresholdsStyle": {
3925-
"mode": "off"
3926-
}
3927-
},
3928-
"mappings": [],
3929-
"thresholds": {
3930-
"mode": "absolute",
3931-
"steps": [
3932-
{
3933-
"color": "green"
3934-
},
3935-
{
3936-
"color": "red",
3937-
"value": 80
3938-
}
3939-
]
3940-
}
3941-
},
3942-
"overrides": []
3943-
},
3944-
"gridPos": {
3945-
"h": 8,
3946-
"w": 12,
3947-
"x": 12,
3948-
"y": 149
3949-
},
3950-
"id": 37,
3808+
"id": 40,
39513809
"options": {
3952-
"legend": {
3953-
"calcs": [
3954-
"min",
3955-
"max",
3956-
"mean"
3957-
],
3958-
"displayMode": "table",
3959-
"placement": "bottom",
3960-
"showLegend": true
3810+
"code": {
3811+
"language": "plaintext",
3812+
"showLineNumbers": false,
3813+
"showMiniMap": false
39613814
},
3962-
"tooltip": {
3963-
"hideZeros": false,
3964-
"mode": "single",
3965-
"sort": "none"
3966-
}
3815+
"content": "<h1>\n Brought to you by <a href=\"https://postgres.ai\">Postgres AI</a>\n <img src=\"https://postgres.ai/img/logo.svg\" alt=\"Postgres.AI\" style=\"height: 2em; vertical-align: middle; margin-left: 0.3em;\">\n</h1>\n",
3816+
"mode": "html"
39673817
},
39683818
"pluginVersion": "12.0.2",
3969-
"targets": [
3970-
{
3971-
"disableTextWrap": false,
3972-
"editorMode": "code",
3973-
"expr": "pgwatch_pg_stuck_idle_in_transaction_queries{cluster='$cluster_name', node_name='$node_name', datname=\"$db_name\"}",
3974-
"fullMetaSearch": false,
3975-
"includeNullMetadata": true,
3976-
"legendFormat": "No. of queries",
3977-
"range": true,
3978-
"refId": "A",
3979-
"useBackend": false
3980-
}
3981-
],
3982-
"title": "TODO: Number of queries stuck in idle in transaction state (>10min)",
3983-
"type": "timeseries"
3819+
"title": "",
3820+
"type": "text"
39843821
}
39853822
],
39863823
"preload": false,

config/grafana/dashboards/Dashboard_2_Aggregated_query_analysis.json

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364
},
365365
{
366366
"key": "db_name",
367-
"value": "target_database"
367+
"value": "${db_name}"
368368
}
369369
]
370370
}
@@ -1083,7 +1083,7 @@
10831083
}
10841084
]
10851085
},
1086-
"unit": "Bps"
1086+
"unit": "binBps"
10871087
},
10881088
"overrides": [
10891089
{
@@ -1321,7 +1321,7 @@
13211321
}
13221322
]
13231323
},
1324-
"unit": "Bps"
1324+
"unit": "binBps"
13251325
},
13261326
"overrides": [
13271327
{
@@ -1557,7 +1557,7 @@
15571557
}
15581558
]
15591559
},
1560-
"unit": "Bps"
1560+
"unit": "binBps"
15611561
},
15621562
"overrides": [
15631563
{
@@ -1792,7 +1792,7 @@
17921792
}
17931793
]
17941794
},
1795-
"unit": "Bps"
1795+
"unit": "binBps"
17961796
},
17971797
"overrides": [
17981798
{
@@ -2028,7 +2028,7 @@
20282028
}
20292029
]
20302030
},
2031-
"unit": "Bps"
2031+
"unit": "binBps"
20322032
},
20332033
"overrides": [
20342034
{
@@ -2207,6 +2207,31 @@
22072207
],
22082208
"title": "Top $top_n statements by temp bytes written per call (pg_stat_statements)",
22092209
"type": "timeseries"
2210+
},
2211+
{
2212+
"fieldConfig": {
2213+
"defaults": {},
2214+
"overrides": []
2215+
},
2216+
"gridPos": {
2217+
"h": 3,
2218+
"w": 24,
2219+
"x": 0,
2220+
"y": 70
2221+
},
2222+
"id": 21,
2223+
"options": {
2224+
"code": {
2225+
"language": "plaintext",
2226+
"showLineNumbers": false,
2227+
"showMiniMap": false
2228+
},
2229+
"content": "<h1>\n Brought to you by <a href=\"https://postgres.ai\">Postgres AI</a>\n <img src=\"https://postgres.ai/img/logo.svg\" alt=\"Postgres.AI\" style=\"height: 2em; vertical-align: middle; margin-left: 0.3em;\">\n</h1>\n",
2230+
"mode": "html"
2231+
},
2232+
"pluginVersion": "12.0.2",
2233+
"title": "",
2234+
"type": "text"
22102235
}
22112236
],
22122237
"preload": false,

0 commit comments

Comments
 (0)