Skip to content

Commit 45ff5d1

Browse files
Reordered dashboards
1 parent b981f28 commit 45ff5d1

File tree

4 files changed

+38
-139
lines changed

4 files changed

+38
-139
lines changed

config/grafana/dashboards/Dashboard_8_Index health.json renamed to config/grafana/dashboards/Dashboard_10_Index health.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@
719719
},
720720
"timepicker": {},
721721
"timezone": "utc",
722-
"title": "08. Index health -- \"Metrics are collected (part of health check); dashboard – TODO\"",
722+
"title": "10. Aggregated index analysis",
723723
"uid": "db3b37d1-1540-4f7e-95c9-4082f2ca349e",
724724
"version": 11
725725
}

config/grafana/dashboards/Dashboard_10_Single_index_analysis.json renamed to config/grafana/dashboards/Dashboard_11_Single_index_analysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
},
225225
"timepicker": {},
226226
"timezone": "browser",
227-
"title": "10. Single index analysis",
227+
"title": "11. Single index analysis",
228228
"uid": "aa0128c5-c5a0-4418-a99e-c941af10426e",
229229
"version": 6
230230
}

config/grafana/dashboards/Dashboard_9_Table_Stats.json renamed to config/grafana/dashboards/Dashboard_8_Table_Stats.json

Lines changed: 28 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"axisColorMode": "text",
3838
"axisLabel": "",
3939
"axisPlacement": "auto",
40+
"axisSoftMin": 0,
4041
"barAlignment": 0,
4142
"barWidthFactor": 0.6,
4243
"drawStyle": "line",
@@ -178,7 +179,7 @@
178179
}
179180
]
180181
},
181-
"unit": "Bps"
182+
"unit": "bytes"
182183
},
183184
"overrides": []
184185
},
@@ -221,7 +222,7 @@
221222
"useBackend": false
222223
}
223224
],
224-
"title": "Top $top_n tables by size change rate",
225+
"title": "Top $top_n tables by size change rate (absolute)",
225226
"type": "timeseries"
226227
},
227228
{
@@ -234,7 +235,7 @@
234235
},
235236
"id": 22,
236237
"panels": [],
237-
"title": "Bloat stats",
238+
"title": "Estimated bloat stats",
238239
"type": "row"
239240
},
240241
{
@@ -253,6 +254,8 @@
253254
"axisColorMode": "text",
254255
"axisLabel": "",
255256
"axisPlacement": "auto",
257+
"axisSoftMax": 100,
258+
"axisSoftMin": 0,
256259
"barAlignment": 0,
257260
"barWidthFactor": 0.6,
258261
"drawStyle": "line",
@@ -337,7 +340,7 @@
337340
"useBackend": false
338341
}
339342
],
340-
"title": "Top $top_n tables by estimated bloat %",
343+
"title": "Top $top_n tables by estimated heap bloat %",
341344
"type": "timeseries"
342345
},
343346
{
@@ -356,6 +359,7 @@
356359
"axisColorMode": "text",
357360
"axisLabel": "",
358361
"axisPlacement": "auto",
362+
"axisSoftMin": 0,
359363
"barAlignment": 0,
360364
"barWidthFactor": 0.6,
361365
"drawStyle": "line",
@@ -410,7 +414,9 @@
410414
"options": {
411415
"legend": {
412416
"calcs": [
413-
"last"
417+
"min",
418+
"max",
419+
"mean"
414420
],
415421
"displayMode": "table",
416422
"placement": "bottom",
@@ -438,7 +444,7 @@
438444
"useBackend": false
439445
}
440446
],
441-
"title": "Top $top_n tables by estimated bloat size",
447+
"title": "Top $top_n tables by estimated heap bloat size",
442448
"type": "timeseries"
443449
},
444450
{
@@ -558,121 +564,7 @@
558564
"useBackend": false
559565
}
560566
],
561-
"title": "Top $top_n tables by inserts/sec",
562-
"type": "timeseries"
563-
},
564-
{
565-
"datasource": {
566-
"type": "prometheus",
567-
"uid": "P7A0D6631BB10B34F"
568-
},
569-
"fieldConfig": {
570-
"defaults": {
571-
"color": {
572-
"mode": "palette-classic"
573-
},
574-
"custom": {
575-
"axisBorderShow": false,
576-
"axisCenteredZero": false,
577-
"axisColorMode": "text",
578-
"axisLabel": "",
579-
"axisPlacement": "auto",
580-
"barAlignment": 0,
581-
"barWidthFactor": 0.6,
582-
"drawStyle": "line",
583-
"fillOpacity": 100,
584-
"gradientMode": "none",
585-
"hideFrom": {
586-
"legend": false,
587-
"tooltip": false,
588-
"viz": false
589-
},
590-
"insertNulls": false,
591-
"lineInterpolation": "linear",
592-
"lineWidth": 1,
593-
"pointSize": 1,
594-
"scaleDistribution": {
595-
"type": "linear"
596-
},
597-
"showPoints": "auto",
598-
"spanNulls": false,
599-
"stacking": {
600-
"group": "A",
601-
"mode": "normal"
602-
},
603-
"thresholdsStyle": {
604-
"mode": "off"
605-
}
606-
},
607-
"links": [
608-
{
609-
"title": "Table details",
610-
"url": "/d/11-single-table-analysis/11-single-table-analysis?orgId=1&var-cluster_name=${cluster_name}&var-node_name=${node_name}&var-db_name=${db_name}&var-schema_name=${__field.labels.schema}&var-table_name=${__field.labels.table_name}"
611-
}
612-
],
613-
"mappings": [],
614-
"thresholds": {
615-
"mode": "absolute",
616-
"steps": [
617-
{
618-
"color": "green"
619-
},
620-
{
621-
"color": "red",
622-
"value": 80
623-
}
624-
]
625-
},
626-
"unit": "ops"
627-
},
628-
"overrides": []
629-
},
630-
"gridPos": {
631-
"h": 10,
632-
"w": 12,
633-
"x": 12,
634-
"y": 28
635-
},
636-
"id": 4,
637-
"options": {
638-
"legend": {
639-
"calcs": [
640-
"min",
641-
"max",
642-
"mean"
643-
],
644-
"displayMode": "table",
645-
"placement": "bottom",
646-
"showLegend": true,
647-
"sortBy": "Mean",
648-
"sortDesc": true
649-
},
650-
"tooltip": {
651-
"hideZeros": false,
652-
"mode": "single",
653-
"sort": "none"
654-
}
655-
},
656-
"pluginVersion": "12.0.2",
657-
"targets": [
658-
{
659-
"datasource": {
660-
"type": "prometheus",
661-
"uid": "P7A0D6631BB10B34F"
662-
},
663-
"disableTextWrap": false,
664-
"editorMode": "code",
665-
"expr": "topk($top_n, sum by(schema, table_name, table_full_name) (irate(pgwatch_table_stats_n_tup_upd{datname=\"$db_name\", cluster=\"$cluster_name\", node_name=\"$node_name\", schema=~\"$schema_name\"}[$__rate_interval])))",
666-
"fullMetaSearch": false,
667-
"includeNullMetadata": true,
668-
"interval": "60",
669-
"legendFormat": "{{table_full_name}}",
670-
"range": true,
671-
"refId": "A",
672-
"useBackend": false
673-
}
674-
],
675-
"title": "Top $top_n tables by updates/sec",
567+
"title": "Top $top_n tables by tuples inserts per second",
676568
"type": "timeseries"
677569
},
678570
{
@@ -721,7 +613,7 @@
721613
"links": [
722614
{
723615
"title": "Table details",
724-
"url": "/d/11-single-table-analysis/11-single-table-analysis?orgId=1&var-cluster_name=${cluster_name}&var-node_name=${node_name}&var-db_name=${db_name}&var-schema_name=${__field.labels.schema}&var-table_name=${__field.labels.table_name}"
616+
"url": "/d/9-single-table-analysis/9-single-table-analysis?orgId=1&var-cluster_name=${cluster_name}&var-node_name=${node_name}&var-db_name=${db_name}&var-schema_name=${__field.labels.schema}&var-table_name=${__field.labels.table_name}"
725617
}
726618
],
727619
"mappings": [],
@@ -744,8 +636,8 @@
744636
"gridPos": {
745637
"h": 10,
746638
"w": 12,
747-
"x": 0,
748-
"y": 38
639+
"x": 12,
640+
"y": 28
749641
},
750642
"id": 5,
751643
"options": {
@@ -786,7 +678,7 @@
786678
"useBackend": false
787679
}
788680
],
789-
"title": "Top $top_n tables by deletes/sec",
681+
"title": "Top $top_n tables by tuple deletes per second",
790682
"type": "timeseries"
791683
},
792684
{
@@ -805,6 +697,7 @@
805697
"axisColorMode": "text",
806698
"axisLabel": "",
807699
"axisPlacement": "auto",
700+
"axisSoftMin": 0,
808701
"barAlignment": 0,
809702
"barWidthFactor": 0.6,
810703
"drawStyle": "line",
@@ -835,7 +728,7 @@
835728
"links": [
836729
{
837730
"title": "Table details",
838-
"url": "/d/11-single-table-analysis/11-single-table-analysis?orgId=1&var-cluster_name=${cluster_name}&var-node_name=${node_name}&var-db_name=${db_name}&var-schema_name=${__field.labels.schema}&var-table_name=${__field.labels.table_name}"
731+
"url": "/d/9-single-table-analysis/9-single-table-analysis?orgId=1&var-cluster_name=${cluster_name}&var-node_name=${node_name}&var-db_name=${db_name}&var-schema_name=${__field.labels.schema}&var-table_name=${__field.labels.table_name}"
839732
}
840733
],
841734
"mappings": [],
@@ -858,7 +751,7 @@
858751
"gridPos": {
859752
"h": 10,
860753
"w": 12,
861-
"x": 12,
754+
"x": 0,
862755
"y": 38
863756
},
864757
"id": 6,
@@ -900,7 +793,7 @@
900793
"useBackend": false
901794
}
902795
],
903-
"title": "Top $top_n tables by HOT updates/sec",
796+
"title": "Top $top_n tables by tuple HOT updates per second",
904797
"type": "timeseries"
905798
},
906799
{
@@ -949,7 +842,7 @@
949842
"links": [
950843
{
951844
"title": "Table details",
952-
"url": "/d/11-single-table-analysis/11-single-table-analysis?orgId=1&var-cluster_name=${cluster_name}&var-node_name=${node_name}&var-db_name=${db_name}&var-schema_name=${__field.labels.schema}&var-table_name=${__field.labels.table_name}"
845+
"url": "/d/9-single-table-analysis/9-single-table-analysis?orgId=1&var-cluster_name=${cluster_name}&var-node_name=${node_name}&var-db_name=${db_name}&var-schema_name=${__field.labels.schema}&var-table_name=${__field.labels.table_name}"
953846
}
954847
],
955848
"mappings": [],
@@ -972,8 +865,8 @@
972865
"gridPos": {
973866
"h": 10,
974867
"w": 12,
975-
"x": 0,
976-
"y": 48
868+
"x": 12,
869+
"y": 38
977870
},
978871
"id": 10,
979872
"options": {
@@ -1014,7 +907,7 @@
1014907
"useBackend": false
1015908
}
1016909
],
1017-
"title": "Top $top_n tables by Non-HOT updates/sec",
910+
"title": "Top $top_n tables by tuple non-HOT updates per second",
1018911
"type": "timeseries"
1019912
},
1020913
{
@@ -1026,7 +919,7 @@
1026919
"h": 3,
1027920
"w": 24,
1028921
"x": 0,
1029-
"y": 58
922+
"y": 48
1030923
},
1031924
"id": 20,
1032925
"options": {
@@ -1161,7 +1054,7 @@
11611054
},
11621055
"timepicker": {},
11631056
"timezone": "utc",
1164-
"title": "09. Top tables overview",
1057+
"title": "08. Aggregated tables analysis",
11651058
"uid": "92657f2a-985b-4d1a-99ed-2fac6e0c53e2",
1166-
"version": 58
1059+
"version": 76
11671060
}

config/grafana/dashboards/Dashboard_11_Single_table_analysis.json renamed to config/grafana/dashboards/Dashboard_9_Single_table_analysis.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"axisLabel": "",
3939
"axisPlacement": "auto",
4040
"barAlignment": 0,
41+
"axisSoftMin": 0,
4142
"barWidthFactor": 0.6,
4243
"drawStyle": "line",
4344
"fillOpacity": 0,
@@ -135,6 +136,7 @@
135136
"axisLabel": "",
136137
"axisPlacement": "auto",
137138
"barAlignment": 0,
139+
"axisSoftMin": 0,
138140
"barWidthFactor": 0.6,
139141
"drawStyle": "line",
140142
"fillOpacity": 0,
@@ -246,6 +248,7 @@
246248
"axisLabel": "",
247249
"axisPlacement": "auto",
248250
"barAlignment": 0,
251+
"axisSoftMin": 0,
249252
"barWidthFactor": 0.6,
250253
"drawStyle": "line",
251254
"fillOpacity": 0,
@@ -349,6 +352,7 @@
349352
"axisLabel": "",
350353
"axisPlacement": "auto",
351354
"barAlignment": 0,
355+
"axisSoftMin": 0,
352356
"barWidthFactor": 0.6,
353357
"drawStyle": "line",
354358
"fillOpacity": 0,
@@ -465,6 +469,7 @@
465469
"axisLabel": "",
466470
"axisPlacement": "auto",
467471
"barAlignment": 0,
472+
"axisSoftMin": 0,
468473
"barWidthFactor": 0.6,
469474
"drawStyle": "line",
470475
"fillOpacity": 100,
@@ -725,6 +730,7 @@
725730
"axisLabel": "",
726731
"axisPlacement": "auto",
727732
"barAlignment": 0,
733+
"axisSoftMin": 0,
728734
"barWidthFactor": 0.6,
729735
"drawStyle": "line",
730736
"fillOpacity": 100,
@@ -1216,7 +1222,7 @@
12161222
},
12171223
"timepicker": {},
12181224
"timezone": "utc",
1219-
"title": "11. Single table analysis",
1220-
"uid": "11-single-table-analysis",
1225+
"title": "9. Single table analysis",
1226+
"uid": "9-single-table-analysis",
12211227
"version": 5
12221228
}

0 commit comments

Comments
 (0)