Skip to content

Commit c8e872d

Browse files
authored
[*] remove uid from datasource (#952)
Signed-off-by: Daniel Chambre <[email protected]>
1 parent fd48100 commit c8e872d

File tree

1 file changed

+26
-52
lines changed

1 file changed

+26
-52
lines changed

grafana/prometheus/v12/sessions-overview-prometheus.json

Lines changed: 26 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"panels": [
2424
{
2525
"datasource": {
26-
"type": "prometheus",
27-
"uid": "P13C0491EC2EA1DB8"
26+
"type": "prometheus"
2827
},
2928
"description": "QPS is an approximation. Requires pg_stat_statements to be installed",
3029
"fieldConfig": {
@@ -110,8 +109,7 @@
110109
"targets": [
111110
{
112111
"datasource": {
113-
"type": "prometheus",
114-
"uid": "P13C0491EC2EA1DB8"
112+
"type": "prometheus"
115113
},
116114
"exemplar": true,
117115
"expr": "avg(rate(pgwatch_db_stats_xact_commit{dbname='$dbname'}[$agg_interval])) + avg(rate(pgwatch_db_stats_xact_rollback{dbname='$dbname'}[$agg_interval]))",
@@ -121,8 +119,7 @@
121119
},
122120
{
123121
"datasource": {
124-
"type": "prometheus",
125-
"uid": "P13C0491EC2EA1DB8"
122+
"type": "prometheus"
126123
},
127124
"exemplar": true,
128125
"expr": "avg(rate(pgwatch_stat_statements_calls_calls{dbname='$dbname'}[$agg_interval]))",
@@ -137,8 +134,7 @@
137134
},
138135
{
139136
"datasource": {
140-
"type": "prometheus",
141-
"uid": "P13C0491EC2EA1DB8"
137+
"type": "prometheus"
142138
},
143139
"description": "",
144140
"fieldConfig": {
@@ -302,8 +298,7 @@
302298
"targets": [
303299
{
304300
"datasource": {
305-
"type": "prometheus",
306-
"uid": "P13C0491EC2EA1DB8"
301+
"type": "prometheus"
307302
},
308303
"exemplar": true,
309304
"expr": "max(max_over_time(pgwatch_backends_total{dbname='$dbname'}[$agg_interval]))",
@@ -313,8 +308,7 @@
313308
},
314309
{
315310
"datasource": {
316-
"type": "prometheus",
317-
"uid": "P13C0491EC2EA1DB8"
311+
"type": "prometheus"
318312
},
319313
"exemplar": true,
320314
"expr": "max(max_over_time(pgwatch_backends_active{dbname='$dbname'}[$agg_interval]))",
@@ -325,8 +319,7 @@
325319
},
326320
{
327321
"datasource": {
328-
"type": "prometheus",
329-
"uid": "P13C0491EC2EA1DB8"
322+
"type": "prometheus"
330323
},
331324
"exemplar": true,
332325
"expr": "max(pgwatch_backends_max_connections{dbname='$dbname'})",
@@ -337,8 +330,7 @@
337330
},
338331
{
339332
"datasource": {
340-
"type": "prometheus",
341-
"uid": "P13C0491EC2EA1DB8"
333+
"type": "prometheus"
342334
},
343335
"exemplar": true,
344336
"expr": "max(max_over_time(pgwatch_backends_waiting{dbname='$dbname'}[$agg_interval]))",
@@ -349,8 +341,7 @@
349341
},
350342
{
351343
"datasource": {
352-
"type": "prometheus",
353-
"uid": "P13C0491EC2EA1DB8"
344+
"type": "prometheus"
354345
},
355346
"exemplar": true,
356347
"expr": "max(max_over_time(pgwatch_backends_idleintransaction{dbname='$dbname'}[$agg_interval]))",
@@ -361,8 +352,7 @@
361352
},
362353
{
363354
"datasource": {
364-
"type": "prometheus",
365-
"uid": "P13C0491EC2EA1DB8"
355+
"type": "prometheus"
366356
},
367357
"exemplar": true,
368358
"expr": "max(increase(pgwatch_db_stats_deadlocks{dbname='$dbname'}[$agg_interval]))",
@@ -377,8 +367,7 @@
377367
},
378368
{
379369
"datasource": {
380-
"type": "prometheus",
381-
"uid": "P13C0491EC2EA1DB8"
370+
"type": "prometheus"
382371
},
383372
"fieldConfig": {
384373
"defaults": {
@@ -494,8 +483,7 @@
494483
"targets": [
495484
{
496485
"datasource": {
497-
"type": "prometheus",
498-
"uid": "P13C0491EC2EA1DB8"
486+
"type": "prometheus"
499487
},
500488
"exemplar": true,
501489
"expr": "max(max_over_time(pgwatch_backends_longest_query_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -505,8 +493,7 @@
505493
},
506494
{
507495
"datasource": {
508-
"type": "prometheus",
509-
"uid": "P13C0491EC2EA1DB8"
496+
"type": "prometheus"
510497
},
511498
"exemplar": true,
512499
"expr": "max(avg_over_time(pgwatch_backends_avg_query_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -521,8 +508,7 @@
521508
},
522509
{
523510
"datasource": {
524-
"type": "prometheus",
525-
"uid": "P13C0491EC2EA1DB8"
511+
"type": "prometheus"
526512
},
527513
"description": "",
528514
"fieldConfig": {
@@ -544,8 +530,7 @@
544530
"targets": [
545531
{
546532
"datasource": {
547-
"type": "prometheus",
548-
"uid": "P13C0491EC2EA1DB8"
533+
"type": "prometheus"
549534
},
550535
"exemplar": true,
551536
"expr": "max(max_over_time(pgwatch_backends_longest_tx_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -555,8 +540,7 @@
555540
},
556541
{
557542
"datasource": {
558-
"type": "prometheus",
559-
"uid": "P13C0491EC2EA1DB8"
543+
"type": "prometheus"
560544
},
561545
"exemplar": true,
562546
"expr": "max(avg_over_time(pgwatch_backends_avg_tx_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -571,8 +555,7 @@
571555
},
572556
{
573557
"datasource": {
574-
"type": "prometheus",
575-
"uid": "P13C0491EC2EA1DB8"
558+
"type": "prometheus"
576559
},
577560
"description": "",
578561
"fieldConfig": {
@@ -594,8 +577,7 @@
594577
"targets": [
595578
{
596579
"datasource": {
597-
"type": "prometheus",
598-
"uid": "P13C0491EC2EA1DB8"
580+
"type": "prometheus"
599581
},
600582
"exemplar": true,
601583
"expr": "max(max_over_time(pgwatch_backends_longest_session_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -605,8 +587,7 @@
605587
},
606588
{
607589
"datasource": {
608-
"type": "prometheus",
609-
"uid": "P13C0491EC2EA1DB8"
590+
"type": "prometheus"
610591
},
611592
"exemplar": true,
612593
"expr": "max(avg_over_time(pgwatch_backends_avg_session_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -621,8 +602,7 @@
621602
},
622603
{
623604
"datasource": {
624-
"type": "prometheus",
625-
"uid": "P13C0491EC2EA1DB8"
605+
"type": "prometheus"
626606
},
627607
"description": "\"No data\" means no waiting detected",
628608
"fieldConfig": {
@@ -644,8 +624,7 @@
644624
"targets": [
645625
{
646626
"datasource": {
647-
"type": "prometheus",
648-
"uid": "P13C0491EC2EA1DB8"
627+
"type": "prometheus"
649628
},
650629
"exemplar": true,
651630
"expr": "max(max_over_time(pgwatch_backends_longest_waiting_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -655,8 +634,7 @@
655634
},
656635
{
657636
"datasource": {
658-
"type": "prometheus",
659-
"uid": "P13C0491EC2EA1DB8"
637+
"type": "prometheus"
660638
},
661639
"exemplar": true,
662640
"expr": "max(avg_over_time(pgwatch_backends_avg_waiting_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -672,8 +650,7 @@
672650
},
673651
{
674652
"datasource": {
675-
"type": "prometheus",
676-
"uid": "P13C0491EC2EA1DB8"
653+
"type": "prometheus"
677654
},
678655
"description": "",
679656
"fieldConfig": {
@@ -694,8 +671,7 @@
694671
"targets": [
695672
{
696673
"datasource": {
697-
"type": "prometheus",
698-
"uid": "P13C0491EC2EA1DB8"
674+
"type": "prometheus"
699675
},
700676
"exemplar": true,
701677
"expr": "max(avg_over_time(pgwatch_backends_longest_autovacuum_seconds{dbname='$dbname'}[$agg_interval]))",
@@ -706,8 +682,7 @@
706682
},
707683
{
708684
"datasource": {
709-
"type": "prometheus",
710-
"uid": "P13C0491EC2EA1DB8"
685+
"type": "prometheus"
711686
},
712687
"exemplar": true,
713688
"expr": "max(max_over_time(pgwatch_backends_av_workers{dbname='$dbname'}[$agg_interval]))",
@@ -736,8 +711,7 @@
736711
"value": "demo"
737712
},
738713
"datasource": {
739-
"type": "prometheus",
740-
"uid": "P13C0491EC2EA1DB8"
714+
"type": "prometheus"
741715
},
742716
"definition": "label_values(dbname)",
743717
"includeAll": false,

0 commit comments

Comments
 (0)