Skip to content

Commit ef0a57e

Browse files
authored
[-] fix datasource uid for Grafana v11 dashboards (#689)
1 parent 0fbc2eb commit ef0a57e

26 files changed

+464
-464
lines changed

grafana/postgres/v11/1-global-db-overview.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{
2424
"datasource": {
2525
"type": "grafana-postgresql-datasource",
26-
"uid": "P13C0491EC2EA1DB8"
26+
"uid": "pgwatch-metrics"
2727
},
2828
"description": "Avg. of all DBs over the whole selected period",
2929
"fieldConfig": {
@@ -91,7 +91,7 @@
9191
"alias": "TPS",
9292
"datasource": {
9393
"type": "grafana-postgresql-datasource",
94-
"uid": "P13C0491EC2EA1DB8"
94+
"uid": "pgwatch-metrics"
9595
},
9696
"format": "time_series",
9797
"group": [],
@@ -148,7 +148,7 @@
148148
{
149149
"datasource": {
150150
"type": "grafana-postgresql-datasource",
151-
"uid": "P13C0491EC2EA1DB8"
151+
"uid": "pgwatch-metrics"
152152
},
153153
"description": "Avg. of all DBs over the whole selected period",
154154
"fieldConfig": {
@@ -217,7 +217,7 @@
217217
"alias": "QPS",
218218
"datasource": {
219219
"type": "grafana-postgresql-datasource",
220-
"uid": "P13C0491EC2EA1DB8"
220+
"uid": "pgwatch-metrics"
221221
},
222222
"format": "time_series",
223223
"group": [],
@@ -274,7 +274,7 @@
274274
{
275275
"datasource": {
276276
"type": "grafana-postgresql-datasource",
277-
"uid": "P13C0491EC2EA1DB8"
277+
"uid": "pgwatch-metrics"
278278
},
279279
"description": "Avg. of all DBs over the whole selected period for regular (>10 calls) queries",
280280
"fieldConfig": {
@@ -342,7 +342,7 @@
342342
"alias": "avg_query_runtime_per_db",
343343
"datasource": {
344344
"type": "grafana-postgresql-datasource",
345-
"uid": "P13C0491EC2EA1DB8"
345+
"uid": "pgwatch-metrics"
346346
},
347347
"format": "time_series",
348348
"group": [],
@@ -399,7 +399,7 @@
399399
{
400400
"datasource": {
401401
"type": "grafana-postgresql-datasource",
402-
"uid": "P13C0491EC2EA1DB8"
402+
"uid": "pgwatch-metrics"
403403
},
404404
"description": "Sum of all DB changes over the whole selected period",
405405
"fieldConfig": {
@@ -467,7 +467,7 @@
467467
"alias": "db_size_change_last_hour",
468468
"datasource": {
469469
"type": "grafana-postgresql-datasource",
470-
"uid": "P13C0491EC2EA1DB8"
470+
"uid": "pgwatch-metrics"
471471
},
472472
"format": "time_series",
473473
"group": [],
@@ -524,7 +524,7 @@
524524
{
525525
"datasource": {
526526
"type": "grafana-postgresql-datasource",
527-
"uid": "P13C0491EC2EA1DB8"
527+
"uid": "pgwatch-metrics"
528528
},
529529
"description": "Sum of all DBs. Based on a SQL based approximate.",
530530
"fieldConfig": {
@@ -592,7 +592,7 @@
592592
"alias": "Bloat size",
593593
"datasource": {
594594
"type": "grafana-postgresql-datasource",
595-
"uid": "P13C0491EC2EA1DB8"
595+
"uid": "pgwatch-metrics"
596596
},
597597
"format": "time_series",
598598
"group": [],
@@ -656,7 +656,7 @@
656656
{
657657
"datasource": {
658658
"type": "grafana-postgresql-datasource",
659-
"uid": "P13C0491EC2EA1DB8"
659+
"uid": "pgwatch-metrics"
660660
},
661661
"description": "Avg. of all selected DB-s for the whole period",
662662
"fieldConfig": {
@@ -724,7 +724,7 @@
724724
{
725725
"datasource": {
726726
"type": "grafana-postgresql-datasource",
727-
"uid": "P13C0491EC2EA1DB8"
727+
"uid": "pgwatch-metrics"
728728
},
729729
"format": "time_series",
730730
"group": [],
@@ -758,7 +758,7 @@
758758
{
759759
"datasource": {
760760
"type": "grafana-postgresql-datasource",
761-
"uid": "P13C0491EC2EA1DB8"
761+
"uid": "pgwatch-metrics"
762762
},
763763
"description": "",
764764
"fieldConfig": {
@@ -883,7 +883,7 @@
883883
"alias": "$tag_dbname",
884884
"datasource": {
885885
"type": "grafana-postgresql-datasource",
886-
"uid": "P13C0491EC2EA1DB8"
886+
"uid": "pgwatch-metrics"
887887
},
888888
"format": "time_series",
889889
"group": [],
@@ -942,7 +942,7 @@
942942
{
943943
"datasource": {
944944
"type": "grafana-postgresql-datasource",
945-
"uid": "P13C0491EC2EA1DB8"
945+
"uid": "pgwatch-metrics"
946946
},
947947
"description": "Based on pg_stat_statements.calls",
948948
"fieldConfig": {
@@ -1067,7 +1067,7 @@
10671067
"alias": "$tag_dbname",
10681068
"datasource": {
10691069
"type": "grafana-postgresql-datasource",
1070-
"uid": "P13C0491EC2EA1DB8"
1070+
"uid": "pgwatch-metrics"
10711071
},
10721072
"format": "time_series",
10731073
"group": [],
@@ -1126,7 +1126,7 @@
11261126
{
11271127
"datasource": {
11281128
"type": "grafana-postgresql-datasource",
1129-
"uid": "P13C0491EC2EA1DB8"
1129+
"uid": "pgwatch-metrics"
11301130
},
11311131
"description": "Requires \"pg_stat_statements\" on server. For regular queries (calls >10)",
11321132
"fieldConfig": {
@@ -1250,7 +1250,7 @@
12501250
"alias": "$tag_dbname",
12511251
"datasource": {
12521252
"type": "grafana-postgresql-datasource",
1253-
"uid": "P13C0491EC2EA1DB8"
1253+
"uid": "pgwatch-metrics"
12541254
},
12551255
"format": "time_series",
12561256
"group": [],
@@ -1309,7 +1309,7 @@
13091309
{
13101310
"datasource": {
13111311
"type": "grafana-postgresql-datasource",
1312-
"uid": "P13C0491EC2EA1DB8"
1312+
"uid": "pgwatch-metrics"
13131313
},
13141314
"fieldConfig": {
13151315
"defaults": {
@@ -1433,7 +1433,7 @@
14331433
"alias": "$tag_dbname",
14341434
"datasource": {
14351435
"type": "grafana-postgresql-datasource",
1436-
"uid": "P13C0491EC2EA1DB8"
1436+
"uid": "pgwatch-metrics"
14371437
},
14381438
"format": "time_series",
14391439
"group": [],
@@ -1491,7 +1491,7 @@
14911491
{
14921492
"datasource": {
14931493
"type": "grafana-postgresql-datasource",
1494-
"uid": "P13C0491EC2EA1DB8"
1494+
"uid": "pgwatch-metrics"
14951495
},
14961496
"description": "",
14971497
"fieldConfig": {
@@ -1616,7 +1616,7 @@
16161616
"alias": "$tag_dbname",
16171617
"datasource": {
16181618
"type": "grafana-postgresql-datasource",
1619-
"uid": "P13C0491EC2EA1DB8"
1619+
"uid": "pgwatch-metrics"
16201620
},
16211621
"format": "time_series",
16221622
"group": [],
@@ -1674,7 +1674,7 @@
16741674
{
16751675
"datasource": {
16761676
"type": "grafana-postgresql-datasource",
1677-
"uid": "P13C0491EC2EA1DB8"
1677+
"uid": "pgwatch-metrics"
16781678
},
16791679
"description": "Requires according \"metric fetching helpers\" on the monitored server",
16801680
"fieldConfig": {
@@ -1814,7 +1814,7 @@
18141814
"alias": "$tag_dbname",
18151815
"datasource": {
18161816
"type": "grafana-postgresql-datasource",
1817-
"uid": "P13C0491EC2EA1DB8"
1817+
"uid": "pgwatch-metrics"
18181818
},
18191819
"format": "time_series",
18201820
"group": [],
@@ -1872,7 +1872,7 @@
18721872
{
18731873
"datasource": {
18741874
"type": "grafana-postgresql-datasource",
1875-
"uid": "P13C0491EC2EA1DB8"
1875+
"uid": "pgwatch-metrics"
18761876
},
18771877
"fieldConfig": {
18781878
"defaults": {
@@ -2010,7 +2010,7 @@
20102010
"alias": "$tag_dbname",
20112011
"datasource": {
20122012
"type": "grafana-postgresql-datasource",
2013-
"uid": "P13C0491EC2EA1DB8"
2013+
"uid": "pgwatch-metrics"
20142014
},
20152015
"format": "time_series",
20162016
"group": [],
@@ -2067,7 +2067,7 @@
20672067
{
20682068
"datasource": {
20692069
"type": "grafana-postgresql-datasource",
2070-
"uid": "P13C0491EC2EA1DB8"
2070+
"uid": "pgwatch-metrics"
20712071
},
20722072
"fieldConfig": {
20732073
"defaults": {
@@ -2206,7 +2206,7 @@
22062206
"alias": "$tag_dbname",
22072207
"datasource": {
22082208
"type": "grafana-postgresql-datasource",
2209-
"uid": "P13C0491EC2EA1DB8"
2209+
"uid": "pgwatch-metrics"
22102210
},
22112211
"format": "time_series",
22122212
"group": [],
@@ -2276,7 +2276,7 @@
22762276
{
22772277
"datasource": {
22782278
"type": "grafana-postgresql-datasource",
2279-
"uid": "P13C0491EC2EA1DB8"
2279+
"uid": "pgwatch-metrics"
22802280
},
22812281
"description": "",
22822282
"fieldConfig": {
@@ -2381,7 +2381,7 @@
23812381
"alias": "$tag_dbname",
23822382
"datasource": {
23832383
"type": "grafana-postgresql-datasource",
2384-
"uid": "P13C0491EC2EA1DB8"
2384+
"uid": "pgwatch-metrics"
23852385
},
23862386
"format": "time_series",
23872387
"group": [],
@@ -2439,7 +2439,7 @@
24392439
{
24402440
"datasource": {
24412441
"type": "grafana-postgresql-datasource",
2442-
"uid": "P13C0491EC2EA1DB8"
2442+
"uid": "pgwatch-metrics"
24432443
},
24442444
"description": "Based on pg_stat_activity info",
24452445
"fieldConfig": {
@@ -2550,7 +2550,7 @@
25502550
"alias": "$tag_dbname",
25512551
"datasource": {
25522552
"type": "grafana-postgresql-datasource",
2553-
"uid": "P13C0491EC2EA1DB8"
2553+
"uid": "pgwatch-metrics"
25542554
},
25552555
"format": "time_series",
25562556
"group": [],
@@ -2614,7 +2614,7 @@
26142614
{
26152615
"datasource": {
26162616
"type": "grafana-postgresql-datasource",
2617-
"uid": "P13C0491EC2EA1DB8"
2617+
"uid": "pgwatch-metrics"
26182618
},
26192619
"editable": true,
26202620
"error": false,
@@ -2639,7 +2639,7 @@
26392639
{
26402640
"datasource": {
26412641
"type": "grafana-postgresql-datasource",
2642-
"uid": "P13C0491EC2EA1DB8"
2642+
"uid": "pgwatch-metrics"
26432643
},
26442644
"refId": "A"
26452645
}
@@ -2692,7 +2692,7 @@
26922692
},
26932693
"datasource": {
26942694
"type": "grafana-postgresql-datasource",
2695-
"uid": "P13C0491EC2EA1DB8"
2695+
"uid": "pgwatch-metrics"
26962696
},
26972697
"definition": "SELECT DISTINCT dbname FROM admin.all_distinct_dbname_metrics a WHERE case when '$current_primaries_only' = 'yes' then (select (data->'in_recovery_int')::int as in_recovery_int from db_stats where dbname = a.dbname and time > now() - '1h'::interval order by time desc limit 1) = 0 else true end ORDER BY 1;",
26982698
"hide": 0,

grafana/postgres/v11/aws-cloudwatch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,7 @@
19091909
{
19101910
"datasource": {
19111911
"type": "grafana-postgresql-datasource",
1912-
"uid": "P13C0491EC2EA1DB8"
1912+
"uid": "pgwatch-metrics"
19131913
},
19141914
"editable": true,
19151915
"error": false,
@@ -1934,7 +1934,7 @@
19341934
{
19351935
"datasource": {
19361936
"type": "grafana-postgresql-datasource",
1937-
"uid": "P13C0491EC2EA1DB8"
1937+
"uid": "pgwatch-metrics"
19381938
},
19391939
"refId": "A"
19401940
}

0 commit comments

Comments
 (0)