pangolin_exporter

Форк
0
1412 строк · 33.0 Кб
1
{
2
  "annotations": {
3
    "list": [
4
      {
5
        "builtIn": 1,
6
        "datasource": "-- Grafana --",
7
        "enable": true,
8
        "hide": true,
9
        "iconColor": "rgba(0, 211, 255, 1)",
10
        "name": "Annotations & Alerts",
11
        "type": "dashboard"
12
      }
13
    ]
14
  },
15
  "description": "Performance metrics for Postgres",
16
  "editable": true,
17
  "gnetId": 455,
18
  "graphTooltip": 0,
19
  "id": 1,
20
  "iteration": 1603191461722,
21
  "links": [],
22
  "panels": [
23
    {
24
      "aliasColors": {},
25
      "bars": false,
26
      "dashLength": 10,
27
      "dashes": false,
28
      "datasource": "$datasource",
29
      "editable": true,
30
      "error": false,
31
      "fieldConfig": {
32
        "defaults": {
33
          "custom": {}
34
        },
35
        "overrides": []
36
      },
37
      "fill": 1,
38
      "fillGradient": 0,
39
      "grid": {},
40
      "gridPos": {
41
        "h": 7,
42
        "w": 20,
43
        "x": 0,
44
        "y": 0
45
      },
46
      "hiddenSeries": false,
47
      "id": 1,
48
      "isNew": true,
49
      "legend": {
50
        "alignAsTable": true,
51
        "avg": true,
52
        "current": false,
53
        "max": true,
54
        "min": true,
55
        "rightSide": true,
56
        "show": true,
57
        "total": false,
58
        "values": true
59
      },
60
      "lines": true,
61
      "linewidth": 1,
62
      "links": [],
63
      "nullPointMode": "connected",
64
      "options": {
65
        "alertThreshold": true
66
      },
67
      "percentage": false,
68
      "pluginVersion": "7.2.1",
69
      "pointradius": 5,
70
      "points": false,
71
      "renderer": "flot",
72
      "seriesOverrides": [],
73
      "spaceLength": 10,
74
      "stack": false,
75
      "steppedLine": false,
76
      "targets": [
77
        {
78
          "alias": "fetched",
79
          "dsType": "prometheus",
80
          "expr": "sum(irate(pg_stat_database_tup_fetched{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval]))",
81
          "format": "time_series",
82
          "groupBy": [
83
            {
84
              "params": [
85
                "$interval"
86
              ],
87
              "type": "time"
88
            },
89
            {
90
              "params": [
91
                "null"
92
              ],
93
              "type": "fill"
94
            }
95
          ],
96
          "intervalFactor": 2,
97
          "legendFormat": "fetched",
98
          "measurement": "postgresql",
99
          "policy": "default",
100
          "refId": "A",
101
          "resultFormat": "time_series",
102
          "select": [
103
            [
104
              {
105
                "params": [
106
                  "tup_fetched"
107
                ],
108
                "type": "field"
109
              },
110
              {
111
                "params": [],
112
                "type": "mean"
113
              },
114
              {
115
                "params": [
116
                  "10s"
117
                ],
118
                "type": "non_negative_derivative"
119
              }
120
            ]
121
          ],
122
          "step": 120,
123
          "tags": [
124
            {
125
              "key": "instance",
126
              "operator": "=~",
127
              "value": "/^$instance$/"
128
            }
129
          ]
130
        },
131
        {
132
          "alias": "fetched",
133
          "dsType": "prometheus",
134
          "expr": "sum(irate(pg_stat_database_tup_returned{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval]))",
135
          "format": "time_series",
136
          "groupBy": [
137
            {
138
              "params": [
139
                "$interval"
140
              ],
141
              "type": "time"
142
            },
143
            {
144
              "params": [
145
                "null"
146
              ],
147
              "type": "fill"
148
            }
149
          ],
150
          "intervalFactor": 2,
151
          "legendFormat": "returned",
152
          "measurement": "postgresql",
153
          "policy": "default",
154
          "refId": "B",
155
          "resultFormat": "time_series",
156
          "select": [
157
            [
158
              {
159
                "params": [
160
                  "tup_fetched"
161
                ],
162
                "type": "field"
163
              },
164
              {
165
                "params": [],
166
                "type": "mean"
167
              },
168
              {
169
                "params": [
170
                  "10s"
171
                ],
172
                "type": "non_negative_derivative"
173
              }
174
            ]
175
          ],
176
          "step": 120,
177
          "tags": [
178
            {
179
              "key": "instance",
180
              "operator": "=~",
181
              "value": "/^$instance$/"
182
            }
183
          ]
184
        },
185
        {
186
          "alias": "fetched",
187
          "dsType": "prometheus",
188
          "expr": "sum(irate(pg_stat_database_tup_inserted{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval]))",
189
          "format": "time_series",
190
          "groupBy": [
191
            {
192
              "params": [
193
                "$interval"
194
              ],
195
              "type": "time"
196
            },
197
            {
198
              "params": [
199
                "null"
200
              ],
201
              "type": "fill"
202
            }
203
          ],
204
          "intervalFactor": 2,
205
          "legendFormat": "inserted",
206
          "measurement": "postgresql",
207
          "policy": "default",
208
          "refId": "C",
209
          "resultFormat": "time_series",
210
          "select": [
211
            [
212
              {
213
                "params": [
214
                  "tup_fetched"
215
                ],
216
                "type": "field"
217
              },
218
              {
219
                "params": [],
220
                "type": "mean"
221
              },
222
              {
223
                "params": [
224
                  "10s"
225
                ],
226
                "type": "non_negative_derivative"
227
              }
228
            ]
229
          ],
230
          "step": 120,
231
          "tags": [
232
            {
233
              "key": "instance",
234
              "operator": "=~",
235
              "value": "/^$instance$/"
236
            }
237
          ]
238
        },
239
        {
240
          "alias": "fetched",
241
          "dsType": "prometheus",
242
          "expr": "sum(irate(pg_stat_database_tup_updated{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval]))",
243
          "format": "time_series",
244
          "groupBy": [
245
            {
246
              "params": [
247
                "$interval"
248
              ],
249
              "type": "time"
250
            },
251
            {
252
              "params": [
253
                "null"
254
              ],
255
              "type": "fill"
256
            }
257
          ],
258
          "intervalFactor": 2,
259
          "legendFormat": "updated",
260
          "measurement": "postgresql",
261
          "policy": "default",
262
          "refId": "D",
263
          "resultFormat": "time_series",
264
          "select": [
265
            [
266
              {
267
                "params": [
268
                  "tup_fetched"
269
                ],
270
                "type": "field"
271
              },
272
              {
273
                "params": [],
274
                "type": "mean"
275
              },
276
              {
277
                "params": [
278
                  "10s"
279
                ],
280
                "type": "non_negative_derivative"
281
              }
282
            ]
283
          ],
284
          "step": 120,
285
          "tags": [
286
            {
287
              "key": "instance",
288
              "operator": "=~",
289
              "value": "/^$instance$/"
290
            }
291
          ]
292
        },
293
        {
294
          "alias": "fetched",
295
          "dsType": "prometheus",
296
          "expr": "sum(irate(pg_stat_database_tup_deleted{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval]))",
297
          "format": "time_series",
298
          "groupBy": [
299
            {
300
              "params": [
301
                "$interval"
302
              ],
303
              "type": "time"
304
            },
305
            {
306
              "params": [
307
                "null"
308
              ],
309
              "type": "fill"
310
            }
311
          ],
312
          "intervalFactor": 2,
313
          "legendFormat": "deleted",
314
          "measurement": "postgresql",
315
          "policy": "default",
316
          "refId": "E",
317
          "resultFormat": "time_series",
318
          "select": [
319
            [
320
              {
321
                "params": [
322
                  "tup_fetched"
323
                ],
324
                "type": "field"
325
              },
326
              {
327
                "params": [],
328
                "type": "mean"
329
              },
330
              {
331
                "params": [
332
                  "10s"
333
                ],
334
                "type": "non_negative_derivative"
335
              }
336
            ]
337
          ],
338
          "step": 120,
339
          "tags": [
340
            {
341
              "key": "instance",
342
              "operator": "=~",
343
              "value": "/^$instance$/"
344
            }
345
          ]
346
        }
347
      ],
348
      "thresholds": [],
349
      "timeFrom": null,
350
      "timeRegions": [],
351
      "timeShift": null,
352
      "title": "Rows",
353
      "tooltip": {
354
        "msResolution": true,
355
        "shared": true,
356
        "sort": 0,
357
        "value_type": "cumulative"
358
      },
359
      "type": "graph",
360
      "xaxis": {
361
        "buckets": null,
362
        "mode": "time",
363
        "name": null,
364
        "show": true,
365
        "values": []
366
      },
367
      "yaxes": [
368
        {
369
          "format": "short",
370
          "label": null,
371
          "logBase": 1,
372
          "max": null,
373
          "min": null,
374
          "show": true
375
        },
376
        {
377
          "format": "short",
378
          "label": null,
379
          "logBase": 1,
380
          "max": null,
381
          "min": null,
382
          "show": true
383
        }
384
      ],
385
      "yaxis": {
386
        "align": false,
387
        "alignLevel": null
388
      }
389
    },
390
    {
391
      "cacheTimeout": null,
392
      "colorBackground": false,
393
      "colorValue": false,
394
      "colors": [
395
        "rgba(245, 54, 54, 0.9)",
396
        "rgba(237, 129, 40, 0.89)",
397
        "rgba(50, 172, 45, 0.97)"
398
      ],
399
      "datasource": "$datasource",
400
      "decimals": 0,
401
      "editable": true,
402
      "error": false,
403
      "fieldConfig": {
404
        "defaults": {
405
          "custom": {}
406
        },
407
        "overrides": []
408
      },
409
      "format": "none",
410
      "gauge": {
411
        "maxValue": 100,
412
        "minValue": 0,
413
        "show": false,
414
        "thresholdLabels": false,
415
        "thresholdMarkers": true
416
      },
417
      "gridPos": {
418
        "h": 3,
419
        "w": 4,
420
        "x": 20,
421
        "y": 0
422
      },
423
      "height": "55px",
424
      "id": 11,
425
      "interval": null,
426
      "isNew": true,
427
      "links": [],
428
      "mappingType": 1,
429
      "mappingTypes": [
430
        {
431
          "name": "value to text",
432
          "value": 1
433
        },
434
        {
435
          "name": "range to text",
436
          "value": 2
437
        }
438
      ],
439
      "maxDataPoints": 100,
440
      "nullPointMode": "connected",
441
      "nullText": null,
442
      "postfix": "",
443
      "postfixFontSize": "50%",
444
      "prefix": "",
445
      "prefixFontSize": "50%",
446
      "rangeMaps": [
447
        {
448
          "from": "null",
449
          "text": "N/A",
450
          "to": "null"
451
        }
452
      ],
453
      "sparkline": {
454
        "fillColor": "rgba(31, 118, 189, 0.18)",
455
        "full": true,
456
        "lineColor": "rgb(31, 120, 193)",
457
        "show": true
458
      },
459
      "tableColumn": "",
460
      "targets": [
461
        {
462
          "dsType": "prometheus",
463
          "expr": "sum(irate(pg_stat_database_xact_commit{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])) + sum(irate(pg_stat_database_xact_rollback{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval]))",
464
          "format": "time_series",
465
          "groupBy": [
466
            {
467
              "params": [
468
                "$interval"
469
              ],
470
              "type": "time"
471
            },
472
            {
473
              "params": [
474
                "null"
475
              ],
476
              "type": "fill"
477
            }
478
          ],
479
          "intervalFactor": 2,
480
          "measurement": "postgresql",
481
          "policy": "default",
482
          "refId": "A",
483
          "resultFormat": "time_series",
484
          "select": [
485
            [
486
              {
487
                "params": [
488
                  "xact_commit"
489
                ],
490
                "type": "field"
491
              },
492
              {
493
                "params": [],
494
                "type": "mean"
495
              },
496
              {
497
                "params": [
498
                  "10s"
499
                ],
500
                "type": "non_negative_derivative"
501
              }
502
            ]
503
          ],
504
          "step": 1800,
505
          "tags": [
506
            {
507
              "key": "instance",
508
              "operator": "=~",
509
              "value": "/^$instance$/"
510
            }
511
          ]
512
        }
513
      ],
514
      "thresholds": "",
515
      "title": "QPS",
516
      "transparent": true,
517
      "type": "singlestat",
518
      "valueFontSize": "80%",
519
      "valueMaps": [
520
        {
521
          "op": "=",
522
          "text": "N/A",
523
          "value": "null"
524
        }
525
      ],
526
      "valueName": "avg"
527
    },
528
    {
529
      "aliasColors": {},
530
      "bars": false,
531
      "dashLength": 10,
532
      "dashes": false,
533
      "datasource": "$datasource",
534
      "decimals": 1,
535
      "editable": true,
536
      "error": false,
537
      "fieldConfig": {
538
        "defaults": {
539
          "custom": {}
540
        },
541
        "overrides": []
542
      },
543
      "fill": 1,
544
      "fillGradient": 0,
545
      "grid": {},
546
      "gridPos": {
547
        "h": 7,
548
        "w": 12,
549
        "x": 0,
550
        "y": 7
551
      },
552
      "hiddenSeries": false,
553
      "id": 2,
554
      "isNew": true,
555
      "legend": {
556
        "alignAsTable": true,
557
        "avg": true,
558
        "current": false,
559
        "hideZero": true,
560
        "max": true,
561
        "min": true,
562
        "rightSide": false,
563
        "show": true,
564
        "total": false,
565
        "values": true
566
      },
567
      "lines": true,
568
      "linewidth": 1,
569
      "links": [],
570
      "nullPointMode": "connected",
571
      "options": {
572
        "alertThreshold": true
573
      },
574
      "percentage": false,
575
      "pluginVersion": "7.2.1",
576
      "pointradius": 5,
577
      "points": false,
578
      "renderer": "flot",
579
      "seriesOverrides": [],
580
      "spaceLength": 10,
581
      "stack": false,
582
      "steppedLine": false,
583
      "targets": [
584
        {
585
          "alias": "Buffers Allocated",
586
          "dsType": "prometheus",
587
          "expr": "irate(pg_stat_bgwriter_buffers_alloc{job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])",
588
          "format": "time_series",
589
          "groupBy": [
590
            {
591
              "params": [
592
                "$interval"
593
              ],
594
              "type": "time"
595
            },
596
            {
597
              "params": [
598
                "null"
599
              ],
600
              "type": "fill"
601
            }
602
          ],
603
          "intervalFactor": 2,
604
          "legendFormat": "buffers_alloc",
605
          "measurement": "postgresql",
606
          "policy": "default",
607
          "refId": "A",
608
          "resultFormat": "time_series",
609
          "select": [
610
            [
611
              {
612
                "params": [
613
                  "buffers_alloc"
614
                ],
615
                "type": "field"
616
              },
617
              {
618
                "params": [],
619
                "type": "mean"
620
              },
621
              {
622
                "params": [],
623
                "type": "difference"
624
              }
625
            ]
626
          ],
627
          "step": 240,
628
          "tags": [
629
            {
630
              "key": "instance",
631
              "operator": "=~",
632
              "value": "/^$instance$/"
633
            }
634
          ]
635
        },
636
        {
637
          "alias": "Buffers Allocated",
638
          "dsType": "prometheus",
639
          "expr": "irate(pg_stat_bgwriter_buffers_backend_fsync{job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])",
640
          "format": "time_series",
641
          "groupBy": [
642
            {
643
              "params": [
644
                "$interval"
645
              ],
646
              "type": "time"
647
            },
648
            {
649
              "params": [
650
                "null"
651
              ],
652
              "type": "fill"
653
            }
654
          ],
655
          "intervalFactor": 2,
656
          "legendFormat": "buffers_backend_fsync",
657
          "measurement": "postgresql",
658
          "policy": "default",
659
          "refId": "B",
660
          "resultFormat": "time_series",
661
          "select": [
662
            [
663
              {
664
                "params": [
665
                  "buffers_alloc"
666
                ],
667
                "type": "field"
668
              },
669
              {
670
                "params": [],
671
                "type": "mean"
672
              },
673
              {
674
                "params": [],
675
                "type": "difference"
676
              }
677
            ]
678
          ],
679
          "step": 240,
680
          "tags": [
681
            {
682
              "key": "instance",
683
              "operator": "=~",
684
              "value": "/^$instance$/"
685
            }
686
          ]
687
        },
688
        {
689
          "alias": "Buffers Allocated",
690
          "dsType": "prometheus",
691
          "expr": "irate(pg_stat_bgwriter_buffers_backend{job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])",
692
          "format": "time_series",
693
          "groupBy": [
694
            {
695
              "params": [
696
                "$interval"
697
              ],
698
              "type": "time"
699
            },
700
            {
701
              "params": [
702
                "null"
703
              ],
704
              "type": "fill"
705
            }
706
          ],
707
          "intervalFactor": 2,
708
          "legendFormat": "buffers_backend",
709
          "measurement": "postgresql",
710
          "policy": "default",
711
          "refId": "C",
712
          "resultFormat": "time_series",
713
          "select": [
714
            [
715
              {
716
                "params": [
717
                  "buffers_alloc"
718
                ],
719
                "type": "field"
720
              },
721
              {
722
                "params": [],
723
                "type": "mean"
724
              },
725
              {
726
                "params": [],
727
                "type": "difference"
728
              }
729
            ]
730
          ],
731
          "step": 240,
732
          "tags": [
733
            {
734
              "key": "instance",
735
              "operator": "=~",
736
              "value": "/^$instance$/"
737
            }
738
          ]
739
        },
740
        {
741
          "alias": "Buffers Allocated",
742
          "dsType": "prometheus",
743
          "expr": "irate(pg_stat_bgwriter_buffers_clean{job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])",
744
          "format": "time_series",
745
          "groupBy": [
746
            {
747
              "params": [
748
                "$interval"
749
              ],
750
              "type": "time"
751
            },
752
            {
753
              "params": [
754
                "null"
755
              ],
756
              "type": "fill"
757
            }
758
          ],
759
          "intervalFactor": 2,
760
          "legendFormat": "buffers_clean",
761
          "measurement": "postgresql",
762
          "policy": "default",
763
          "refId": "D",
764
          "resultFormat": "time_series",
765
          "select": [
766
            [
767
              {
768
                "params": [
769
                  "buffers_alloc"
770
                ],
771
                "type": "field"
772
              },
773
              {
774
                "params": [],
775
                "type": "mean"
776
              },
777
              {
778
                "params": [],
779
                "type": "difference"
780
              }
781
            ]
782
          ],
783
          "step": 240,
784
          "tags": [
785
            {
786
              "key": "instance",
787
              "operator": "=~",
788
              "value": "/^$instance$/"
789
            }
790
          ]
791
        },
792
        {
793
          "alias": "Buffers Allocated",
794
          "dsType": "prometheus",
795
          "expr": "irate(pg_stat_bgwriter_buffers_checkpoint{job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])",
796
          "format": "time_series",
797
          "groupBy": [
798
            {
799
              "params": [
800
                "$interval"
801
              ],
802
              "type": "time"
803
            },
804
            {
805
              "params": [
806
                "null"
807
              ],
808
              "type": "fill"
809
            }
810
          ],
811
          "intervalFactor": 2,
812
          "legendFormat": "buffers_checkpoint",
813
          "measurement": "postgresql",
814
          "policy": "default",
815
          "refId": "E",
816
          "resultFormat": "time_series",
817
          "select": [
818
            [
819
              {
820
                "params": [
821
                  "buffers_alloc"
822
                ],
823
                "type": "field"
824
              },
825
              {
826
                "params": [],
827
                "type": "mean"
828
              },
829
              {
830
                "params": [],
831
                "type": "difference"
832
              }
833
            ]
834
          ],
835
          "step": 240,
836
          "tags": [
837
            {
838
              "key": "instance",
839
              "operator": "=~",
840
              "value": "/^$instance$/"
841
            }
842
          ]
843
        }
844
      ],
845
      "thresholds": [],
846
      "timeFrom": null,
847
      "timeRegions": [],
848
      "timeShift": null,
849
      "title": "Buffers",
850
      "tooltip": {
851
        "msResolution": false,
852
        "shared": true,
853
        "sort": 0,
854
        "value_type": "cumulative"
855
      },
856
      "type": "graph",
857
      "xaxis": {
858
        "buckets": null,
859
        "mode": "time",
860
        "name": null,
861
        "show": true,
862
        "values": []
863
      },
864
      "yaxes": [
865
        {
866
          "format": "short",
867
          "label": null,
868
          "logBase": 1,
869
          "max": null,
870
          "min": 0,
871
          "show": true
872
        },
873
        {
874
          "format": "short",
875
          "label": null,
876
          "logBase": 1,
877
          "max": null,
878
          "min": null,
879
          "show": true
880
        }
881
      ],
882
      "yaxis": {
883
        "align": false,
884
        "alignLevel": null
885
      }
886
    },
887
    {
888
      "aliasColors": {},
889
      "bars": false,
890
      "dashLength": 10,
891
      "dashes": false,
892
      "datasource": "$datasource",
893
      "editable": true,
894
      "error": false,
895
      "fieldConfig": {
896
        "defaults": {
897
          "custom": {}
898
        },
899
        "overrides": []
900
      },
901
      "fill": 1,
902
      "fillGradient": 0,
903
      "grid": {},
904
      "gridPos": {
905
        "h": 7,
906
        "w": 12,
907
        "x": 12,
908
        "y": 7
909
      },
910
      "hiddenSeries": false,
911
      "id": 3,
912
      "isNew": true,
913
      "legend": {
914
        "avg": false,
915
        "current": false,
916
        "max": false,
917
        "min": false,
918
        "show": true,
919
        "total": false,
920
        "values": false
921
      },
922
      "lines": true,
923
      "linewidth": 2,
924
      "links": [],
925
      "nullPointMode": "connected",
926
      "options": {
927
        "alertThreshold": true
928
      },
929
      "percentage": false,
930
      "pluginVersion": "7.2.1",
931
      "pointradius": 5,
932
      "points": false,
933
      "renderer": "flot",
934
      "seriesOverrides": [],
935
      "spaceLength": 10,
936
      "stack": false,
937
      "steppedLine": false,
938
      "targets": [
939
        {
940
          "alias": "conflicts",
941
          "dsType": "prometheus",
942
          "expr": "sum(rate(pg_stat_database_deadlocks{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval]))",
943
          "format": "time_series",
944
          "groupBy": [
945
            {
946
              "params": [
947
                "$interval"
948
              ],
949
              "type": "time"
950
            },
951
            {
952
              "params": [
953
                "null"
954
              ],
955
              "type": "fill"
956
            }
957
          ],
958
          "intervalFactor": 2,
959
          "legendFormat": "deadlocks",
960
          "measurement": "postgresql",
961
          "policy": "default",
962
          "refId": "A",
963
          "resultFormat": "time_series",
964
          "select": [
965
            [
966
              {
967
                "params": [
968
                  "conflicts"
969
                ],
970
                "type": "field"
971
              },
972
              {
973
                "params": [],
974
                "type": "mean"
975
              },
976
              {
977
                "params": [],
978
                "type": "difference"
979
              }
980
            ]
981
          ],
982
          "step": 240,
983
          "tags": [
984
            {
985
              "key": "instance",
986
              "operator": "=~",
987
              "value": "/^$instance$/"
988
            }
989
          ]
990
        },
991
        {
992
          "alias": "deadlocks",
993
          "dsType": "prometheus",
994
          "expr": "sum(rate(pg_stat_database_conflicts{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval]))",
995
          "format": "time_series",
996
          "groupBy": [
997
            {
998
              "params": [
999
                "$interval"
1000
              ],
1001
              "type": "time"
1002
            },
1003
            {
1004
              "params": [
1005
                "null"
1006
              ],
1007
              "type": "fill"
1008
            }
1009
          ],
1010
          "intervalFactor": 2,
1011
          "legendFormat": "conflicts",
1012
          "measurement": "postgresql",
1013
          "policy": "default",
1014
          "refId": "B",
1015
          "resultFormat": "time_series",
1016
          "select": [
1017
            [
1018
              {
1019
                "params": [
1020
                  "deadlocks"
1021
                ],
1022
                "type": "field"
1023
              },
1024
              {
1025
                "params": [],
1026
                "type": "mean"
1027
              },
1028
              {
1029
                "params": [],
1030
                "type": "difference"
1031
              }
1032
            ]
1033
          ],
1034
          "step": 240,
1035
          "tags": [
1036
            {
1037
              "key": "instance",
1038
              "operator": "=~",
1039
              "value": "/^$instance$/"
1040
            }
1041
          ]
1042
        }
1043
      ],
1044
      "thresholds": [],
1045
      "timeFrom": null,
1046
      "timeRegions": [],
1047
      "timeShift": null,
1048
      "title": "Conflicts/Deadlocks",
1049
      "tooltip": {
1050
        "msResolution": false,
1051
        "shared": true,
1052
        "sort": 0,
1053
        "value_type": "cumulative"
1054
      },
1055
      "type": "graph",
1056
      "xaxis": {
1057
        "buckets": null,
1058
        "mode": "time",
1059
        "name": null,
1060
        "show": true,
1061
        "values": []
1062
      },
1063
      "yaxes": [
1064
        {
1065
          "format": "short",
1066
          "label": null,
1067
          "logBase": 1,
1068
          "max": null,
1069
          "min": 0,
1070
          "show": true
1071
        },
1072
        {
1073
          "format": "short",
1074
          "label": null,
1075
          "logBase": 1,
1076
          "max": null,
1077
          "min": null,
1078
          "show": true
1079
        }
1080
      ],
1081
      "yaxis": {
1082
        "align": false,
1083
        "alignLevel": null
1084
      }
1085
    },
1086
    {
1087
      "aliasColors": {},
1088
      "bars": false,
1089
      "dashLength": 10,
1090
      "dashes": false,
1091
      "datasource": "$datasource",
1092
      "editable": true,
1093
      "error": false,
1094
      "fieldConfig": {
1095
        "defaults": {
1096
          "custom": {}
1097
        },
1098
        "overrides": []
1099
      },
1100
      "fill": 1,
1101
      "fillGradient": 0,
1102
      "grid": {},
1103
      "gridPos": {
1104
        "h": 7,
1105
        "w": 12,
1106
        "x": 0,
1107
        "y": 14
1108
      },
1109
      "hiddenSeries": false,
1110
      "id": 12,
1111
      "isNew": true,
1112
      "legend": {
1113
        "avg": false,
1114
        "current": false,
1115
        "max": false,
1116
        "min": false,
1117
        "show": true,
1118
        "total": false,
1119
        "values": false
1120
      },
1121
      "lines": true,
1122
      "linewidth": 2,
1123
      "links": [],
1124
      "nullPointMode": "connected",
1125
      "options": {
1126
        "alertThreshold": true
1127
      },
1128
      "percentage": true,
1129
      "pluginVersion": "7.2.1",
1130
      "pointradius": 1,
1131
      "points": false,
1132
      "renderer": "flot",
1133
      "seriesOverrides": [],
1134
      "spaceLength": 10,
1135
      "stack": false,
1136
      "steppedLine": false,
1137
      "targets": [
1138
        {
1139
          "expr": "sum by (datname) (rate(pg_stat_database_blks_hit{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])) / (sum by (datname)(rate(pg_stat_database_blks_hit{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])) + sum by (datname)(rate(pg_stat_database_blks_read{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}[$__rate_interval])))",
1140
          "format": "time_series",
1141
          "intervalFactor": 2,
1142
          "legendFormat": "{{datname}} - cache hit rate",
1143
          "refId": "A",
1144
          "step": 240
1145
        }
1146
      ],
1147
      "thresholds": [],
1148
      "timeFrom": null,
1149
      "timeRegions": [],
1150
      "timeShift": null,
1151
      "title": "Cache hit ratio",
1152
      "tooltip": {
1153
        "msResolution": false,
1154
        "shared": true,
1155
        "sort": 0,
1156
        "value_type": "cumulative"
1157
      },
1158
      "type": "graph",
1159
      "xaxis": {
1160
        "buckets": null,
1161
        "mode": "time",
1162
        "name": null,
1163
        "show": true,
1164
        "values": []
1165
      },
1166
      "yaxes": [
1167
        {
1168
          "format": "percentunit",
1169
          "label": null,
1170
          "logBase": 1,
1171
          "max": null,
1172
          "min": null,
1173
          "show": true
1174
        },
1175
        {
1176
          "format": "short",
1177
          "label": null,
1178
          "logBase": 1,
1179
          "max": null,
1180
          "min": null,
1181
          "show": true
1182
        }
1183
      ],
1184
      "yaxis": {
1185
        "align": false,
1186
        "alignLevel": null
1187
      }
1188
    },
1189
    {
1190
      "aliasColors": {},
1191
      "bars": false,
1192
      "dashLength": 10,
1193
      "dashes": false,
1194
      "datasource": "$datasource",
1195
      "editable": true,
1196
      "error": false,
1197
      "fieldConfig": {
1198
        "defaults": {
1199
          "custom": {}
1200
        },
1201
        "overrides": []
1202
      },
1203
      "fill": 1,
1204
      "fillGradient": 0,
1205
      "grid": {},
1206
      "gridPos": {
1207
        "h": 7,
1208
        "w": 12,
1209
        "x": 12,
1210
        "y": 14
1211
      },
1212
      "hiddenSeries": false,
1213
      "id": 13,
1214
      "isNew": true,
1215
      "legend": {
1216
        "avg": false,
1217
        "current": false,
1218
        "max": false,
1219
        "min": false,
1220
        "show": true,
1221
        "total": false,
1222
        "values": false
1223
      },
1224
      "lines": true,
1225
      "linewidth": 2,
1226
      "links": [],
1227
      "nullPointMode": "connected",
1228
      "options": {
1229
        "alertThreshold": true
1230
      },
1231
      "percentage": false,
1232
      "pluginVersion": "7.2.1",
1233
      "pointradius": 5,
1234
      "points": false,
1235
      "renderer": "flot",
1236
      "seriesOverrides": [],
1237
      "spaceLength": 10,
1238
      "stack": false,
1239
      "steppedLine": false,
1240
      "targets": [
1241
        {
1242
          "expr": "pg_stat_database_numbackends{datname=~\"$db\",job=~\"$job\",instance=~\"$instance\"}",
1243
          "format": "time_series",
1244
          "intervalFactor": 2,
1245
          "legendFormat": "{{datname}} - {{__name__}}",
1246
          "refId": "A",
1247
          "step": 240
1248
        }
1249
      ],
1250
      "thresholds": [],
1251
      "timeFrom": null,
1252
      "timeRegions": [],
1253
      "timeShift": null,
1254
      "title": "Number of active connections",
1255
      "tooltip": {
1256
        "msResolution": false,
1257
        "shared": true,
1258
        "sort": 0,
1259
        "value_type": "cumulative"
1260
      },
1261
      "type": "graph",
1262
      "xaxis": {
1263
        "buckets": null,
1264
        "mode": "time",
1265
        "name": null,
1266
        "show": true,
1267
        "values": []
1268
      },
1269
      "yaxes": [
1270
        {
1271
          "format": "short",
1272
          "label": null,
1273
          "logBase": 1,
1274
          "max": null,
1275
          "min": null,
1276
          "show": true
1277
        },
1278
        {
1279
          "format": "short",
1280
          "label": null,
1281
          "logBase": 1,
1282
          "max": null,
1283
          "min": null,
1284
          "show": true
1285
        }
1286
      ],
1287
      "yaxis": {
1288
        "align": false,
1289
        "alignLevel": null
1290
      }
1291
    }
1292
  ],
1293
  "refresh": false,
1294
  "schemaVersion": 26,
1295
  "style": "dark",
1296
  "tags": [
1297
    "postgres"
1298
  ],
1299
  "templating": {
1300
    "list": [
1301
      {
1302
        "hide": 0,
1303
        "includeAll": false,
1304
        "label": "Data Source",
1305
        "multi": false,
1306
        "name": "datasource",
1307
        "options": [],
1308
        "query": "prometheus",
1309
        "refresh": 1,
1310
        "regex": "",
1311
        "skipUrlSync": false,
1312
        "type": "datasource"
1313
      },      
1314
      {
1315
        "allValue": ".+",
1316
        "datasource": "$datasource",
1317
        "definition": "label_values(pg_up, job)",
1318
        "hide": 0,
1319
        "includeAll": true,
1320
        "label": "job",
1321
        "multi": true,
1322
        "name": "job",
1323
        "options": [],
1324
        "query": "label_values(pg_up, job)",
1325
        "refresh": 0,
1326
        "regex": "",
1327
        "skipUrlSync": false,
1328
        "sort": 0,
1329
        "tagValuesQuery": "",
1330
        "tags": [],
1331
        "tagsQuery": "",
1332
        "type": "query",
1333
        "useTags": false
1334
      },
1335
      {
1336
        "allValue": ".+",
1337
        "datasource": "$datasource",
1338
        "definition": "",
1339
        "hide": 0,
1340
        "includeAll": true,
1341
        "label": "instance",
1342
        "multi": true,
1343
        "name": "instance",
1344
        "options": [],
1345
        "query": "label_values(up{job=~\"$job\"},instance)",
1346
        "refresh": 1,
1347
        "regex": "",
1348
        "skipUrlSync": false,
1349
        "sort": 0,
1350
        "tagValuesQuery": "",
1351
        "tags": [],
1352
        "tagsQuery": "",
1353
        "type": "query",
1354
        "useTags": false
1355
      },
1356
      {
1357
        "allValue": ".+",
1358
        "datasource": "$datasource",
1359
        "definition": "label_values(pg_stat_database_tup_fetched{instance=~\"$instance\",datname!~\"template.*|postgres\"},datname)",
1360
        "hide": 0,
1361
        "includeAll": true,
1362
        "label": "db",
1363
        "multi": false,
1364
        "name": "db",
1365
        "options": [],
1366
        "query": "label_values(pg_stat_database_tup_fetched{instance=~\"$instance\",datname!~\"template.*|postgres\"},datname)",
1367
        "refresh": 1,
1368
        "regex": "",
1369
        "skipUrlSync": false,
1370
        "sort": 0,
1371
        "tagValuesQuery": "",
1372
        "tags": [],
1373
        "tagsQuery": "",
1374
        "type": "query",
1375
        "useTags": false
1376
      }
1377
    ]
1378
  },
1379
  "time": {
1380
    "from": "now-1h",
1381
    "to": "now"
1382
  },
1383
  "timepicker": {
1384
    "refresh_intervals": [
1385
      "5s",
1386
      "10s",
1387
      "30s",
1388
      "1m",
1389
      "5m",
1390
      "15m",
1391
      "30m",
1392
      "1h",
1393
      "2h",
1394
      "1d"
1395
    ],
1396
    "time_options": [
1397
      "5m",
1398
      "15m",
1399
      "1h",
1400
      "6h",
1401
      "12h",
1402
      "24h",
1403
      "2d",
1404
      "7d",
1405
      "30d"
1406
    ]
1407
  },
1408
  "timezone": "browser",
1409
  "title": "Postgres Overview",
1410
  "uid": "wGgaPlciz",
1411
  "version": 5
1412
}
1413

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.