Skip to content

Commit 4fc4d10

Browse files
authored
[-] fix dashboard links to single query details, fixes #961 (#970)
1 parent 982a9a2 commit 4fc4d10

File tree

4 files changed

+64
-42
lines changed

4 files changed

+64
-42
lines changed

grafana/postgres/v12/health-check.json renamed to grafana/postgres/v12/0-health-check.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5107,7 +5107,7 @@
51075107
},
51085108
"timepicker": {},
51095109
"timezone": "browser",
5110-
"title": "Health-check",
5110+
"title": "0. Health Check",
51115111
"uid": "health-check",
51125112
"version": 1
51135113
}

grafana/postgres/v12/stat-statements-top-fast.json

Lines changed: 58 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"editable": true,
2020
"fiscalYearStartMonth": 0,
2121
"graphTooltip": 0,
22-
"id": 9,
22+
"id": 3,
2323
"links": [],
2424
"panels": [
2525
{
@@ -42,7 +42,8 @@
4242
"mode": "absolute",
4343
"steps": [
4444
{
45-
"color": "green"
45+
"color": "green",
46+
"value": 0
4647
},
4748
{
4849
"color": "red",
@@ -83,19 +84,15 @@
8384
},
8485
{
8586
"id": "unit",
86-
"value": "short"
87-
},
88-
{
89-
"id": "decimals",
90-
"value": 2
87+
"value": ""
9188
},
9289
{
9390
"id": "links",
9491
"value": [
9592
{
9693
"targetBlank": true,
9794
"title": "Opens 'Single query details' dashboard for that queryid",
98-
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=$__cell&from=$__from&to=$__to"
95+
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=${__value.raw}&from=${__from}&to=${__to}"
9996
}
10097
]
10198
},
@@ -224,7 +221,7 @@
224221
},
225222
"showHeader": true
226223
},
227-
"pluginVersion": "12.0.0",
224+
"pluginVersion": "12.1.0",
228225
"targets": [
229226
{
230227
"alias": "ass",
@@ -304,7 +301,8 @@
304301
"mode": "absolute",
305302
"steps": [
306303
{
307-
"color": "green"
304+
"color": "green",
305+
"value": 0
308306
},
309307
{
310308
"color": "red",
@@ -345,19 +343,15 @@
345343
},
346344
{
347345
"id": "unit",
348-
"value": "short"
349-
},
350-
{
351-
"id": "decimals",
352-
"value": 2
346+
"value": ""
353347
},
354348
{
355349
"id": "links",
356350
"value": [
357351
{
358352
"targetBlank": true,
359353
"title": "Opens 'Single query details' dashboard for that queryid",
360-
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=$__cell&from=$__from&to=$__to"
354+
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=${__value.raw}&from=${__from}&to=${__to}"
361355
}
362356
]
363357
},
@@ -452,7 +446,7 @@
452446
},
453447
"showHeader": true
454448
},
455-
"pluginVersion": "12.0.0",
449+
"pluginVersion": "12.1.0",
456450
"targets": [
457451
{
458452
"alias": "ass",
@@ -532,7 +526,8 @@
532526
"mode": "absolute",
533527
"steps": [
534528
{
535-
"color": "green"
529+
"color": "green",
530+
"value": 0
536531
},
537532
{
538533
"color": "red",
@@ -573,19 +568,15 @@
573568
},
574569
{
575570
"id": "unit",
576-
"value": "short"
577-
},
578-
{
579-
"id": "decimals",
580-
"value": 2
571+
"value": ""
581572
},
582573
{
583574
"id": "links",
584575
"value": [
585576
{
586577
"targetBlank": true,
587578
"title": "Opens 'Single query details' dashboard for that queryid",
588-
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=$__cell&from=$__from&to=$__to"
579+
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=${__value.raw}&from=${__from}&to=${__to}"
589580
}
590581
]
591582
},
@@ -699,7 +690,7 @@
699690
},
700691
"showHeader": true
701692
},
702-
"pluginVersion": "12.0.0",
693+
"pluginVersion": "12.1.0",
703694
"targets": [
704695
{
705696
"alias": "ass",
@@ -779,7 +770,8 @@
779770
"mode": "absolute",
780771
"steps": [
781772
{
782-
"color": "green"
773+
"color": "green",
774+
"value": 0
783775
},
784776
{
785777
"color": "red",
@@ -843,19 +835,15 @@
843835
},
844836
{
845837
"id": "unit",
846-
"value": "short"
847-
},
848-
{
849-
"id": "decimals",
850-
"value": 2
838+
"value": ""
851839
},
852840
{
853841
"id": "links",
854842
"value": [
855843
{
856844
"targetBlank": false,
857845
"title": "Opens 'Single query details' dashboard for that queryid",
858-
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=$__cell&from=$__from&to=$__to"
846+
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=${__value.raw}&from=${__from}&to=${__to}"
859847
}
860848
]
861849
},
@@ -927,7 +915,7 @@
927915
},
928916
"showHeader": true
929917
},
930-
"pluginVersion": "12.0.0",
918+
"pluginVersion": "12.1.0",
931919
"targets": [
932920
{
933921
"datasource": {
@@ -993,7 +981,29 @@
993981
},
994982
"description": "Does not include Shared Buffer activities. Same as 'By total runtime' if no direct IO was performed. Requires track_io_timing=on",
995983
"fieldConfig": {
996-
"defaults": {},
984+
"defaults": {
985+
"custom": {
986+
"align": "auto",
987+
"cellOptions": {
988+
"type": "auto"
989+
},
990+
"inspect": false
991+
},
992+
"mappings": [],
993+
"thresholds": {
994+
"mode": "absolute",
995+
"steps": [
996+
{
997+
"color": "green",
998+
"value": 0
999+
},
1000+
{
1001+
"color": "red",
1002+
"value": 80
1003+
}
1004+
]
1005+
}
1006+
},
9971007
"overrides": []
9981008
},
9991009
"gridPos": {
@@ -1003,7 +1013,19 @@
10031013
"y": 28
10041014
},
10051015
"id": 12,
1006-
"options": {},
1016+
"options": {
1017+
"cellHeight": "sm",
1018+
"footer": {
1019+
"countRows": false,
1020+
"fields": "",
1021+
"reducer": [
1022+
"sum"
1023+
],
1024+
"show": false
1025+
},
1026+
"showHeader": true
1027+
},
1028+
"pluginVersion": "12.1.0",
10071029
"targets": [
10081030
{
10091031
"datasource": {
@@ -1401,5 +1423,5 @@
14011423
"timezone": "browser",
14021424
"title": "Stat statements Top (Fast)",
14031425
"uid": "stat-statements-top-fast",
1404-
"version": 1
1426+
"version": 2
14051427
}

grafana/postgres/v12/stat-statements-top.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
{
9191
"targetBlank": true,
9292
"title": "Opens 'Single query details' dashboard for that queryid",
93-
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=$__cell&from=$__from&to=$__to"
93+
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=${__value.raw}&from=${__from}&to=${__to}"
9494
}
9595
]
9696
},
@@ -313,7 +313,7 @@
313313
{
314314
"targetBlank": true,
315315
"title": "Opens 'Single query details' dashboard for that queryid",
316-
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=$__cell&from=$__from&to=$__to"
316+
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=${__value.raw}&from=${__from}&to=${__to}"
317317
}
318318
]
319319
},
@@ -517,7 +517,7 @@
517517
{
518518
"targetBlank": true,
519519
"title": "Opens 'Single query details' dashboard for that queryid",
520-
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=$__cell&from=$__from&to=$__to"
520+
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=${__value.raw}&from=${__from}&to=${__to}"
521521
}
522522
]
523523
},
@@ -744,7 +744,7 @@
744744
{
745745
"targetBlank": false,
746746
"title": "Opens 'Single query details' dashboard for that queryid",
747-
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=$__cell&from=$__from&to=$__to"
747+
"url": "/d/single-query-details?orgId=1&var-dbname=$dbname&var-queryid=${__value.raw}&from=${__from}&to=${__to}"
748748
}
749749
]
750750
},

grafana/prometheus/v12/health-check-prometheus.json renamed to grafana/prometheus/v12/0-health-check-prometheus.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@
20412041
},
20422042
"timepicker": {},
20432043
"timezone": "",
2044-
"title": "Health-check (Prometheus)",
2044+
"title": "0. Health Check (Prometheus)",
20452045
"uid": "health-check-prometheus",
20462046
"version": 1
20472047
}

0 commit comments

Comments
 (0)