github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/postgresql/dashboards/postgresql.json (about)

     1  {
     2    "annotations": {
     3      "list": [
     4        {
     5          "builtIn": 1,
     6          "datasource": {
     7            "type": "datasource",
     8            "uid": "grafana"
     9          },
    10          "enable": true,
    11          "hide": true,
    12          "iconColor": "rgba(0, 211, 255, 1)",
    13          "name": "Annotations & Alerts",
    14          "target": {
    15            "limit": 100,
    16            "matchAny": false,
    17            "tags": [],
    18            "type": "dashboard"
    19          },
    20          "type": "dashboard"
    21        }
    22      ]
    23    },
    24    "description": "",
    25    "editable": true,
    26    "fiscalYearStartMonth": 0,
    27    "gnetId": 11323,
    28    "graphTooltip": 0,
    29    "id": 17,
    30    "links": [
    31      {
    32        "asDropdown": false,
    33        "icon": "cloud",
    34        "includeVars": false,
    35        "keepTime": false,
    36        "tags": [],
    37        "targetBlank": true,
    38        "title": "ApeCloud",
    39        "tooltip": "Improved productivity, cost-efficiency and business continuity.",
    40        "type": "link",
    41        "url": "https://kubeblocks.io/"
    42      },
    43      {
    44        "asDropdown": false,
    45        "icon": "external link",
    46        "includeVars": false,
    47        "keepTime": false,
    48        "tags": [],
    49        "targetBlank": true,
    50        "title": "KubeBlocks",
    51        "tooltip": "An open-source and cloud-neutral DBaaS with Kubernetes.",
    52        "type": "link",
    53        "url": "https://github.com/apecloud/kubeblocks"
    54      }
    55    ],
    56    "liveNow": false,
    57    "panels": [
    58      {
    59        "collapsed": false,
    60        "datasource": {
    61          "uid": "$datasource"
    62        },
    63        "gridPos": {
    64          "h": 1,
    65          "w": 24,
    66          "x": 0,
    67          "y": 0
    68        },
    69        "id": 382,
    70        "panels": [],
    71        "targets": [
    72          {
    73            "datasource": {
    74              "uid": "$datasource"
    75            },
    76            "refId": "A"
    77          }
    78        ],
    79        "title": "Summary",
    80        "type": "row"
    81      },
    82      {
    83        "datasource": {
    84          "type": "prometheus",
    85          "uid": "$datasource"
    86        },
    87        "description": "",
    88        "fieldConfig": {
    89          "defaults": {
    90            "decimals": 0,
    91            "mappings": [],
    92            "thresholds": {
    93              "mode": "absolute",
    94              "steps": [
    95                {
    96                  "color": "dark-green",
    97                  "value": null
    98                }
    99              ]
   100            },
   101            "unit": "short"
   102          },
   103          "overrides": []
   104        },
   105        "gridPos": {
   106          "h": 4,
   107          "w": 3,
   108          "x": 0,
   109          "y": 1
   110        },
   111        "id": 13,
   112        "interval": "",
   113        "links": [],
   114        "maxDataPoints": 100,
   115        "options": {
   116          "colorMode": "value",
   117          "fieldOptions": {
   118            "calcs": [
   119              "lastNotNull"
   120            ]
   121          },
   122          "graphMode": "area",
   123          "justifyMode": "auto",
   124          "orientation": "horizontal",
   125          "reduceOptions": {
   126            "calcs": [
   127              "lastNotNull"
   128            ],
   129            "fields": "",
   130            "values": false
   131          },
   132          "textMode": "auto"
   133        },
   134        "pluginVersion": "9.2.4",
   135        "targets": [
   136          {
   137            "calculatedInterval": "10m",
   138            "datasource": {
   139              "uid": "$datasource"
   140            },
   141            "datasourceErrors": {},
   142            "editorMode": "code",
   143            "errors": {},
   144            "expr": "count(sum by(namespace)(pg_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})) or vector(0)",
   145            "format": "time_series",
   146            "interval": "",
   147            "intervalFactor": 1,
   148            "legendFormat": "__auto",
   149            "metric": "",
   150            "range": true,
   151            "refId": "A",
   152            "step": 20
   153          }
   154        ],
   155        "title": "Total Namespaces",
   156        "type": "stat"
   157      },
   158      {
   159        "datasource": {
   160          "type": "prometheus",
   161          "uid": "$datasource"
   162        },
   163        "description": "",
   164        "fieldConfig": {
   165          "defaults": {
   166            "decimals": 0,
   167            "mappings": [],
   168            "thresholds": {
   169              "mode": "absolute",
   170              "steps": [
   171                {
   172                  "color": "dark-green",
   173                  "value": null
   174                }
   175              ]
   176            },
   177            "unit": "short"
   178          },
   179          "overrides": []
   180        },
   181        "gridPos": {
   182          "h": 4,
   183          "w": 3,
   184          "x": 3,
   185          "y": 1
   186        },
   187        "id": 424,
   188        "interval": "",
   189        "links": [],
   190        "maxDataPoints": 100,
   191        "options": {
   192          "colorMode": "value",
   193          "fieldOptions": {
   194            "calcs": [
   195              "lastNotNull"
   196            ]
   197          },
   198          "graphMode": "area",
   199          "justifyMode": "auto",
   200          "orientation": "horizontal",
   201          "reduceOptions": {
   202            "calcs": [
   203              "lastNotNull"
   204            ],
   205            "fields": "",
   206            "values": false
   207          },
   208          "textMode": "auto"
   209        },
   210        "pluginVersion": "9.2.4",
   211        "targets": [
   212          {
   213            "calculatedInterval": "10m",
   214            "datasource": {
   215              "uid": "$datasource"
   216            },
   217            "datasourceErrors": {},
   218            "editorMode": "code",
   219            "errors": {},
   220            "expr": "count(sum by(namespace,app_kubernetes_io_instance)(pg_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})) or vector(0)",
   221            "format": "time_series",
   222            "interval": "",
   223            "intervalFactor": 1,
   224            "legendFormat": "{{label_name}}",
   225            "metric": "",
   226            "range": true,
   227            "refId": "A",
   228            "step": 20
   229          }
   230        ],
   231        "title": "Total Clusters",
   232        "type": "stat"
   233      },
   234      {
   235        "datasource": {
   236          "type": "prometheus",
   237          "uid": "$datasource"
   238        },
   239        "description": "",
   240        "fieldConfig": {
   241          "defaults": {
   242            "decimals": 2,
   243            "mappings": [],
   244            "thresholds": {
   245              "mode": "absolute",
   246              "steps": [
   247                {
   248                  "color": "dark-green",
   249                  "value": null
   250                }
   251              ]
   252            },
   253            "unit": "short"
   254          },
   255          "overrides": []
   256        },
   257        "gridPos": {
   258          "h": 4,
   259          "w": 3,
   260          "x": 6,
   261          "y": 1
   262        },
   263        "id": 442,
   264        "interval": "",
   265        "links": [],
   266        "maxDataPoints": 100,
   267        "options": {
   268          "colorMode": "value",
   269          "fieldOptions": {
   270            "calcs": [
   271              "lastNotNull"
   272            ]
   273          },
   274          "graphMode": "area",
   275          "justifyMode": "auto",
   276          "orientation": "horizontal",
   277          "reduceOptions": {
   278            "calcs": [
   279              "lastNotNull"
   280            ],
   281            "fields": "",
   282            "values": false
   283          },
   284          "textMode": "auto"
   285        },
   286        "pluginVersion": "9.2.4",
   287        "targets": [
   288          {
   289            "calculatedInterval": "10m",
   290            "datasource": {
   291              "uid": "$datasource"
   292            },
   293            "datasourceErrors": {},
   294            "editorMode": "code",
   295            "errors": {},
   296            "exemplar": false,
   297            "expr": "sum(rate(pg_stat_database_xact_commit_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval]) + rate(pg_stat_database_xact_rollback_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) or vector(0)",
   298            "format": "time_series",
   299            "instant": false,
   300            "interval": "",
   301            "intervalFactor": 1,
   302            "legendFormat": "{{label_name}}",
   303            "metric": "",
   304            "range": true,
   305            "refId": "A",
   306            "step": 20
   307          }
   308        ],
   309        "title": "Total Tps",
   310        "type": "stat"
   311      },
   312      {
   313        "datasource": {
   314          "type": "prometheus",
   315          "uid": "$datasource"
   316        },
   317        "description": "",
   318        "fieldConfig": {
   319          "defaults": {
   320            "color": {
   321              "mode": "thresholds"
   322            },
   323            "custom": {
   324              "align": "center",
   325              "displayMode": "auto",
   326              "filterable": false,
   327              "inspect": false
   328            },
   329            "decimals": 2,
   330            "mappings": [],
   331            "thresholds": {
   332              "mode": "absolute",
   333              "steps": [
   334                {
   335                  "color": "dark-green",
   336                  "value": null
   337                }
   338              ]
   339            },
   340            "unit": "short"
   341          },
   342          "overrides": [
   343            {
   344              "matcher": {
   345                "id": "byName",
   346                "options": "instances"
   347              },
   348              "properties": [
   349                {
   350                  "id": "custom.displayMode",
   351                  "value": "lcd-gauge"
   352                }
   353              ]
   354            }
   355          ]
   356        },
   357        "gridPos": {
   358          "h": 8,
   359          "w": 5,
   360          "x": 9,
   361          "y": 1
   362        },
   363        "id": 422,
   364        "interval": "",
   365        "links": [],
   366        "maxDataPoints": 100,
   367        "options": {
   368          "footer": {
   369            "fields": "",
   370            "reducer": [
   371              "sum"
   372            ],
   373            "show": false
   374          },
   375          "showHeader": true
   376        },
   377        "pluginVersion": "9.2.4",
   378        "targets": [
   379          {
   380            "calculatedInterval": "10m",
   381            "datasource": {
   382              "uid": "$datasource"
   383            },
   384            "datasourceErrors": {},
   385            "editorMode": "code",
   386            "errors": {},
   387            "exemplar": false,
   388            "expr": "count by(short_version)(pg_static{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
   389            "format": "table",
   390            "instant": true,
   391            "interval": "",
   392            "intervalFactor": 1,
   393            "legendFormat": "{{short_version}}",
   394            "metric": "",
   395            "range": false,
   396            "refId": "A",
   397            "step": 20
   398          }
   399        ],
   400        "title": "Cluster Versions",
   401        "transformations": [
   402          {
   403            "id": "organize",
   404            "options": {
   405              "excludeByName": {
   406                "Time": true
   407              },
   408              "indexByName": {},
   409              "renameByName": {
   410                "Value": "instances",
   411                "short_version": "version"
   412              }
   413            }
   414          }
   415        ],
   416        "type": "table"
   417      },
   418      {
   419        "datasource": {
   420          "type": "prometheus",
   421          "uid": "$datasource"
   422        },
   423        "description": "",
   424        "fieldConfig": {
   425          "defaults": {
   426            "color": {
   427              "mode": "thresholds"
   428            },
   429            "custom": {
   430              "align": "center",
   431              "displayMode": "auto",
   432              "filterable": false,
   433              "inspect": false
   434            },
   435            "mappings": [],
   436            "thresholds": {
   437              "mode": "absolute",
   438              "steps": [
   439                {
   440                  "color": "green",
   441                  "value": null
   442                }
   443              ]
   444            }
   445          },
   446          "overrides": [
   447            {
   448              "matcher": {
   449                "id": "byName",
   450                "options": "instance"
   451              },
   452              "properties": [
   453                {
   454                  "id": "links",
   455                  "value": [
   456                    {
   457                      "targetBlank": true,
   458                      "title": "PostgreSQL Instance: ${__data.fields.cluster} | ${__data.fields.instance}",
   459                      "url": "/d/pMEd7m0Mz/cadvisor-exporter?orgId=1&var-node=All&var-namespace=${__data.fields.namespace}&var-pod=${__data.fields.instance}&var-container=All"
   460                    }
   461                  ]
   462                },
   463                {
   464                  "id": "custom.align",
   465                  "value": "center"
   466                },
   467                {
   468                  "id": "custom.filterable",
   469                  "value": true
   470                }
   471              ]
   472            },
   473            {
   474              "matcher": {
   475                "id": "byName",
   476                "options": "uptime"
   477              },
   478              "properties": [
   479                {
   480                  "id": "unit",
   481                  "value": "s"
   482                },
   483                {
   484                  "id": "thresholds",
   485                  "value": {
   486                    "mode": "absolute",
   487                    "steps": [
   488                      {
   489                        "color": "dark-red",
   490                        "value": null
   491                      },
   492                      {
   493                        "color": "dark-yellow",
   494                        "value": 60
   495                      },
   496                      {
   497                        "color": "dark-green",
   498                        "value": 120
   499                      }
   500                    ]
   501                  }
   502                },
   503                {
   504                  "id": "custom.displayMode",
   505                  "value": "lcd-gauge"
   506                }
   507              ]
   508            },
   509            {
   510              "matcher": {
   511                "id": "byName",
   512                "options": "namespace"
   513              },
   514              "properties": [
   515                {
   516                  "id": "custom.filterable",
   517                  "value": true
   518                }
   519              ]
   520            },
   521            {
   522              "matcher": {
   523                "id": "byName",
   524                "options": "cluster"
   525              },
   526              "properties": [
   527                {
   528                  "id": "custom.filterable",
   529                  "value": true
   530                }
   531              ]
   532            }
   533          ]
   534        },
   535        "gridPos": {
   536          "h": 8,
   537          "w": 10,
   538          "x": 14,
   539          "y": 1
   540        },
   541        "id": 428,
   542        "interval": "",
   543        "links": [],
   544        "maxDataPoints": 100,
   545        "options": {
   546          "footer": {
   547            "enablePagination": false,
   548            "fields": "",
   549            "reducer": [
   550              "sum"
   551            ],
   552            "show": false
   553          },
   554          "showHeader": true,
   555          "sortBy": [
   556            {
   557              "desc": true,
   558              "displayName": "uptime"
   559            }
   560          ]
   561        },
   562        "pluginVersion": "9.2.4",
   563        "targets": [
   564          {
   565            "calculatedInterval": "10m",
   566            "datasource": {
   567              "uid": "$datasource"
   568            },
   569            "datasourceErrors": {},
   570            "editorMode": "code",
   571            "errors": {},
   572            "exemplar": false,
   573            "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (pg_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
   574            "format": "table",
   575            "instant": true,
   576            "interval": "",
   577            "intervalFactor": 1,
   578            "legendFormat": "__auto",
   579            "metric": "",
   580            "range": false,
   581            "refId": "A",
   582            "step": 20
   583          },
   584          {
   585            "calculatedInterval": "10m",
   586            "datasource": {
   587              "uid": "$datasource"
   588            },
   589            "datasourceErrors": {},
   590            "editorMode": "code",
   591            "errors": {},
   592            "exemplar": false,
   593            "expr": "avg by(namespace,app_kubernetes_io_instance,pod) (time() - pg_postmaster_start_time_seconds{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
   594            "format": "table",
   595            "hide": false,
   596            "instant": true,
   597            "interval": "",
   598            "intervalFactor": 1,
   599            "legendFormat": "__auto",
   600            "metric": "",
   601            "range": false,
   602            "refId": "B",
   603            "step": 20
   604          }
   605        ],
   606        "title": "Cluster Instances",
   607        "transformations": [
   608          {
   609            "id": "joinByField",
   610            "options": {
   611              "byField": "pod",
   612              "mode": "outer"
   613            }
   614          },
   615          {
   616            "id": "organize",
   617            "options": {
   618              "excludeByName": {
   619                "Time 1": true,
   620                "Time 2": true,
   621                "Value #A": true,
   622                "app_kubernetes_io_instance 2": true,
   623                "namespace 2": true
   624              },
   625              "indexByName": {
   626                "Time 1": 3,
   627                "Time 2": 5,
   628                "Value #A": 4,
   629                "Value #B": 8,
   630                "app_kubernetes_io_instance 1": 1,
   631                "app_kubernetes_io_instance 2": 6,
   632                "namespace 1": 0,
   633                "namespace 2": 7,
   634                "pod": 2
   635              },
   636              "renameByName": {
   637                "Value #B": "uptime",
   638                "app_kubernetes_io_instance 1": "cluster",
   639                "namespace 1": "namespace",
   640                "pod": "instance"
   641              }
   642            }
   643          }
   644        ],
   645        "type": "table"
   646      },
   647      {
   648        "datasource": {
   649          "type": "prometheus",
   650          "uid": "$datasource"
   651        },
   652        "description": "",
   653        "fieldConfig": {
   654          "defaults": {
   655            "decimals": 0,
   656            "mappings": [],
   657            "thresholds": {
   658              "mode": "absolute",
   659              "steps": [
   660                {
   661                  "color": "dark-green",
   662                  "value": null
   663                }
   664              ]
   665            },
   666            "unit": "short"
   667          },
   668          "overrides": []
   669        },
   670        "gridPos": {
   671          "h": 4,
   672          "w": 3,
   673          "x": 0,
   674          "y": 5
   675        },
   676        "id": 421,
   677        "interval": "",
   678        "links": [],
   679        "maxDataPoints": 100,
   680        "options": {
   681          "colorMode": "value",
   682          "fieldOptions": {
   683            "calcs": [
   684              "lastNotNull"
   685            ]
   686          },
   687          "graphMode": "area",
   688          "justifyMode": "auto",
   689          "orientation": "horizontal",
   690          "reduceOptions": {
   691            "calcs": [
   692              "lastNotNull"
   693            ],
   694            "fields": "",
   695            "values": false
   696          },
   697          "textMode": "auto"
   698        },
   699        "pluginVersion": "9.2.4",
   700        "targets": [
   701          {
   702            "calculatedInterval": "10m",
   703            "datasource": {
   704              "uid": "$datasource"
   705            },
   706            "datasourceErrors": {},
   707            "editorMode": "code",
   708            "errors": {},
   709            "expr": "count(pg_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} > 0) or vector(0)",
   710            "format": "time_series",
   711            "interval": "",
   712            "intervalFactor": 1,
   713            "legendFormat": "__auto",
   714            "metric": "",
   715            "range": true,
   716            "refId": "A",
   717            "step": 20
   718          }
   719        ],
   720        "title": "Total Ups",
   721        "type": "stat"
   722      },
   723      {
   724        "datasource": {
   725          "type": "prometheus",
   726          "uid": "$datasource"
   727        },
   728        "description": "",
   729        "fieldConfig": {
   730          "defaults": {
   731            "decimals": 0,
   732            "mappings": [],
   733            "thresholds": {
   734              "mode": "absolute",
   735              "steps": [
   736                {
   737                  "color": "dark-green",
   738                  "value": null
   739                },
   740                {
   741                  "color": "dark-red",
   742                  "value": 0.5
   743                }
   744              ]
   745            },
   746            "unit": "short"
   747          },
   748          "overrides": []
   749        },
   750        "gridPos": {
   751          "h": 4,
   752          "w": 3,
   753          "x": 3,
   754          "y": 5
   755        },
   756        "id": 420,
   757        "interval": "",
   758        "links": [],
   759        "maxDataPoints": 100,
   760        "options": {
   761          "colorMode": "value",
   762          "fieldOptions": {
   763            "calcs": [
   764              "lastNotNull"
   765            ]
   766          },
   767          "graphMode": "area",
   768          "justifyMode": "auto",
   769          "orientation": "horizontal",
   770          "reduceOptions": {
   771            "calcs": [
   772              "lastNotNull"
   773            ],
   774            "fields": "",
   775            "values": false
   776          },
   777          "textMode": "auto"
   778        },
   779        "pluginVersion": "9.2.4",
   780        "targets": [
   781          {
   782            "calculatedInterval": "10m",
   783            "datasource": {
   784              "uid": "$datasource"
   785            },
   786            "datasourceErrors": {},
   787            "editorMode": "code",
   788            "errors": {},
   789            "exemplar": false,
   790            "expr": "count(pg_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} <= 0) or vector(0)",
   791            "format": "time_series",
   792            "instant": false,
   793            "interval": "",
   794            "intervalFactor": 1,
   795            "legendFormat": "__auto",
   796            "metric": "",
   797            "range": true,
   798            "refId": "A",
   799            "step": 20
   800          }
   801        ],
   802        "title": "Total Downs",
   803        "transformations": [],
   804        "type": "stat"
   805      },
   806      {
   807        "datasource": {
   808          "type": "prometheus",
   809          "uid": "$datasource"
   810        },
   811        "description": "",
   812        "fieldConfig": {
   813          "defaults": {
   814            "decimals": 2,
   815            "mappings": [],
   816            "thresholds": {
   817              "mode": "absolute",
   818              "steps": [
   819                {
   820                  "color": "dark-green",
   821                  "value": null
   822                }
   823              ]
   824            },
   825            "unit": "short"
   826          },
   827          "overrides": []
   828        },
   829        "gridPos": {
   830          "h": 4,
   831          "w": 3,
   832          "x": 6,
   833          "y": 5
   834        },
   835        "id": 443,
   836        "interval": "",
   837        "links": [],
   838        "maxDataPoints": 100,
   839        "options": {
   840          "colorMode": "value",
   841          "fieldOptions": {
   842            "calcs": [
   843              "lastNotNull"
   844            ]
   845          },
   846          "graphMode": "area",
   847          "justifyMode": "auto",
   848          "orientation": "horizontal",
   849          "reduceOptions": {
   850            "calcs": [
   851              "lastNotNull"
   852            ],
   853            "fields": "",
   854            "values": false
   855          },
   856          "textMode": "auto"
   857        },
   858        "pluginVersion": "9.2.4",
   859        "targets": [
   860          {
   861            "calculatedInterval": "10m",
   862            "datasource": {
   863              "uid": "$datasource"
   864            },
   865            "datasourceErrors": {},
   866            "editorMode": "code",
   867            "errors": {},
   868            "expr": "sum(rate(pg_stat_statements_stats_calls_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])) or vector(0)",
   869            "format": "time_series",
   870            "interval": "",
   871            "intervalFactor": 1,
   872            "legendFormat": "{{label_name}}",
   873            "metric": "",
   874            "range": true,
   875            "refId": "A",
   876            "step": 20
   877          }
   878        ],
   879        "title": "Total Qps",
   880        "type": "stat"
   881      },
   882      {
   883        "datasource": {
   884          "type": "prometheus",
   885          "uid": "$datasource"
   886        },
   887        "description": "",
   888        "fieldConfig": {
   889          "defaults": {
   890            "color": {
   891              "mode": "thresholds"
   892            },
   893            "custom": {
   894              "align": "center",
   895              "displayMode": "auto",
   896              "inspect": false
   897            },
   898            "decimals": 2,
   899            "mappings": [],
   900            "thresholds": {
   901              "mode": "absolute",
   902              "steps": [
   903                {
   904                  "color": "dark-green",
   905                  "value": null
   906                }
   907              ]
   908            },
   909            "unit": "short"
   910          },
   911          "overrides": [
   912            {
   913              "matcher": {
   914                "id": "byName",
   915                "options": "tps"
   916              },
   917              "properties": [
   918                {
   919                  "id": "custom.displayMode",
   920                  "value": "lcd-gauge"
   921                }
   922              ]
   923            }
   924          ]
   925        },
   926        "gridPos": {
   927          "h": 7,
   928          "w": 6,
   929          "x": 0,
   930          "y": 9
   931        },
   932        "id": 427,
   933        "interval": "",
   934        "links": [],
   935        "maxDataPoints": 100,
   936        "options": {
   937          "footer": {
   938            "fields": "",
   939            "reducer": [
   940              "sum"
   941            ],
   942            "show": false
   943          },
   944          "showHeader": true
   945        },
   946        "pluginVersion": "9.2.4",
   947        "targets": [
   948          {
   949            "calculatedInterval": "10m",
   950            "datasource": {
   951              "uid": "$datasource"
   952            },
   953            "datasourceErrors": {},
   954            "editorMode": "code",
   955            "errors": {},
   956            "exemplar": false,
   957            "expr": "topk(5, sum by(namespace,app_kubernetes_io_instance) (rate(pg_stat_database_xact_commit_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval]) + rate(pg_stat_database_xact_rollback_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])))",
   958            "format": "table",
   959            "instant": true,
   960            "interval": "",
   961            "intervalFactor": 1,
   962            "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}}",
   963            "metric": "",
   964            "range": false,
   965            "refId": "A",
   966            "step": 20
   967          }
   968        ],
   969        "title": "Top5 Transactions Clusters",
   970        "transformations": [
   971          {
   972            "id": "organize",
   973            "options": {
   974              "excludeByName": {
   975                "Time": true
   976              },
   977              "indexByName": {
   978                "Time": 0,
   979                "Value": 3,
   980                "app_kubernetes_io_instance": 2,
   981                "namespace": 1
   982              },
   983              "renameByName": {
   984                "Value": "tps",
   985                "app_kubernetes_io_instance": "cluster"
   986              }
   987            }
   988          }
   989        ],
   990        "type": "table"
   991      },
   992      {
   993        "datasource": {
   994          "type": "prometheus",
   995          "uid": "$datasource"
   996        },
   997        "description": "",
   998        "fieldConfig": {
   999          "defaults": {
  1000            "color": {
  1001              "mode": "thresholds"
  1002            },
  1003            "custom": {
  1004              "align": "center",
  1005              "displayMode": "auto",
  1006              "inspect": false
  1007            },
  1008            "decimals": 2,
  1009            "mappings": [],
  1010            "thresholds": {
  1011              "mode": "absolute",
  1012              "steps": [
  1013                {
  1014                  "color": "dark-green",
  1015                  "value": null
  1016                }
  1017              ]
  1018            },
  1019            "unit": "short"
  1020          },
  1021          "overrides": [
  1022            {
  1023              "matcher": {
  1024                "id": "byName",
  1025                "options": "qps"
  1026              },
  1027              "properties": [
  1028                {
  1029                  "id": "custom.displayMode",
  1030                  "value": "lcd-gauge"
  1031                }
  1032              ]
  1033            }
  1034          ]
  1035        },
  1036        "gridPos": {
  1037          "h": 7,
  1038          "w": 6,
  1039          "x": 6,
  1040          "y": 9
  1041        },
  1042        "id": 438,
  1043        "interval": "",
  1044        "links": [],
  1045        "maxDataPoints": 100,
  1046        "options": {
  1047          "footer": {
  1048            "fields": "",
  1049            "reducer": [
  1050              "sum"
  1051            ],
  1052            "show": false
  1053          },
  1054          "showHeader": true
  1055        },
  1056        "pluginVersion": "9.2.4",
  1057        "targets": [
  1058          {
  1059            "calculatedInterval": "10m",
  1060            "datasource": {
  1061              "uid": "$datasource"
  1062            },
  1063            "datasourceErrors": {},
  1064            "editorMode": "code",
  1065            "errors": {},
  1066            "exemplar": false,
  1067            "expr": "topk(5, sum by(namespace,app_kubernetes_io_instance) (rate(pg_stat_statements_stats_calls_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])))",
  1068            "format": "table",
  1069            "instant": true,
  1070            "interval": "",
  1071            "intervalFactor": 1,
  1072            "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}}",
  1073            "metric": "",
  1074            "range": false,
  1075            "refId": "A",
  1076            "step": 20
  1077          }
  1078        ],
  1079        "title": "Top5 Queries Clusters",
  1080        "transformations": [
  1081          {
  1082            "id": "organize",
  1083            "options": {
  1084              "excludeByName": {
  1085                "Time": true
  1086              },
  1087              "indexByName": {
  1088                "Time": 0,
  1089                "Value": 3,
  1090                "app_kubernetes_io_instance": 2,
  1091                "namespace": 1
  1092              },
  1093              "renameByName": {
  1094                "Value": "qps",
  1095                "app_kubernetes_io_instance": "cluster"
  1096              }
  1097            }
  1098          }
  1099        ],
  1100        "type": "table"
  1101      },
  1102      {
  1103        "datasource": {
  1104          "type": "prometheus",
  1105          "uid": "$datasource"
  1106        },
  1107        "description": "",
  1108        "fieldConfig": {
  1109          "defaults": {
  1110            "color": {
  1111              "mode": "thresholds"
  1112            },
  1113            "custom": {
  1114              "align": "center",
  1115              "displayMode": "auto",
  1116              "inspect": false
  1117            },
  1118            "decimals": 2,
  1119            "mappings": [],
  1120            "thresholds": {
  1121              "mode": "absolute",
  1122              "steps": [
  1123                {
  1124                  "color": "dark-green",
  1125                  "value": null
  1126                }
  1127              ]
  1128            },
  1129            "unit": "short"
  1130          },
  1131          "overrides": [
  1132            {
  1133              "matcher": {
  1134                "id": "byName",
  1135                "options": "connections"
  1136              },
  1137              "properties": [
  1138                {
  1139                  "id": "custom.displayMode",
  1140                  "value": "lcd-gauge"
  1141                }
  1142              ]
  1143            }
  1144          ]
  1145        },
  1146        "gridPos": {
  1147          "h": 7,
  1148          "w": 6,
  1149          "x": 12,
  1150          "y": 9
  1151        },
  1152        "id": 429,
  1153        "interval": "",
  1154        "links": [],
  1155        "maxDataPoints": 100,
  1156        "options": {
  1157          "footer": {
  1158            "fields": "",
  1159            "reducer": [
  1160              "sum"
  1161            ],
  1162            "show": false
  1163          },
  1164          "showHeader": true
  1165        },
  1166        "pluginVersion": "9.2.4",
  1167        "targets": [
  1168          {
  1169            "calculatedInterval": "10m",
  1170            "datasource": {
  1171              "uid": "$datasource"
  1172            },
  1173            "datasourceErrors": {},
  1174            "editorMode": "code",
  1175            "errors": {},
  1176            "exemplar": false,
  1177            "expr": "topk(5, sum by(namespace,app_kubernetes_io_instance) (pg_stat_database_numbackends{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}))",
  1178            "format": "table",
  1179            "instant": true,
  1180            "interval": "",
  1181            "intervalFactor": 1,
  1182            "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}}",
  1183            "metric": "",
  1184            "range": false,
  1185            "refId": "A",
  1186            "step": 20
  1187          }
  1188        ],
  1189        "title": "Top5 Connections Clusters",
  1190        "transformations": [
  1191          {
  1192            "id": "organize",
  1193            "options": {
  1194              "excludeByName": {
  1195                "Time": true
  1196              },
  1197              "indexByName": {
  1198                "Time": 0,
  1199                "Value": 3,
  1200                "app_kubernetes_io_instance": 2,
  1201                "namespace": 1
  1202              },
  1203              "renameByName": {
  1204                "Value": "connections",
  1205                "app_kubernetes_io_instance": "cluster",
  1206                "namespace": "namespace"
  1207              }
  1208            }
  1209          }
  1210        ],
  1211        "type": "table"
  1212      },
  1213      {
  1214        "datasource": {
  1215          "type": "prometheus",
  1216          "uid": "$datasource"
  1217        },
  1218        "description": "",
  1219        "fieldConfig": {
  1220          "defaults": {
  1221            "color": {
  1222              "mode": "thresholds"
  1223            },
  1224            "custom": {
  1225              "align": "center",
  1226              "displayMode": "auto",
  1227              "inspect": false
  1228            },
  1229            "decimals": 2,
  1230            "mappings": [],
  1231            "thresholds": {
  1232              "mode": "absolute",
  1233              "steps": [
  1234                {
  1235                  "color": "dark-green",
  1236                  "value": null
  1237                }
  1238              ]
  1239            },
  1240            "unit": "short"
  1241          },
  1242          "overrides": [
  1243            {
  1244              "matcher": {
  1245                "id": "byName",
  1246                "options": "size"
  1247              },
  1248              "properties": [
  1249                {
  1250                  "id": "unit",
  1251                  "value": "bytes"
  1252                },
  1253                {
  1254                  "id": "custom.displayMode",
  1255                  "value": "lcd-gauge"
  1256                }
  1257              ]
  1258            }
  1259          ]
  1260        },
  1261        "gridPos": {
  1262          "h": 7,
  1263          "w": 6,
  1264          "x": 18,
  1265          "y": 9
  1266        },
  1267        "id": 440,
  1268        "interval": "",
  1269        "links": [],
  1270        "maxDataPoints": 100,
  1271        "options": {
  1272          "footer": {
  1273            "fields": "",
  1274            "reducer": [
  1275              "sum"
  1276            ],
  1277            "show": false
  1278          },
  1279          "showHeader": true
  1280        },
  1281        "pluginVersion": "9.2.4",
  1282        "targets": [
  1283          {
  1284            "calculatedInterval": "10m",
  1285            "datasource": {
  1286              "uid": "$datasource"
  1287            },
  1288            "datasourceErrors": {},
  1289            "editorMode": "code",
  1290            "errors": {},
  1291            "exemplar": false,
  1292            "expr": "topk(5, sum by(namespace,app_kubernetes_io_instance) (pg_database_size_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}))",
  1293            "format": "table",
  1294            "instant": true,
  1295            "interval": "",
  1296            "intervalFactor": 1,
  1297            "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}}",
  1298            "metric": "",
  1299            "range": false,
  1300            "refId": "A",
  1301            "step": 20
  1302          }
  1303        ],
  1304        "title": "Top5 Disk Size Clusters",
  1305        "transformations": [
  1306          {
  1307            "id": "organize",
  1308            "options": {
  1309              "excludeByName": {
  1310                "Time": true
  1311              },
  1312              "indexByName": {
  1313                "Time": 0,
  1314                "Value": 3,
  1315                "app_kubernetes_io_instance": 2,
  1316                "namespace": 1
  1317              },
  1318              "renameByName": {
  1319                "Value": "size",
  1320                "app_kubernetes_io_instance": "cluster",
  1321                "namespace": "namespace"
  1322              }
  1323            }
  1324          }
  1325        ],
  1326        "type": "table"
  1327      },
  1328      {
  1329        "datasource": {
  1330          "type": "prometheus",
  1331          "uid": "$datasource"
  1332        },
  1333        "description": "",
  1334        "fieldConfig": {
  1335          "defaults": {
  1336            "color": {
  1337              "mode": "thresholds"
  1338            },
  1339            "custom": {
  1340              "align": "center",
  1341              "displayMode": "auto",
  1342              "inspect": false
  1343            },
  1344            "decimals": 2,
  1345            "mappings": [],
  1346            "thresholds": {
  1347              "mode": "absolute",
  1348              "steps": [
  1349                {
  1350                  "color": "dark-green",
  1351                  "value": null
  1352                }
  1353              ]
  1354            },
  1355            "unit": "short"
  1356          },
  1357          "overrides": [
  1358            {
  1359              "matcher": {
  1360                "id": "byName",
  1361                "options": "queryid"
  1362              },
  1363              "properties": [
  1364                {
  1365                  "id": "unit",
  1366                  "value": "long"
  1367                },
  1368                {
  1369                  "id": "custom.inspect",
  1370                  "value": true
  1371                }
  1372              ]
  1373            },
  1374            {
  1375              "matcher": {
  1376                "id": "byName",
  1377                "options": "avg exec time"
  1378              },
  1379              "properties": [
  1380                {
  1381                  "id": "unit",
  1382                  "value": "s"
  1383                }
  1384              ]
  1385            },
  1386            {
  1387              "matcher": {
  1388                "id": "byName",
  1389                "options": "instance"
  1390              },
  1391              "properties": [
  1392                {
  1393                  "id": "links",
  1394                  "value": [
  1395                    {
  1396                      "targetBlank": true,
  1397                      "title": "",
  1398                      "url": "/d/pMEd7m0Mz/cadvisor-exporter?orgId=1&var-node=All&var-namespace=${__data.fields.namespace}&var-pod=${__data.fields.instance}&var-container=All"
  1399                    }
  1400                  ]
  1401                }
  1402              ]
  1403            },
  1404            {
  1405              "matcher": {
  1406                "id": "byName",
  1407                "options": "query"
  1408              },
  1409              "properties": [
  1410                {
  1411                  "id": "custom.minWidth",
  1412                  "value": 500
  1413                },
  1414                {
  1415                  "id": "custom.align",
  1416                  "value": "left"
  1417                },
  1418                {
  1419                  "id": "custom.displayMode",
  1420                  "value": "color-text"
  1421                },
  1422                {
  1423                  "id": "custom.inspect",
  1424                  "value": true
  1425                }
  1426              ]
  1427            }
  1428          ]
  1429        },
  1430        "gridPos": {
  1431          "h": 7,
  1432          "w": 24,
  1433          "x": 0,
  1434          "y": 16
  1435        },
  1436        "id": 441,
  1437        "interval": "",
  1438        "links": [],
  1439        "maxDataPoints": 100,
  1440        "options": {
  1441          "footer": {
  1442            "fields": "",
  1443            "reducer": [
  1444              "sum"
  1445            ],
  1446            "show": false
  1447          },
  1448          "showHeader": true,
  1449          "sortBy": []
  1450        },
  1451        "pluginVersion": "9.2.4",
  1452        "targets": [
  1453          {
  1454            "calculatedInterval": "10m",
  1455            "datasource": {
  1456              "uid": "$datasource"
  1457            },
  1458            "datasourceErrors": {},
  1459            "editorMode": "code",
  1460            "errors": {},
  1461            "exemplar": false,
  1462            "expr": "topk(10, pg_stat_statements_by_mean_exec_time_mean_exec_time_seconds{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"})",
  1463            "format": "table",
  1464            "instant": true,
  1465            "interval": "",
  1466            "intervalFactor": 1,
  1467            "legendFormat": "",
  1468            "metric": "",
  1469            "range": false,
  1470            "refId": "A",
  1471            "step": 20
  1472          }
  1473        ],
  1474        "title": "Top10 Avg Exec Time Statements",
  1475        "transformations": [
  1476          {
  1477            "id": "organize",
  1478            "options": {
  1479              "excludeByName": {
  1480                "Time": true,
  1481                "__name__": true,
  1482                "app_kubernetes_io_component": true,
  1483                "app_kubernetes_io_component_name": true,
  1484                "app_kubernetes_io_managed_by": true,
  1485                "app_kubernetes_io_name": true,
  1486                "app_kubernetes_io_version": true,
  1487                "apps_kubeblocks_io_component_name": true,
  1488                "helm_sh_chart": true,
  1489                "instance": true,
  1490                "job": true,
  1491                "node": true,
  1492                "receiver": true,
  1493                "rolname": true,
  1494                "server": true,
  1495                "service": true
  1496              },
  1497              "indexByName": {
  1498                "Time": 1,
  1499                "Value": 12,
  1500                "__name__": 2,
  1501                "app_kubernetes_io_component": 15,
  1502                "app_kubernetes_io_instance": 3,
  1503                "app_kubernetes_io_managed_by": 4,
  1504                "app_kubernetes_io_name": 5,
  1505                "app_kubernetes_io_version": 16,
  1506                "apps_kubeblocks_io_component_name": 17,
  1507                "datname": 7,
  1508                "helm_sh_chart": 18,
  1509                "instance": 8,
  1510                "job": 9,
  1511                "namespace": 0,
  1512                "node": 19,
  1513                "pod": 6,
  1514                "query": 13,
  1515                "queryid": 14,
  1516                "receiver": 20,
  1517                "rolname": 10,
  1518                "server": 11,
  1519                "service": 21
  1520              },
  1521              "renameByName": {
  1522                "Value": "avg exec time",
  1523                "app_kubernetes_io_instance": "cluster",
  1524                "pod": "instance",
  1525                "rolname": "tablename"
  1526              }
  1527            }
  1528          }
  1529        ],
  1530        "type": "table"
  1531      },
  1532      {
  1533        "datasource": {
  1534          "type": "prometheus",
  1535          "uid": "$datasource"
  1536        },
  1537        "description": "",
  1538        "fieldConfig": {
  1539          "defaults": {
  1540            "color": {
  1541              "mode": "thresholds"
  1542            },
  1543            "custom": {
  1544              "align": "center",
  1545              "displayMode": "auto",
  1546              "inspect": false
  1547            },
  1548            "decimals": 2,
  1549            "mappings": [],
  1550            "thresholds": {
  1551              "mode": "absolute",
  1552              "steps": [
  1553                {
  1554                  "color": "dark-green"
  1555                }
  1556              ]
  1557            },
  1558            "unit": "short"
  1559          },
  1560          "overrides": [
  1561            {
  1562              "matcher": {
  1563                "id": "byName",
  1564                "options": "queryid"
  1565              },
  1566              "properties": [
  1567                {
  1568                  "id": "unit",
  1569                  "value": "long"
  1570                },
  1571                {
  1572                  "id": "custom.inspect",
  1573                  "value": true
  1574                }
  1575              ]
  1576            },
  1577            {
  1578              "matcher": {
  1579                "id": "byName",
  1580                "options": "instance"
  1581              },
  1582              "properties": [
  1583                {
  1584                  "id": "links",
  1585                  "value": [
  1586                    {
  1587                      "targetBlank": true,
  1588                      "title": "",
  1589                      "url": "/d/pMEd7m0Mz/cadvisor-exporter?orgId=1&var-node=All&var-namespace=${__data.fields.namespace}&var-pod=${__data.fields.instance}&var-container=All"
  1590                    }
  1591                  ]
  1592                }
  1593              ]
  1594            },
  1595            {
  1596              "matcher": {
  1597                "id": "byName",
  1598                "options": "query"
  1599              },
  1600              "properties": [
  1601                {
  1602                  "id": "custom.inspect",
  1603                  "value": true
  1604                },
  1605                {
  1606                  "id": "custom.displayMode",
  1607                  "value": "color-text"
  1608                },
  1609                {
  1610                  "id": "custom.align",
  1611                  "value": "left"
  1612                },
  1613                {
  1614                  "id": "custom.minWidth",
  1615                  "value": 500
  1616                }
  1617              ]
  1618            }
  1619          ]
  1620        },
  1621        "gridPos": {
  1622          "h": 7,
  1623          "w": 24,
  1624          "x": 0,
  1625          "y": 23
  1626        },
  1627        "id": 439,
  1628        "interval": "",
  1629        "links": [],
  1630        "maxDataPoints": 100,
  1631        "options": {
  1632          "footer": {
  1633            "fields": "",
  1634            "reducer": [
  1635              "sum"
  1636            ],
  1637            "show": false
  1638          },
  1639          "showHeader": true,
  1640          "sortBy": [
  1641            {
  1642              "desc": true,
  1643              "displayName": "count"
  1644            }
  1645          ]
  1646        },
  1647        "pluginVersion": "9.2.4",
  1648        "targets": [
  1649          {
  1650            "calculatedInterval": "10m",
  1651            "datasource": {
  1652              "uid": "$datasource"
  1653            },
  1654            "datasourceErrors": {},
  1655            "editorMode": "code",
  1656            "errors": {},
  1657            "exemplar": false,
  1658            "expr": "topk(10, increase(pg_stat_statements_by_calls_calls_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[10m]))",
  1659            "format": "table",
  1660            "instant": true,
  1661            "interval": "",
  1662            "intervalFactor": 1,
  1663            "legendFormat": "",
  1664            "metric": "",
  1665            "range": false,
  1666            "refId": "A",
  1667            "step": 20
  1668          }
  1669        ],
  1670        "title": "Top10 Most Called Statements Within 10 Minites",
  1671        "transformations": [
  1672          {
  1673            "id": "organize",
  1674            "options": {
  1675              "excludeByName": {
  1676                "Time": true,
  1677                "__name__": true,
  1678                "app_kubernetes_io_component": true,
  1679                "app_kubernetes_io_component_name": true,
  1680                "app_kubernetes_io_managed_by": true,
  1681                "app_kubernetes_io_name": true,
  1682                "app_kubernetes_io_version": true,
  1683                "apps_kubeblocks_io_component_name": true,
  1684                "helm_sh_chart": true,
  1685                "instance": true,
  1686                "job": true,
  1687                "node": true,
  1688                "receiver": true,
  1689                "rolname": true,
  1690                "server": true,
  1691                "service": true
  1692              },
  1693              "indexByName": {
  1694                "Time": 1,
  1695                "Value": 11,
  1696                "app_kubernetes_io_component": 14,
  1697                "app_kubernetes_io_instance": 2,
  1698                "app_kubernetes_io_managed_by": 3,
  1699                "app_kubernetes_io_name": 4,
  1700                "app_kubernetes_io_version": 15,
  1701                "apps_kubeblocks_io_component_name": 16,
  1702                "datname": 6,
  1703                "helm_sh_chart": 17,
  1704                "instance": 7,
  1705                "job": 8,
  1706                "namespace": 0,
  1707                "node": 18,
  1708                "pod": 5,
  1709                "query": 12,
  1710                "queryid": 13,
  1711                "receiver": 19,
  1712                "rolname": 9,
  1713                "server": 10,
  1714                "service": 20
  1715              },
  1716              "renameByName": {
  1717                "Value": "count",
  1718                "app_kubernetes_io_instance": "cluster",
  1719                "pod": "instance",
  1720                "rolname": "tablename"
  1721              }
  1722            }
  1723          }
  1724        ],
  1725        "type": "table"
  1726      },
  1727      {
  1728        "collapsed": true,
  1729        "gridPos": {
  1730          "h": 1,
  1731          "w": 24,
  1732          "x": 0,
  1733          "y": 30
  1734        },
  1735        "id": 412,
  1736        "panels": [
  1737          {
  1738            "datasource": {
  1739              "type": "prometheus",
  1740              "uid": "$datasource"
  1741            },
  1742            "description": "",
  1743            "fieldConfig": {
  1744              "defaults": {
  1745                "color": {
  1746                  "mode": "palette-classic"
  1747                },
  1748                "custom": {
  1749                  "axisCenteredZero": false,
  1750                  "axisColorMode": "text",
  1751                  "axisLabel": "",
  1752                  "axisPlacement": "auto",
  1753                  "barAlignment": 0,
  1754                  "drawStyle": "line",
  1755                  "fillOpacity": 20,
  1756                  "gradientMode": "none",
  1757                  "hideFrom": {
  1758                    "legend": false,
  1759                    "tooltip": false,
  1760                    "viz": false
  1761                  },
  1762                  "lineInterpolation": "linear",
  1763                  "lineWidth": 2,
  1764                  "pointSize": 5,
  1765                  "scaleDistribution": {
  1766                    "type": "linear"
  1767                  },
  1768                  "showPoints": "never",
  1769                  "spanNulls": false,
  1770                  "stacking": {
  1771                    "group": "A",
  1772                    "mode": "none"
  1773                  },
  1774                  "thresholdsStyle": {
  1775                    "mode": "off"
  1776                  }
  1777                },
  1778                "links": [],
  1779                "mappings": [],
  1780                "min": 0,
  1781                "thresholds": {
  1782                  "mode": "absolute",
  1783                  "steps": [
  1784                    {
  1785                      "color": "green"
  1786                    },
  1787                    {
  1788                      "color": "red",
  1789                      "value": 80
  1790                    }
  1791                  ]
  1792                },
  1793                "unit": "short"
  1794              },
  1795              "overrides": []
  1796            },
  1797            "gridPos": {
  1798              "h": 8,
  1799              "w": 12,
  1800              "x": 0,
  1801              "y": 31
  1802            },
  1803            "id": 413,
  1804            "links": [],
  1805            "options": {
  1806              "legend": {
  1807                "calcs": [
  1808                  "mean",
  1809                  "lastNotNull",
  1810                  "max",
  1811                  "min"
  1812                ],
  1813                "displayMode": "table",
  1814                "placement": "bottom",
  1815                "showLegend": true
  1816              },
  1817              "tooltip": {
  1818                "mode": "multi",
  1819                "sort": "none"
  1820              }
  1821            },
  1822            "pluginVersion": "9.2.4",
  1823            "targets": [
  1824              {
  1825                "calculatedInterval": "2m",
  1826                "datasource": {
  1827                  "uid": "$datasource"
  1828                },
  1829                "datasourceErrors": {},
  1830                "editorMode": "code",
  1831                "errors": {},
  1832                "expr": "pg_stat_database_numbackends{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}",
  1833                "format": "time_series",
  1834                "interval": "",
  1835                "intervalFactor": 1,
  1836                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  1837                "metric": "",
  1838                "range": true,
  1839                "refId": "A",
  1840                "step": 20
  1841              }
  1842            ],
  1843            "title": "Current Connections",
  1844            "type": "timeseries"
  1845          },
  1846          {
  1847            "datasource": {
  1848              "type": "prometheus",
  1849              "uid": "$datasource"
  1850            },
  1851            "description": "",
  1852            "fieldConfig": {
  1853              "defaults": {
  1854                "color": {
  1855                  "mode": "palette-classic"
  1856                },
  1857                "custom": {
  1858                  "axisCenteredZero": false,
  1859                  "axisColorMode": "text",
  1860                  "axisLabel": "",
  1861                  "axisPlacement": "auto",
  1862                  "barAlignment": 0,
  1863                  "drawStyle": "line",
  1864                  "fillOpacity": 20,
  1865                  "gradientMode": "none",
  1866                  "hideFrom": {
  1867                    "legend": false,
  1868                    "tooltip": false,
  1869                    "viz": false
  1870                  },
  1871                  "lineInterpolation": "linear",
  1872                  "lineWidth": 2,
  1873                  "pointSize": 5,
  1874                  "scaleDistribution": {
  1875                    "type": "linear"
  1876                  },
  1877                  "showPoints": "never",
  1878                  "spanNulls": false,
  1879                  "stacking": {
  1880                    "group": "A",
  1881                    "mode": "none"
  1882                  },
  1883                  "thresholdsStyle": {
  1884                    "mode": "off"
  1885                  }
  1886                },
  1887                "links": [],
  1888                "mappings": [],
  1889                "min": 0,
  1890                "thresholds": {
  1891                  "mode": "absolute",
  1892                  "steps": [
  1893                    {
  1894                      "color": "green"
  1895                    },
  1896                    {
  1897                      "color": "red",
  1898                      "value": 80
  1899                    }
  1900                  ]
  1901                },
  1902                "unit": "short"
  1903              },
  1904              "overrides": []
  1905            },
  1906            "gridPos": {
  1907              "h": 8,
  1908              "w": 12,
  1909              "x": 12,
  1910              "y": 31
  1911            },
  1912            "id": 414,
  1913            "links": [],
  1914            "options": {
  1915              "legend": {
  1916                "calcs": [
  1917                  "mean",
  1918                  "lastNotNull",
  1919                  "max",
  1920                  "min"
  1921                ],
  1922                "displayMode": "table",
  1923                "placement": "bottom",
  1924                "showLegend": true
  1925              },
  1926              "tooltip": {
  1927                "mode": "multi",
  1928                "sort": "none"
  1929              }
  1930            },
  1931            "pluginVersion": "9.2.4",
  1932            "targets": [
  1933              {
  1934                "calculatedInterval": "2m",
  1935                "datasource": {
  1936                  "uid": "$datasource"
  1937                },
  1938                "datasourceErrors": {},
  1939                "editorMode": "code",
  1940                "errors": {},
  1941                "expr": "pg_stat_activity_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",state=\"active\",job=\"$job\"}",
  1942                "format": "time_series",
  1943                "interval": "",
  1944                "intervalFactor": 1,
  1945                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  1946                "metric": "",
  1947                "range": true,
  1948                "refId": "A",
  1949                "step": 20
  1950              }
  1951            ],
  1952            "title": "Active Connections",
  1953            "type": "timeseries"
  1954          },
  1955          {
  1956            "datasource": {
  1957              "type": "prometheus",
  1958              "uid": "$datasource"
  1959            },
  1960            "description": "",
  1961            "fieldConfig": {
  1962              "defaults": {
  1963                "color": {
  1964                  "mode": "palette-classic"
  1965                },
  1966                "custom": {
  1967                  "axisCenteredZero": false,
  1968                  "axisColorMode": "text",
  1969                  "axisLabel": "",
  1970                  "axisPlacement": "auto",
  1971                  "barAlignment": 0,
  1972                  "drawStyle": "line",
  1973                  "fillOpacity": 20,
  1974                  "gradientMode": "none",
  1975                  "hideFrom": {
  1976                    "legend": false,
  1977                    "tooltip": false,
  1978                    "viz": false
  1979                  },
  1980                  "lineInterpolation": "linear",
  1981                  "lineWidth": 2,
  1982                  "pointSize": 5,
  1983                  "scaleDistribution": {
  1984                    "type": "linear"
  1985                  },
  1986                  "showPoints": "never",
  1987                  "spanNulls": false,
  1988                  "stacking": {
  1989                    "group": "A",
  1990                    "mode": "none"
  1991                  },
  1992                  "thresholdsStyle": {
  1993                    "mode": "off"
  1994                  }
  1995                },
  1996                "links": [],
  1997                "mappings": [],
  1998                "min": 0,
  1999                "thresholds": {
  2000                  "mode": "absolute",
  2001                  "steps": [
  2002                    {
  2003                      "color": "green"
  2004                    },
  2005                    {
  2006                      "color": "red",
  2007                      "value": 80
  2008                    }
  2009                  ]
  2010                },
  2011                "unit": "percentunit"
  2012              },
  2013              "overrides": []
  2014            },
  2015            "gridPos": {
  2016              "h": 8,
  2017              "w": 12,
  2018              "x": 0,
  2019              "y": 39
  2020            },
  2021            "id": 512,
  2022            "links": [],
  2023            "options": {
  2024              "legend": {
  2025                "calcs": [
  2026                  "mean",
  2027                  "lastNotNull",
  2028                  "max",
  2029                  "min"
  2030                ],
  2031                "displayMode": "table",
  2032                "placement": "bottom",
  2033                "showLegend": true
  2034              },
  2035              "tooltip": {
  2036                "mode": "multi",
  2037                "sort": "none"
  2038              }
  2039            },
  2040            "pluginVersion": "9.2.4",
  2041            "targets": [
  2042              {
  2043                "calculatedInterval": "2m",
  2044                "datasource": {
  2045                  "uid": "$datasource"
  2046                },
  2047                "datasourceErrors": {},
  2048                "editorMode": "code",
  2049                "errors": {},
  2050                "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (pg_stat_database_numbackends{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) / on(namespace,app_kubernetes_io_instance,pod) pg_settings_max_connections{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}",
  2051                "format": "time_series",
  2052                "interval": "",
  2053                "intervalFactor": 1,
  2054                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  2055                "metric": "",
  2056                "range": true,
  2057                "refId": "A",
  2058                "step": 20
  2059              }
  2060            ],
  2061            "title": "Used Connections Ratio",
  2062            "type": "timeseries"
  2063          }
  2064        ],
  2065        "title": "Connections",
  2066        "type": "row"
  2067      },
  2068      {
  2069        "collapsed": true,
  2070        "gridPos": {
  2071          "h": 1,
  2072          "w": 24,
  2073          "x": 0,
  2074          "y": 31
  2075        },
  2076        "id": 431,
  2077        "panels": [
  2078          {
  2079            "datasource": {
  2080              "type": "prometheus",
  2081              "uid": "$datasource"
  2082            },
  2083            "description": "",
  2084            "fieldConfig": {
  2085              "defaults": {
  2086                "color": {
  2087                  "mode": "palette-classic"
  2088                },
  2089                "custom": {
  2090                  "axisCenteredZero": false,
  2091                  "axisColorMode": "text",
  2092                  "axisLabel": "",
  2093                  "axisPlacement": "auto",
  2094                  "barAlignment": 0,
  2095                  "drawStyle": "line",
  2096                  "fillOpacity": 20,
  2097                  "gradientMode": "none",
  2098                  "hideFrom": {
  2099                    "legend": false,
  2100                    "tooltip": false,
  2101                    "viz": false
  2102                  },
  2103                  "lineInterpolation": "linear",
  2104                  "lineWidth": 2,
  2105                  "pointSize": 5,
  2106                  "scaleDistribution": {
  2107                    "type": "linear"
  2108                  },
  2109                  "showPoints": "never",
  2110                  "spanNulls": false,
  2111                  "stacking": {
  2112                    "group": "A",
  2113                    "mode": "none"
  2114                  },
  2115                  "thresholdsStyle": {
  2116                    "mode": "off"
  2117                  }
  2118                },
  2119                "links": [],
  2120                "mappings": [],
  2121                "min": 0,
  2122                "thresholds": {
  2123                  "mode": "absolute",
  2124                  "steps": [
  2125                    {
  2126                      "color": "green"
  2127                    },
  2128                    {
  2129                      "color": "red",
  2130                      "value": 80
  2131                    }
  2132                  ]
  2133                },
  2134                "unit": "short"
  2135              },
  2136              "overrides": []
  2137            },
  2138            "gridPos": {
  2139              "h": 8,
  2140              "w": 12,
  2141              "x": 0,
  2142              "y": 48
  2143            },
  2144            "id": 432,
  2145            "links": [],
  2146            "options": {
  2147              "legend": {
  2148                "calcs": [
  2149                  "mean",
  2150                  "lastNotNull",
  2151                  "max",
  2152                  "min"
  2153                ],
  2154                "displayMode": "table",
  2155                "placement": "bottom",
  2156                "showLegend": true
  2157              },
  2158              "tooltip": {
  2159                "mode": "multi",
  2160                "sort": "none"
  2161              }
  2162            },
  2163            "pluginVersion": "9.2.4",
  2164            "targets": [
  2165              {
  2166                "calculatedInterval": "2m",
  2167                "datasource": {
  2168                  "uid": "$datasource"
  2169                },
  2170                "datasourceErrors": {},
  2171                "editorMode": "code",
  2172                "errors": {},
  2173                "exemplar": false,
  2174                "expr": "rate(pg_stat_user_tables_idx_scan_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  2175                "format": "time_series",
  2176                "instant": false,
  2177                "interval": "",
  2178                "intervalFactor": 1,
  2179                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}} | {{relname}}",
  2180                "metric": "",
  2181                "range": true,
  2182                "refId": "A",
  2183                "step": 20
  2184              }
  2185            ],
  2186            "title": "Index Scans Per Second",
  2187            "type": "timeseries"
  2188          },
  2189          {
  2190            "datasource": {
  2191              "type": "prometheus",
  2192              "uid": "$datasource"
  2193            },
  2194            "description": "",
  2195            "fieldConfig": {
  2196              "defaults": {
  2197                "color": {
  2198                  "mode": "palette-classic"
  2199                },
  2200                "custom": {
  2201                  "axisCenteredZero": false,
  2202                  "axisColorMode": "text",
  2203                  "axisLabel": "",
  2204                  "axisPlacement": "auto",
  2205                  "barAlignment": 0,
  2206                  "drawStyle": "line",
  2207                  "fillOpacity": 20,
  2208                  "gradientMode": "none",
  2209                  "hideFrom": {
  2210                    "legend": false,
  2211                    "tooltip": false,
  2212                    "viz": false
  2213                  },
  2214                  "lineInterpolation": "linear",
  2215                  "lineWidth": 2,
  2216                  "pointSize": 5,
  2217                  "scaleDistribution": {
  2218                    "type": "linear"
  2219                  },
  2220                  "showPoints": "never",
  2221                  "spanNulls": false,
  2222                  "stacking": {
  2223                    "group": "A",
  2224                    "mode": "none"
  2225                  },
  2226                  "thresholdsStyle": {
  2227                    "mode": "off"
  2228                  }
  2229                },
  2230                "links": [],
  2231                "mappings": [],
  2232                "min": 0,
  2233                "thresholds": {
  2234                  "mode": "absolute",
  2235                  "steps": [
  2236                    {
  2237                      "color": "green"
  2238                    },
  2239                    {
  2240                      "color": "red",
  2241                      "value": 80
  2242                    }
  2243                  ]
  2244                },
  2245                "unit": "short"
  2246              },
  2247              "overrides": []
  2248            },
  2249            "gridPos": {
  2250              "h": 8,
  2251              "w": 12,
  2252              "x": 12,
  2253              "y": 48
  2254            },
  2255            "id": 434,
  2256            "links": [],
  2257            "options": {
  2258              "legend": {
  2259                "calcs": [
  2260                  "mean",
  2261                  "lastNotNull",
  2262                  "max",
  2263                  "min"
  2264                ],
  2265                "displayMode": "table",
  2266                "placement": "bottom",
  2267                "showLegend": true
  2268              },
  2269              "tooltip": {
  2270                "mode": "multi",
  2271                "sort": "none"
  2272              }
  2273            },
  2274            "pluginVersion": "9.2.4",
  2275            "targets": [
  2276              {
  2277                "calculatedInterval": "2m",
  2278                "datasource": {
  2279                  "uid": "$datasource"
  2280                },
  2281                "datasourceErrors": {},
  2282                "editorMode": "code",
  2283                "errors": {},
  2284                "exemplar": false,
  2285                "expr": "rate(pg_stat_user_tables_idx_tup_fetch_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval]) / rate(pg_stat_user_tables_idx_scan_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  2286                "format": "time_series",
  2287                "instant": false,
  2288                "interval": "",
  2289                "intervalFactor": 1,
  2290                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}} | {{relname}}",
  2291                "metric": "",
  2292                "range": true,
  2293                "refId": "A",
  2294                "step": 20
  2295              }
  2296            ],
  2297            "title": "Average Index Tuples Fetch",
  2298            "type": "timeseries"
  2299          },
  2300          {
  2301            "datasource": {
  2302              "type": "prometheus",
  2303              "uid": "$datasource"
  2304            },
  2305            "description": "",
  2306            "fieldConfig": {
  2307              "defaults": {
  2308                "color": {
  2309                  "mode": "palette-classic"
  2310                },
  2311                "custom": {
  2312                  "axisCenteredZero": false,
  2313                  "axisColorMode": "text",
  2314                  "axisLabel": "",
  2315                  "axisPlacement": "auto",
  2316                  "barAlignment": 0,
  2317                  "drawStyle": "line",
  2318                  "fillOpacity": 20,
  2319                  "gradientMode": "none",
  2320                  "hideFrom": {
  2321                    "legend": false,
  2322                    "tooltip": false,
  2323                    "viz": false
  2324                  },
  2325                  "lineInterpolation": "linear",
  2326                  "lineWidth": 2,
  2327                  "pointSize": 5,
  2328                  "scaleDistribution": {
  2329                    "type": "linear"
  2330                  },
  2331                  "showPoints": "never",
  2332                  "spanNulls": false,
  2333                  "stacking": {
  2334                    "group": "A",
  2335                    "mode": "none"
  2336                  },
  2337                  "thresholdsStyle": {
  2338                    "mode": "off"
  2339                  }
  2340                },
  2341                "links": [],
  2342                "mappings": [],
  2343                "min": 0,
  2344                "thresholds": {
  2345                  "mode": "absolute",
  2346                  "steps": [
  2347                    {
  2348                      "color": "green"
  2349                    },
  2350                    {
  2351                      "color": "red",
  2352                      "value": 80
  2353                    }
  2354                  ]
  2355                },
  2356                "unit": "short"
  2357              },
  2358              "overrides": []
  2359            },
  2360            "gridPos": {
  2361              "h": 8,
  2362              "w": 12,
  2363              "x": 0,
  2364              "y": 56
  2365            },
  2366            "id": 433,
  2367            "links": [],
  2368            "options": {
  2369              "legend": {
  2370                "calcs": [
  2371                  "mean",
  2372                  "lastNotNull",
  2373                  "max",
  2374                  "min"
  2375                ],
  2376                "displayMode": "table",
  2377                "placement": "bottom",
  2378                "showLegend": true
  2379              },
  2380              "tooltip": {
  2381                "mode": "multi",
  2382                "sort": "none"
  2383              }
  2384            },
  2385            "pluginVersion": "9.2.4",
  2386            "targets": [
  2387              {
  2388                "calculatedInterval": "2m",
  2389                "datasource": {
  2390                  "uid": "$datasource"
  2391                },
  2392                "datasourceErrors": {},
  2393                "editorMode": "code",
  2394                "errors": {},
  2395                "exemplar": false,
  2396                "expr": "rate(pg_stat_user_tables_seq_scan_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  2397                "format": "time_series",
  2398                "instant": false,
  2399                "interval": "",
  2400                "intervalFactor": 1,
  2401                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}} | {{relname}}",
  2402                "metric": "",
  2403                "range": true,
  2404                "refId": "A",
  2405                "step": 20
  2406              }
  2407            ],
  2408            "title": "Seq Scans Per Second",
  2409            "type": "timeseries"
  2410          },
  2411          {
  2412            "datasource": {
  2413              "type": "prometheus",
  2414              "uid": "$datasource"
  2415            },
  2416            "description": "",
  2417            "fieldConfig": {
  2418              "defaults": {
  2419                "color": {
  2420                  "mode": "palette-classic"
  2421                },
  2422                "custom": {
  2423                  "axisCenteredZero": false,
  2424                  "axisColorMode": "text",
  2425                  "axisLabel": "",
  2426                  "axisPlacement": "auto",
  2427                  "barAlignment": 0,
  2428                  "drawStyle": "line",
  2429                  "fillOpacity": 20,
  2430                  "gradientMode": "none",
  2431                  "hideFrom": {
  2432                    "legend": false,
  2433                    "tooltip": false,
  2434                    "viz": false
  2435                  },
  2436                  "lineInterpolation": "linear",
  2437                  "lineWidth": 2,
  2438                  "pointSize": 5,
  2439                  "scaleDistribution": {
  2440                    "type": "linear"
  2441                  },
  2442                  "showPoints": "never",
  2443                  "spanNulls": false,
  2444                  "stacking": {
  2445                    "group": "A",
  2446                    "mode": "none"
  2447                  },
  2448                  "thresholdsStyle": {
  2449                    "mode": "off"
  2450                  }
  2451                },
  2452                "links": [],
  2453                "mappings": [],
  2454                "min": 0,
  2455                "thresholds": {
  2456                  "mode": "absolute",
  2457                  "steps": [
  2458                    {
  2459                      "color": "green"
  2460                    },
  2461                    {
  2462                      "color": "red",
  2463                      "value": 80
  2464                    }
  2465                  ]
  2466                },
  2467                "unit": "short"
  2468              },
  2469              "overrides": []
  2470            },
  2471            "gridPos": {
  2472              "h": 8,
  2473              "w": 12,
  2474              "x": 12,
  2475              "y": 56
  2476            },
  2477            "id": 435,
  2478            "links": [],
  2479            "options": {
  2480              "legend": {
  2481                "calcs": [
  2482                  "mean",
  2483                  "lastNotNull",
  2484                  "max",
  2485                  "min"
  2486                ],
  2487                "displayMode": "table",
  2488                "placement": "bottom",
  2489                "showLegend": true
  2490              },
  2491              "tooltip": {
  2492                "mode": "multi",
  2493                "sort": "none"
  2494              }
  2495            },
  2496            "pluginVersion": "9.2.4",
  2497            "targets": [
  2498              {
  2499                "calculatedInterval": "2m",
  2500                "datasource": {
  2501                  "uid": "$datasource"
  2502                },
  2503                "datasourceErrors": {},
  2504                "editorMode": "code",
  2505                "errors": {},
  2506                "exemplar": false,
  2507                "expr": "rate(pg_stat_user_tables_seq_tup_read_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval]) / rate(pg_stat_user_tables_seq_scan_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  2508                "format": "time_series",
  2509                "instant": false,
  2510                "interval": "",
  2511                "intervalFactor": 1,
  2512                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}} | {{relname}}",
  2513                "metric": "",
  2514                "range": true,
  2515                "refId": "A",
  2516                "step": 20
  2517              }
  2518            ],
  2519            "title": "Average Seq Tuples Read",
  2520            "type": "timeseries"
  2521          },
  2522          {
  2523            "datasource": {
  2524              "type": "prometheus",
  2525              "uid": "$datasource"
  2526            },
  2527            "description": "",
  2528            "fieldConfig": {
  2529              "defaults": {
  2530                "color": {
  2531                  "mode": "palette-classic"
  2532                },
  2533                "custom": {
  2534                  "axisCenteredZero": false,
  2535                  "axisColorMode": "text",
  2536                  "axisLabel": "",
  2537                  "axisPlacement": "auto",
  2538                  "barAlignment": 0,
  2539                  "drawStyle": "line",
  2540                  "fillOpacity": 20,
  2541                  "gradientMode": "none",
  2542                  "hideFrom": {
  2543                    "legend": false,
  2544                    "tooltip": false,
  2545                    "viz": false
  2546                  },
  2547                  "lineInterpolation": "linear",
  2548                  "lineWidth": 2,
  2549                  "pointSize": 5,
  2550                  "scaleDistribution": {
  2551                    "type": "linear"
  2552                  },
  2553                  "showPoints": "never",
  2554                  "spanNulls": false,
  2555                  "stacking": {
  2556                    "group": "A",
  2557                    "mode": "none"
  2558                  },
  2559                  "thresholdsStyle": {
  2560                    "mode": "off"
  2561                  }
  2562                },
  2563                "links": [],
  2564                "mappings": [],
  2565                "min": 0,
  2566                "thresholds": {
  2567                  "mode": "absolute",
  2568                  "steps": [
  2569                    {
  2570                      "color": "green"
  2571                    },
  2572                    {
  2573                      "color": "red",
  2574                      "value": 80
  2575                    }
  2576                  ]
  2577                },
  2578                "unit": "short"
  2579              },
  2580              "overrides": []
  2581            },
  2582            "gridPos": {
  2583              "h": 8,
  2584              "w": 12,
  2585              "x": 0,
  2586              "y": 64
  2587            },
  2588            "id": 436,
  2589            "links": [],
  2590            "options": {
  2591              "legend": {
  2592                "calcs": [
  2593                  "mean",
  2594                  "lastNotNull",
  2595                  "max",
  2596                  "min"
  2597                ],
  2598                "displayMode": "table",
  2599                "placement": "bottom",
  2600                "showLegend": true
  2601              },
  2602              "tooltip": {
  2603                "mode": "multi",
  2604                "sort": "none"
  2605              }
  2606            },
  2607            "pluginVersion": "9.2.4",
  2608            "targets": [
  2609              {
  2610                "calculatedInterval": "2m",
  2611                "datasource": {
  2612                  "uid": "$datasource"
  2613                },
  2614                "datasourceErrors": {},
  2615                "editorMode": "code",
  2616                "errors": {},
  2617                "exemplar": false,
  2618                "expr": "pg_stat_user_tables_n_live_tup{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}",
  2619                "format": "time_series",
  2620                "instant": false,
  2621                "interval": "",
  2622                "intervalFactor": 1,
  2623                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}} | {{relname}}",
  2624                "metric": "",
  2625                "range": true,
  2626                "refId": "A",
  2627                "step": 20
  2628              }
  2629            ],
  2630            "title": "Estimated Live Tuples",
  2631            "type": "timeseries"
  2632          },
  2633          {
  2634            "datasource": {
  2635              "type": "prometheus",
  2636              "uid": "$datasource"
  2637            },
  2638            "description": "",
  2639            "fieldConfig": {
  2640              "defaults": {
  2641                "color": {
  2642                  "mode": "palette-classic"
  2643                },
  2644                "custom": {
  2645                  "axisCenteredZero": false,
  2646                  "axisColorMode": "text",
  2647                  "axisLabel": "",
  2648                  "axisPlacement": "auto",
  2649                  "barAlignment": 0,
  2650                  "drawStyle": "line",
  2651                  "fillOpacity": 20,
  2652                  "gradientMode": "none",
  2653                  "hideFrom": {
  2654                    "legend": false,
  2655                    "tooltip": false,
  2656                    "viz": false
  2657                  },
  2658                  "lineInterpolation": "linear",
  2659                  "lineWidth": 2,
  2660                  "pointSize": 5,
  2661                  "scaleDistribution": {
  2662                    "type": "linear"
  2663                  },
  2664                  "showPoints": "never",
  2665                  "spanNulls": false,
  2666                  "stacking": {
  2667                    "group": "A",
  2668                    "mode": "none"
  2669                  },
  2670                  "thresholdsStyle": {
  2671                    "mode": "off"
  2672                  }
  2673                },
  2674                "links": [],
  2675                "mappings": [],
  2676                "min": 0,
  2677                "thresholds": {
  2678                  "mode": "absolute",
  2679                  "steps": [
  2680                    {
  2681                      "color": "green"
  2682                    },
  2683                    {
  2684                      "color": "red",
  2685                      "value": 80
  2686                    }
  2687                  ]
  2688                },
  2689                "unit": "short"
  2690              },
  2691              "overrides": []
  2692            },
  2693            "gridPos": {
  2694              "h": 8,
  2695              "w": 12,
  2696              "x": 12,
  2697              "y": 64
  2698            },
  2699            "id": 437,
  2700            "links": [],
  2701            "options": {
  2702              "legend": {
  2703                "calcs": [
  2704                  "mean",
  2705                  "lastNotNull",
  2706                  "max",
  2707                  "min"
  2708                ],
  2709                "displayMode": "table",
  2710                "placement": "bottom",
  2711                "showLegend": true
  2712              },
  2713              "tooltip": {
  2714                "mode": "multi",
  2715                "sort": "none"
  2716              }
  2717            },
  2718            "pluginVersion": "9.2.4",
  2719            "targets": [
  2720              {
  2721                "calculatedInterval": "2m",
  2722                "datasource": {
  2723                  "uid": "$datasource"
  2724                },
  2725                "datasourceErrors": {},
  2726                "editorMode": "code",
  2727                "errors": {},
  2728                "exemplar": false,
  2729                "expr": "pg_stat_user_tables_n_dead_tup{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}",
  2730                "format": "time_series",
  2731                "instant": false,
  2732                "interval": "",
  2733                "intervalFactor": 1,
  2734                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}} | {{relname}}",
  2735                "metric": "",
  2736                "range": true,
  2737                "refId": "A",
  2738                "step": 20
  2739              }
  2740            ],
  2741            "title": "Estimated Dead Tuples",
  2742            "type": "timeseries"
  2743          }
  2744        ],
  2745        "title": "Queries Per Table",
  2746        "type": "row"
  2747      },
  2748      {
  2749        "collapsed": true,
  2750        "gridPos": {
  2751          "h": 1,
  2752          "w": 24,
  2753          "x": 0,
  2754          "y": 32
  2755        },
  2756        "id": 393,
  2757        "panels": [
  2758          {
  2759            "datasource": {
  2760              "type": "prometheus",
  2761              "uid": "$datasource"
  2762            },
  2763            "description": "",
  2764            "fieldConfig": {
  2765              "defaults": {
  2766                "color": {
  2767                  "mode": "palette-classic"
  2768                },
  2769                "custom": {
  2770                  "axisCenteredZero": false,
  2771                  "axisColorMode": "text",
  2772                  "axisLabel": "",
  2773                  "axisPlacement": "auto",
  2774                  "barAlignment": 0,
  2775                  "drawStyle": "line",
  2776                  "fillOpacity": 20,
  2777                  "gradientMode": "none",
  2778                  "hideFrom": {
  2779                    "legend": false,
  2780                    "tooltip": false,
  2781                    "viz": false
  2782                  },
  2783                  "lineInterpolation": "linear",
  2784                  "lineWidth": 2,
  2785                  "pointSize": 5,
  2786                  "scaleDistribution": {
  2787                    "type": "linear"
  2788                  },
  2789                  "showPoints": "never",
  2790                  "spanNulls": false,
  2791                  "stacking": {
  2792                    "group": "A",
  2793                    "mode": "none"
  2794                  },
  2795                  "thresholdsStyle": {
  2796                    "mode": "off"
  2797                  }
  2798                },
  2799                "links": [],
  2800                "mappings": [],
  2801                "min": 0,
  2802                "thresholds": {
  2803                  "mode": "absolute",
  2804                  "steps": [
  2805                    {
  2806                      "color": "green"
  2807                    },
  2808                    {
  2809                      "color": "red",
  2810                      "value": 80
  2811                    }
  2812                  ]
  2813                },
  2814                "unit": "short"
  2815              },
  2816              "overrides": []
  2817            },
  2818            "gridPos": {
  2819              "h": 8,
  2820              "w": 12,
  2821              "x": 0,
  2822              "y": 73
  2823            },
  2824            "id": 394,
  2825            "links": [],
  2826            "options": {
  2827              "legend": {
  2828                "calcs": [
  2829                  "mean",
  2830                  "lastNotNull",
  2831                  "max",
  2832                  "min"
  2833                ],
  2834                "displayMode": "table",
  2835                "placement": "bottom",
  2836                "showLegend": true
  2837              },
  2838              "tooltip": {
  2839                "mode": "multi",
  2840                "sort": "none"
  2841              }
  2842            },
  2843            "pluginVersion": "9.2.4",
  2844            "targets": [
  2845              {
  2846                "calculatedInterval": "2m",
  2847                "datasource": {
  2848                  "uid": "$datasource"
  2849                },
  2850                "datasourceErrors": {},
  2851                "editorMode": "code",
  2852                "errors": {},
  2853                "expr": "rate(pg_stat_database_tup_fetched_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  2854                "format": "time_series",
  2855                "interval": "",
  2856                "intervalFactor": 1,
  2857                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  2858                "metric": "",
  2859                "range": true,
  2860                "refId": "A",
  2861                "step": 20
  2862              }
  2863            ],
  2864            "title": "Fetched Per Second",
  2865            "type": "timeseries"
  2866          },
  2867          {
  2868            "datasource": {
  2869              "type": "prometheus",
  2870              "uid": "$datasource"
  2871            },
  2872            "description": "",
  2873            "fieldConfig": {
  2874              "defaults": {
  2875                "color": {
  2876                  "mode": "palette-classic"
  2877                },
  2878                "custom": {
  2879                  "axisCenteredZero": false,
  2880                  "axisColorMode": "text",
  2881                  "axisLabel": "",
  2882                  "axisPlacement": "auto",
  2883                  "barAlignment": 0,
  2884                  "drawStyle": "line",
  2885                  "fillOpacity": 20,
  2886                  "gradientMode": "none",
  2887                  "hideFrom": {
  2888                    "legend": false,
  2889                    "tooltip": false,
  2890                    "viz": false
  2891                  },
  2892                  "lineInterpolation": "linear",
  2893                  "lineWidth": 2,
  2894                  "pointSize": 5,
  2895                  "scaleDistribution": {
  2896                    "type": "linear"
  2897                  },
  2898                  "showPoints": "never",
  2899                  "spanNulls": false,
  2900                  "stacking": {
  2901                    "group": "A",
  2902                    "mode": "none"
  2903                  },
  2904                  "thresholdsStyle": {
  2905                    "mode": "off"
  2906                  }
  2907                },
  2908                "links": [],
  2909                "mappings": [],
  2910                "min": 0,
  2911                "thresholds": {
  2912                  "mode": "absolute",
  2913                  "steps": [
  2914                    {
  2915                      "color": "green"
  2916                    },
  2917                    {
  2918                      "color": "red",
  2919                      "value": 80
  2920                    }
  2921                  ]
  2922                },
  2923                "unit": "short"
  2924              },
  2925              "overrides": []
  2926            },
  2927            "gridPos": {
  2928              "h": 8,
  2929              "w": 12,
  2930              "x": 12,
  2931              "y": 73
  2932            },
  2933            "id": 395,
  2934            "links": [],
  2935            "options": {
  2936              "legend": {
  2937                "calcs": [
  2938                  "mean",
  2939                  "lastNotNull",
  2940                  "max",
  2941                  "min"
  2942                ],
  2943                "displayMode": "table",
  2944                "placement": "bottom",
  2945                "showLegend": true
  2946              },
  2947              "tooltip": {
  2948                "mode": "multi",
  2949                "sort": "none"
  2950              }
  2951            },
  2952            "pluginVersion": "9.2.4",
  2953            "targets": [
  2954              {
  2955                "calculatedInterval": "2m",
  2956                "datasource": {
  2957                  "uid": "$datasource"
  2958                },
  2959                "datasourceErrors": {},
  2960                "editorMode": "code",
  2961                "errors": {},
  2962                "expr": "rate(pg_stat_database_tup_returned_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  2963                "format": "time_series",
  2964                "interval": "",
  2965                "intervalFactor": 1,
  2966                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  2967                "metric": "",
  2968                "range": true,
  2969                "refId": "A",
  2970                "step": 20
  2971              }
  2972            ],
  2973            "title": "Returned Per Second",
  2974            "type": "timeseries"
  2975          },
  2976          {
  2977            "datasource": {
  2978              "type": "prometheus",
  2979              "uid": "$datasource"
  2980            },
  2981            "description": "",
  2982            "fieldConfig": {
  2983              "defaults": {
  2984                "color": {
  2985                  "mode": "palette-classic"
  2986                },
  2987                "custom": {
  2988                  "axisCenteredZero": false,
  2989                  "axisColorMode": "text",
  2990                  "axisLabel": "",
  2991                  "axisPlacement": "auto",
  2992                  "barAlignment": 0,
  2993                  "drawStyle": "line",
  2994                  "fillOpacity": 20,
  2995                  "gradientMode": "none",
  2996                  "hideFrom": {
  2997                    "legend": false,
  2998                    "tooltip": false,
  2999                    "viz": false
  3000                  },
  3001                  "lineInterpolation": "linear",
  3002                  "lineWidth": 2,
  3003                  "pointSize": 5,
  3004                  "scaleDistribution": {
  3005                    "type": "linear"
  3006                  },
  3007                  "showPoints": "never",
  3008                  "spanNulls": false,
  3009                  "stacking": {
  3010                    "group": "A",
  3011                    "mode": "none"
  3012                  },
  3013                  "thresholdsStyle": {
  3014                    "mode": "off"
  3015                  }
  3016                },
  3017                "links": [],
  3018                "mappings": [],
  3019                "min": 0,
  3020                "thresholds": {
  3021                  "mode": "absolute",
  3022                  "steps": [
  3023                    {
  3024                      "color": "green"
  3025                    },
  3026                    {
  3027                      "color": "red",
  3028                      "value": 80
  3029                    }
  3030                  ]
  3031                },
  3032                "unit": "short"
  3033              },
  3034              "overrides": []
  3035            },
  3036            "gridPos": {
  3037              "h": 8,
  3038              "w": 12,
  3039              "x": 0,
  3040              "y": 81
  3041            },
  3042            "id": 396,
  3043            "links": [],
  3044            "options": {
  3045              "legend": {
  3046                "calcs": [
  3047                  "mean",
  3048                  "lastNotNull",
  3049                  "max",
  3050                  "min"
  3051                ],
  3052                "displayMode": "table",
  3053                "placement": "bottom",
  3054                "showLegend": true
  3055              },
  3056              "tooltip": {
  3057                "mode": "multi",
  3058                "sort": "none"
  3059              }
  3060            },
  3061            "pluginVersion": "9.2.4",
  3062            "targets": [
  3063              {
  3064                "calculatedInterval": "2m",
  3065                "datasource": {
  3066                  "uid": "$datasource"
  3067                },
  3068                "datasourceErrors": {},
  3069                "editorMode": "code",
  3070                "errors": {},
  3071                "expr": "rate(pg_stat_database_tup_inserted_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  3072                "format": "time_series",
  3073                "interval": "",
  3074                "intervalFactor": 1,
  3075                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  3076                "metric": "",
  3077                "range": true,
  3078                "refId": "A",
  3079                "step": 20
  3080              }
  3081            ],
  3082            "title": "Inserted Per Second",
  3083            "type": "timeseries"
  3084          },
  3085          {
  3086            "datasource": {
  3087              "type": "prometheus",
  3088              "uid": "$datasource"
  3089            },
  3090            "description": "",
  3091            "fieldConfig": {
  3092              "defaults": {
  3093                "color": {
  3094                  "mode": "palette-classic"
  3095                },
  3096                "custom": {
  3097                  "axisCenteredZero": false,
  3098                  "axisColorMode": "text",
  3099                  "axisLabel": "",
  3100                  "axisPlacement": "auto",
  3101                  "barAlignment": 0,
  3102                  "drawStyle": "line",
  3103                  "fillOpacity": 20,
  3104                  "gradientMode": "none",
  3105                  "hideFrom": {
  3106                    "legend": false,
  3107                    "tooltip": false,
  3108                    "viz": false
  3109                  },
  3110                  "lineInterpolation": "linear",
  3111                  "lineWidth": 2,
  3112                  "pointSize": 5,
  3113                  "scaleDistribution": {
  3114                    "type": "linear"
  3115                  },
  3116                  "showPoints": "never",
  3117                  "spanNulls": false,
  3118                  "stacking": {
  3119                    "group": "A",
  3120                    "mode": "none"
  3121                  },
  3122                  "thresholdsStyle": {
  3123                    "mode": "off"
  3124                  }
  3125                },
  3126                "links": [],
  3127                "mappings": [],
  3128                "min": 0,
  3129                "thresholds": {
  3130                  "mode": "absolute",
  3131                  "steps": [
  3132                    {
  3133                      "color": "green"
  3134                    },
  3135                    {
  3136                      "color": "red",
  3137                      "value": 80
  3138                    }
  3139                  ]
  3140                },
  3141                "unit": "short"
  3142              },
  3143              "overrides": []
  3144            },
  3145            "gridPos": {
  3146              "h": 8,
  3147              "w": 12,
  3148              "x": 12,
  3149              "y": 81
  3150            },
  3151            "id": 397,
  3152            "links": [],
  3153            "options": {
  3154              "legend": {
  3155                "calcs": [
  3156                  "mean",
  3157                  "lastNotNull",
  3158                  "max",
  3159                  "min"
  3160                ],
  3161                "displayMode": "table",
  3162                "placement": "bottom",
  3163                "showLegend": true
  3164              },
  3165              "tooltip": {
  3166                "mode": "multi",
  3167                "sort": "none"
  3168              }
  3169            },
  3170            "pluginVersion": "9.2.4",
  3171            "targets": [
  3172              {
  3173                "calculatedInterval": "2m",
  3174                "datasource": {
  3175                  "uid": "$datasource"
  3176                },
  3177                "datasourceErrors": {},
  3178                "editorMode": "code",
  3179                "errors": {},
  3180                "expr": "rate(pg_stat_database_tup_updated_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  3181                "format": "time_series",
  3182                "interval": "",
  3183                "intervalFactor": 1,
  3184                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  3185                "metric": "",
  3186                "range": true,
  3187                "refId": "A",
  3188                "step": 20
  3189              }
  3190            ],
  3191            "title": "Updated Per Second",
  3192            "type": "timeseries"
  3193          },
  3194          {
  3195            "datasource": {
  3196              "type": "prometheus",
  3197              "uid": "$datasource"
  3198            },
  3199            "description": "",
  3200            "fieldConfig": {
  3201              "defaults": {
  3202                "color": {
  3203                  "mode": "palette-classic"
  3204                },
  3205                "custom": {
  3206                  "axisCenteredZero": false,
  3207                  "axisColorMode": "text",
  3208                  "axisLabel": "",
  3209                  "axisPlacement": "auto",
  3210                  "barAlignment": 0,
  3211                  "drawStyle": "line",
  3212                  "fillOpacity": 20,
  3213                  "gradientMode": "none",
  3214                  "hideFrom": {
  3215                    "legend": false,
  3216                    "tooltip": false,
  3217                    "viz": false
  3218                  },
  3219                  "lineInterpolation": "linear",
  3220                  "lineWidth": 2,
  3221                  "pointSize": 5,
  3222                  "scaleDistribution": {
  3223                    "type": "linear"
  3224                  },
  3225                  "showPoints": "never",
  3226                  "spanNulls": false,
  3227                  "stacking": {
  3228                    "group": "A",
  3229                    "mode": "none"
  3230                  },
  3231                  "thresholdsStyle": {
  3232                    "mode": "off"
  3233                  }
  3234                },
  3235                "links": [],
  3236                "mappings": [],
  3237                "min": 0,
  3238                "thresholds": {
  3239                  "mode": "absolute",
  3240                  "steps": [
  3241                    {
  3242                      "color": "green"
  3243                    },
  3244                    {
  3245                      "color": "red",
  3246                      "value": 80
  3247                    }
  3248                  ]
  3249                },
  3250                "unit": "short"
  3251              },
  3252              "overrides": []
  3253            },
  3254            "gridPos": {
  3255              "h": 8,
  3256              "w": 12,
  3257              "x": 0,
  3258              "y": 89
  3259            },
  3260            "id": 398,
  3261            "links": [],
  3262            "options": {
  3263              "legend": {
  3264                "calcs": [
  3265                  "mean",
  3266                  "lastNotNull",
  3267                  "max",
  3268                  "min"
  3269                ],
  3270                "displayMode": "table",
  3271                "placement": "bottom",
  3272                "showLegend": true
  3273              },
  3274              "tooltip": {
  3275                "mode": "multi",
  3276                "sort": "none"
  3277              }
  3278            },
  3279            "pluginVersion": "9.2.4",
  3280            "targets": [
  3281              {
  3282                "calculatedInterval": "2m",
  3283                "datasource": {
  3284                  "uid": "$datasource"
  3285                },
  3286                "datasourceErrors": {},
  3287                "editorMode": "code",
  3288                "errors": {},
  3289                "expr": "rate(pg_stat_database_tup_deleted_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  3290                "format": "time_series",
  3291                "interval": "",
  3292                "intervalFactor": 1,
  3293                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  3294                "metric": "",
  3295                "range": true,
  3296                "refId": "A",
  3297                "step": 20
  3298              }
  3299            ],
  3300            "title": "Deleted Per Second",
  3301            "type": "timeseries"
  3302          },
  3303          {
  3304            "datasource": {
  3305              "type": "prometheus",
  3306              "uid": "$datasource"
  3307            },
  3308            "description": "",
  3309            "fieldConfig": {
  3310              "defaults": {
  3311                "color": {
  3312                  "mode": "palette-classic"
  3313                },
  3314                "custom": {
  3315                  "axisCenteredZero": false,
  3316                  "axisColorMode": "text",
  3317                  "axisLabel": "",
  3318                  "axisPlacement": "auto",
  3319                  "barAlignment": 0,
  3320                  "drawStyle": "line",
  3321                  "fillOpacity": 20,
  3322                  "gradientMode": "none",
  3323                  "hideFrom": {
  3324                    "legend": false,
  3325                    "tooltip": false,
  3326                    "viz": false
  3327                  },
  3328                  "lineInterpolation": "linear",
  3329                  "lineWidth": 2,
  3330                  "pointSize": 5,
  3331                  "scaleDistribution": {
  3332                    "type": "linear"
  3333                  },
  3334                  "showPoints": "never",
  3335                  "spanNulls": false,
  3336                  "stacking": {
  3337                    "group": "A",
  3338                    "mode": "none"
  3339                  },
  3340                  "thresholdsStyle": {
  3341                    "mode": "off"
  3342                  }
  3343                },
  3344                "links": [],
  3345                "mappings": [],
  3346                "min": 0,
  3347                "thresholds": {
  3348                  "mode": "absolute",
  3349                  "steps": [
  3350                    {
  3351                      "color": "green"
  3352                    },
  3353                    {
  3354                      "color": "red",
  3355                      "value": 80
  3356                    }
  3357                  ]
  3358                },
  3359                "unit": "bytes"
  3360              },
  3361              "overrides": []
  3362            },
  3363            "gridPos": {
  3364              "h": 8,
  3365              "w": 12,
  3366              "x": 12,
  3367              "y": 89
  3368            },
  3369            "id": 407,
  3370            "links": [],
  3371            "options": {
  3372              "legend": {
  3373                "calcs": [
  3374                  "mean",
  3375                  "lastNotNull",
  3376                  "max",
  3377                  "min"
  3378                ],
  3379                "displayMode": "table",
  3380                "placement": "bottom",
  3381                "showLegend": true
  3382              },
  3383              "tooltip": {
  3384                "mode": "multi",
  3385                "sort": "none"
  3386              }
  3387            },
  3388            "pluginVersion": "9.2.4",
  3389            "targets": [
  3390              {
  3391                "calculatedInterval": "2m",
  3392                "datasource": {
  3393                  "uid": "$datasource"
  3394                },
  3395                "datasourceErrors": {},
  3396                "editorMode": "code",
  3397                "errors": {},
  3398                "expr": "rate(pg_stat_database_temp_bytes_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  3399                "format": "time_series",
  3400                "interval": "",
  3401                "intervalFactor": 1,
  3402                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  3403                "metric": "",
  3404                "range": true,
  3405                "refId": "A",
  3406                "step": 20
  3407              }
  3408            ],
  3409            "title": "Data Written to Temp Files Per Second",
  3410            "type": "timeseries"
  3411          },
  3412          {
  3413            "datasource": {
  3414              "type": "prometheus",
  3415              "uid": "$datasource"
  3416            },
  3417            "description": "",
  3418            "fieldConfig": {
  3419              "defaults": {
  3420                "color": {
  3421                  "mode": "palette-classic"
  3422                },
  3423                "custom": {
  3424                  "axisCenteredZero": false,
  3425                  "axisColorMode": "text",
  3426                  "axisLabel": "",
  3427                  "axisPlacement": "auto",
  3428                  "barAlignment": 0,
  3429                  "drawStyle": "line",
  3430                  "fillOpacity": 20,
  3431                  "gradientMode": "none",
  3432                  "hideFrom": {
  3433                    "legend": false,
  3434                    "tooltip": false,
  3435                    "viz": false
  3436                  },
  3437                  "lineInterpolation": "linear",
  3438                  "lineWidth": 2,
  3439                  "pointSize": 5,
  3440                  "scaleDistribution": {
  3441                    "type": "linear"
  3442                  },
  3443                  "showPoints": "never",
  3444                  "spanNulls": false,
  3445                  "stacking": {
  3446                    "group": "A",
  3447                    "mode": "none"
  3448                  },
  3449                  "thresholdsStyle": {
  3450                    "mode": "off"
  3451                  }
  3452                },
  3453                "links": [],
  3454                "mappings": [],
  3455                "min": 0,
  3456                "thresholds": {
  3457                  "mode": "absolute",
  3458                  "steps": [
  3459                    {
  3460                      "color": "green"
  3461                    },
  3462                    {
  3463                      "color": "red",
  3464                      "value": 80
  3465                    }
  3466                  ]
  3467                },
  3468                "unit": "short"
  3469              },
  3470              "overrides": []
  3471            },
  3472            "gridPos": {
  3473              "h": 8,
  3474              "w": 12,
  3475              "x": 0,
  3476              "y": 97
  3477            },
  3478            "id": 406,
  3479            "links": [],
  3480            "options": {
  3481              "legend": {
  3482                "calcs": [
  3483                  "mean",
  3484                  "lastNotNull",
  3485                  "max",
  3486                  "min"
  3487                ],
  3488                "displayMode": "table",
  3489                "placement": "bottom",
  3490                "showLegend": true
  3491              },
  3492              "tooltip": {
  3493                "mode": "multi",
  3494                "sort": "none"
  3495              }
  3496            },
  3497            "pluginVersion": "9.2.4",
  3498            "targets": [
  3499              {
  3500                "calculatedInterval": "2m",
  3501                "datasource": {
  3502                  "uid": "$datasource"
  3503                },
  3504                "datasourceErrors": {},
  3505                "editorMode": "code",
  3506                "errors": {},
  3507                "expr": "rate(pg_stat_database_temp_files_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  3508                "format": "time_series",
  3509                "interval": "",
  3510                "intervalFactor": 1,
  3511                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  3512                "metric": "",
  3513                "range": true,
  3514                "refId": "A",
  3515                "step": 20
  3516              }
  3517            ],
  3518            "title": "Temp Files Per Second",
  3519            "type": "timeseries"
  3520          }
  3521        ],
  3522        "title": "Tuples Per Database",
  3523        "type": "row"
  3524      },
  3525      {
  3526        "collapsed": true,
  3527        "gridPos": {
  3528          "h": 1,
  3529          "w": 24,
  3530          "x": 0,
  3531          "y": 33
  3532        },
  3533        "id": 514,
  3534        "panels": [
  3535          {
  3536            "datasource": {
  3537              "type": "prometheus",
  3538              "uid": "$datasource"
  3539            },
  3540            "description": "",
  3541            "fieldConfig": {
  3542              "defaults": {
  3543                "color": {
  3544                  "mode": "palette-classic"
  3545                },
  3546                "custom": {
  3547                  "axisCenteredZero": false,
  3548                  "axisColorMode": "text",
  3549                  "axisLabel": "",
  3550                  "axisPlacement": "auto",
  3551                  "barAlignment": 0,
  3552                  "drawStyle": "line",
  3553                  "fillOpacity": 20,
  3554                  "gradientMode": "none",
  3555                  "hideFrom": {
  3556                    "legend": false,
  3557                    "tooltip": false,
  3558                    "viz": false
  3559                  },
  3560                  "lineInterpolation": "linear",
  3561                  "lineWidth": 2,
  3562                  "pointSize": 5,
  3563                  "scaleDistribution": {
  3564                    "type": "linear"
  3565                  },
  3566                  "showPoints": "never",
  3567                  "spanNulls": false,
  3568                  "stacking": {
  3569                    "group": "A",
  3570                    "mode": "none"
  3571                  },
  3572                  "thresholdsStyle": {
  3573                    "mode": "off"
  3574                  }
  3575                },
  3576                "links": [],
  3577                "mappings": [],
  3578                "min": 0,
  3579                "thresholds": {
  3580                  "mode": "absolute",
  3581                  "steps": [
  3582                    {
  3583                      "color": "green"
  3584                    },
  3585                    {
  3586                      "color": "red",
  3587                      "value": 80
  3588                    }
  3589                  ]
  3590                },
  3591                "unit": "short"
  3592              },
  3593              "overrides": []
  3594            },
  3595            "gridPos": {
  3596              "h": 8,
  3597              "w": 12,
  3598              "x": 0,
  3599              "y": 106
  3600            },
  3601            "id": 389,
  3602            "links": [],
  3603            "options": {
  3604              "legend": {
  3605                "calcs": [
  3606                  "mean",
  3607                  "lastNotNull",
  3608                  "max",
  3609                  "min"
  3610                ],
  3611                "displayMode": "table",
  3612                "placement": "bottom",
  3613                "showLegend": true
  3614              },
  3615              "tooltip": {
  3616                "mode": "multi",
  3617                "sort": "none"
  3618              }
  3619            },
  3620            "pluginVersion": "9.2.4",
  3621            "targets": [
  3622              {
  3623                "calculatedInterval": "2m",
  3624                "datasource": {
  3625                  "uid": "$datasource"
  3626                },
  3627                "datasourceErrors": {},
  3628                "editorMode": "code",
  3629                "errors": {},
  3630                "expr": "rate(pg_stat_database_xact_commit_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  3631                "format": "time_series",
  3632                "interval": "",
  3633                "intervalFactor": 1,
  3634                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  3635                "metric": "",
  3636                "range": true,
  3637                "refId": "A",
  3638                "step": 20
  3639              }
  3640            ],
  3641            "title": "Commits Per Second",
  3642            "type": "timeseries"
  3643          },
  3644          {
  3645            "datasource": {
  3646              "type": "prometheus",
  3647              "uid": "$datasource"
  3648            },
  3649            "description": "",
  3650            "fieldConfig": {
  3651              "defaults": {
  3652                "color": {
  3653                  "mode": "palette-classic"
  3654                },
  3655                "custom": {
  3656                  "axisCenteredZero": false,
  3657                  "axisColorMode": "text",
  3658                  "axisLabel": "",
  3659                  "axisPlacement": "auto",
  3660                  "barAlignment": 0,
  3661                  "drawStyle": "line",
  3662                  "fillOpacity": 20,
  3663                  "gradientMode": "none",
  3664                  "hideFrom": {
  3665                    "legend": false,
  3666                    "tooltip": false,
  3667                    "viz": false
  3668                  },
  3669                  "lineInterpolation": "linear",
  3670                  "lineWidth": 2,
  3671                  "pointSize": 5,
  3672                  "scaleDistribution": {
  3673                    "type": "linear"
  3674                  },
  3675                  "showPoints": "never",
  3676                  "spanNulls": false,
  3677                  "stacking": {
  3678                    "group": "A",
  3679                    "mode": "none"
  3680                  },
  3681                  "thresholdsStyle": {
  3682                    "mode": "off"
  3683                  }
  3684                },
  3685                "links": [],
  3686                "mappings": [],
  3687                "min": 0,
  3688                "thresholds": {
  3689                  "mode": "absolute",
  3690                  "steps": [
  3691                    {
  3692                      "color": "green"
  3693                    },
  3694                    {
  3695                      "color": "red",
  3696                      "value": 80
  3697                    }
  3698                  ]
  3699                },
  3700                "unit": "short"
  3701              },
  3702              "overrides": []
  3703            },
  3704            "gridPos": {
  3705              "h": 8,
  3706              "w": 12,
  3707              "x": 12,
  3708              "y": 106
  3709            },
  3710            "id": 390,
  3711            "links": [],
  3712            "options": {
  3713              "legend": {
  3714                "calcs": [
  3715                  "mean",
  3716                  "lastNotNull",
  3717                  "max",
  3718                  "min"
  3719                ],
  3720                "displayMode": "table",
  3721                "placement": "bottom",
  3722                "showLegend": true
  3723              },
  3724              "tooltip": {
  3725                "mode": "multi",
  3726                "sort": "none"
  3727              }
  3728            },
  3729            "pluginVersion": "9.2.4",
  3730            "targets": [
  3731              {
  3732                "calculatedInterval": "2m",
  3733                "datasource": {
  3734                  "uid": "$datasource"
  3735                },
  3736                "datasourceErrors": {},
  3737                "editorMode": "code",
  3738                "errors": {},
  3739                "expr": "rate(pg_stat_database_xact_rollback_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  3740                "format": "time_series",
  3741                "interval": "",
  3742                "intervalFactor": 1,
  3743                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  3744                "metric": "",
  3745                "range": true,
  3746                "refId": "A",
  3747                "step": 20
  3748              }
  3749            ],
  3750            "title": "Rollbacks Per Second",
  3751            "type": "timeseries"
  3752          },
  3753          {
  3754            "datasource": {
  3755              "type": "prometheus",
  3756              "uid": "$datasource"
  3757            },
  3758            "description": "",
  3759            "fieldConfig": {
  3760              "defaults": {
  3761                "color": {
  3762                  "mode": "palette-classic"
  3763                },
  3764                "custom": {
  3765                  "axisCenteredZero": false,
  3766                  "axisColorMode": "text",
  3767                  "axisLabel": "",
  3768                  "axisPlacement": "auto",
  3769                  "barAlignment": 0,
  3770                  "drawStyle": "line",
  3771                  "fillOpacity": 20,
  3772                  "gradientMode": "none",
  3773                  "hideFrom": {
  3774                    "legend": false,
  3775                    "tooltip": false,
  3776                    "viz": false
  3777                  },
  3778                  "lineInterpolation": "linear",
  3779                  "lineWidth": 2,
  3780                  "pointSize": 5,
  3781                  "scaleDistribution": {
  3782                    "type": "linear"
  3783                  },
  3784                  "showPoints": "never",
  3785                  "spanNulls": false,
  3786                  "stacking": {
  3787                    "group": "A",
  3788                    "mode": "none"
  3789                  },
  3790                  "thresholdsStyle": {
  3791                    "mode": "off"
  3792                  }
  3793                },
  3794                "links": [],
  3795                "mappings": [],
  3796                "min": 0,
  3797                "thresholds": {
  3798                  "mode": "absolute",
  3799                  "steps": [
  3800                    {
  3801                      "color": "green"
  3802                    },
  3803                    {
  3804                      "color": "red",
  3805                      "value": 80
  3806                    }
  3807                  ]
  3808                },
  3809                "unit": "s"
  3810              },
  3811              "overrides": []
  3812            },
  3813            "gridPos": {
  3814              "h": 8,
  3815              "w": 12,
  3816              "x": 0,
  3817              "y": 114
  3818            },
  3819            "id": 391,
  3820            "links": [],
  3821            "options": {
  3822              "legend": {
  3823                "calcs": [
  3824                  "mean",
  3825                  "lastNotNull",
  3826                  "max",
  3827                  "min"
  3828                ],
  3829                "displayMode": "table",
  3830                "placement": "bottom",
  3831                "showLegend": true
  3832              },
  3833              "tooltip": {
  3834                "mode": "multi",
  3835                "sort": "none"
  3836              }
  3837            },
  3838            "pluginVersion": "9.2.4",
  3839            "targets": [
  3840              {
  3841                "calculatedInterval": "2m",
  3842                "datasource": {
  3843                  "uid": "$datasource"
  3844                },
  3845                "datasourceErrors": {},
  3846                "editorMode": "code",
  3847                "errors": {},
  3848                "expr": "max without(state) (max_over_time(pg_stat_activity_max_tx_duration{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__interval]))",
  3849                "format": "time_series",
  3850                "interval": "",
  3851                "intervalFactor": 1,
  3852                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  3853                "metric": "",
  3854                "range": true,
  3855                "refId": "A",
  3856                "step": 20
  3857              }
  3858            ],
  3859            "title": "Max Duration of Transactions",
  3860            "type": "timeseries"
  3861          }
  3862        ],
  3863        "title": "Transactions Per Database",
  3864        "type": "row"
  3865      },
  3866      {
  3867        "collapsed": true,
  3868        "gridPos": {
  3869          "h": 1,
  3870          "w": 24,
  3871          "x": 0,
  3872          "y": 34
  3873        },
  3874        "id": 494,
  3875        "panels": [
  3876          {
  3877            "datasource": {
  3878              "type": "prometheus",
  3879              "uid": "$datasource"
  3880            },
  3881            "description": "",
  3882            "fieldConfig": {
  3883              "defaults": {
  3884                "color": {
  3885                  "mode": "palette-classic"
  3886                },
  3887                "custom": {
  3888                  "axisCenteredZero": false,
  3889                  "axisColorMode": "text",
  3890                  "axisLabel": "",
  3891                  "axisPlacement": "auto",
  3892                  "barAlignment": 0,
  3893                  "drawStyle": "line",
  3894                  "fillOpacity": 20,
  3895                  "gradientMode": "none",
  3896                  "hideFrom": {
  3897                    "legend": false,
  3898                    "tooltip": false,
  3899                    "viz": false
  3900                  },
  3901                  "lineInterpolation": "linear",
  3902                  "lineWidth": 2,
  3903                  "pointSize": 5,
  3904                  "scaleDistribution": {
  3905                    "type": "linear"
  3906                  },
  3907                  "showPoints": "never",
  3908                  "spanNulls": false,
  3909                  "stacking": {
  3910                    "group": "A",
  3911                    "mode": "none"
  3912                  },
  3913                  "thresholdsStyle": {
  3914                    "mode": "off"
  3915                  }
  3916                },
  3917                "links": [],
  3918                "mappings": [],
  3919                "min": 0,
  3920                "thresholds": {
  3921                  "mode": "absolute",
  3922                  "steps": [
  3923                    {
  3924                      "color": "green"
  3925                    },
  3926                    {
  3927                      "color": "red",
  3928                      "value": 80
  3929                    }
  3930                  ]
  3931                },
  3932                "unit": "short"
  3933              },
  3934              "overrides": []
  3935            },
  3936            "gridPos": {
  3937              "h": 8,
  3938              "w": 12,
  3939              "x": 0,
  3940              "y": 123
  3941            },
  3942            "id": 408,
  3943            "links": [],
  3944            "options": {
  3945              "legend": {
  3946                "calcs": [
  3947                  "mean",
  3948                  "lastNotNull",
  3949                  "max",
  3950                  "min"
  3951                ],
  3952                "displayMode": "table",
  3953                "placement": "bottom",
  3954                "showLegend": true
  3955              },
  3956              "tooltip": {
  3957                "mode": "multi",
  3958                "sort": "none"
  3959              }
  3960            },
  3961            "pluginVersion": "9.2.4",
  3962            "targets": [
  3963              {
  3964                "calculatedInterval": "2m",
  3965                "datasource": {
  3966                  "uid": "$datasource"
  3967                },
  3968                "datasourceErrors": {},
  3969                "editorMode": "code",
  3970                "errors": {},
  3971                "expr": "sum by(namespace,app_kubernetes_io_instance,pod,state) (pg_stat_activity_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
  3972                "format": "time_series",
  3973                "interval": "",
  3974                "intervalFactor": 1,
  3975                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{state}}",
  3976                "metric": "",
  3977                "range": true,
  3978                "refId": "A",
  3979                "step": 20
  3980              }
  3981            ],
  3982            "title": "Server Process By State",
  3983            "type": "timeseries"
  3984          },
  3985          {
  3986            "datasource": {
  3987              "type": "prometheus",
  3988              "uid": "$datasource"
  3989            },
  3990            "description": "",
  3991            "fieldConfig": {
  3992              "defaults": {
  3993                "color": {
  3994                  "mode": "palette-classic"
  3995                },
  3996                "custom": {
  3997                  "axisCenteredZero": false,
  3998                  "axisColorMode": "text",
  3999                  "axisLabel": "",
  4000                  "axisPlacement": "auto",
  4001                  "barAlignment": 0,
  4002                  "drawStyle": "line",
  4003                  "fillOpacity": 20,
  4004                  "gradientMode": "none",
  4005                  "hideFrom": {
  4006                    "legend": false,
  4007                    "tooltip": false,
  4008                    "viz": false
  4009                  },
  4010                  "lineInterpolation": "linear",
  4011                  "lineWidth": 2,
  4012                  "pointSize": 5,
  4013                  "scaleDistribution": {
  4014                    "type": "linear"
  4015                  },
  4016                  "showPoints": "never",
  4017                  "spanNulls": false,
  4018                  "stacking": {
  4019                    "group": "A",
  4020                    "mode": "none"
  4021                  },
  4022                  "thresholdsStyle": {
  4023                    "mode": "off"
  4024                  }
  4025                },
  4026                "links": [],
  4027                "mappings": [],
  4028                "min": 0,
  4029                "thresholds": {
  4030                  "mode": "absolute",
  4031                  "steps": [
  4032                    {
  4033                      "color": "green"
  4034                    },
  4035                    {
  4036                      "color": "red",
  4037                      "value": 80
  4038                    }
  4039                  ]
  4040                },
  4041                "unit": "short"
  4042              },
  4043              "overrides": []
  4044            },
  4045            "gridPos": {
  4046              "h": 8,
  4047              "w": 12,
  4048              "x": 12,
  4049              "y": 123
  4050            },
  4051            "id": 489,
  4052            "links": [],
  4053            "options": {
  4054              "legend": {
  4055                "calcs": [
  4056                  "mean",
  4057                  "lastNotNull",
  4058                  "max",
  4059                  "min"
  4060                ],
  4061                "displayMode": "table",
  4062                "placement": "bottom",
  4063                "showLegend": true
  4064              },
  4065              "tooltip": {
  4066                "mode": "multi",
  4067                "sort": "none"
  4068              }
  4069            },
  4070            "pluginVersion": "9.2.4",
  4071            "targets": [
  4072              {
  4073                "calculatedInterval": "2m",
  4074                "datasource": {
  4075                  "uid": "$datasource"
  4076                },
  4077                "datasourceErrors": {},
  4078                "editorMode": "code",
  4079                "errors": {},
  4080                "expr": "sum by(namespace,app_kubernetes_io_instance,pod,backend_type) (pg_stat_activity_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
  4081                "format": "time_series",
  4082                "interval": "",
  4083                "intervalFactor": 1,
  4084                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{backend_type}}",
  4085                "metric": "",
  4086                "range": true,
  4087                "refId": "A",
  4088                "step": 20
  4089              }
  4090            ],
  4091            "title": "Server Process By Backend Type",
  4092            "type": "timeseries"
  4093          },
  4094          {
  4095            "datasource": {
  4096              "type": "prometheus",
  4097              "uid": "$datasource"
  4098            },
  4099            "description": "",
  4100            "fieldConfig": {
  4101              "defaults": {
  4102                "color": {
  4103                  "mode": "palette-classic"
  4104                },
  4105                "custom": {
  4106                  "axisCenteredZero": false,
  4107                  "axisColorMode": "text",
  4108                  "axisLabel": "",
  4109                  "axisPlacement": "auto",
  4110                  "barAlignment": 0,
  4111                  "drawStyle": "line",
  4112                  "fillOpacity": 20,
  4113                  "gradientMode": "none",
  4114                  "hideFrom": {
  4115                    "legend": false,
  4116                    "tooltip": false,
  4117                    "viz": false
  4118                  },
  4119                  "lineInterpolation": "linear",
  4120                  "lineWidth": 2,
  4121                  "pointSize": 5,
  4122                  "scaleDistribution": {
  4123                    "type": "linear"
  4124                  },
  4125                  "showPoints": "never",
  4126                  "spanNulls": false,
  4127                  "stacking": {
  4128                    "group": "A",
  4129                    "mode": "none"
  4130                  },
  4131                  "thresholdsStyle": {
  4132                    "mode": "off"
  4133                  }
  4134                },
  4135                "links": [],
  4136                "mappings": [],
  4137                "min": 0,
  4138                "thresholds": {
  4139                  "mode": "absolute",
  4140                  "steps": [
  4141                    {
  4142                      "color": "green"
  4143                    },
  4144                    {
  4145                      "color": "red",
  4146                      "value": 80
  4147                    }
  4148                  ]
  4149                },
  4150                "unit": "short"
  4151              },
  4152              "overrides": []
  4153            },
  4154            "gridPos": {
  4155              "h": 8,
  4156              "w": 12,
  4157              "x": 0,
  4158              "y": 131
  4159            },
  4160            "id": 490,
  4161            "links": [],
  4162            "options": {
  4163              "legend": {
  4164                "calcs": [
  4165                  "mean",
  4166                  "lastNotNull",
  4167                  "max",
  4168                  "min"
  4169                ],
  4170                "displayMode": "table",
  4171                "placement": "bottom",
  4172                "showLegend": true
  4173              },
  4174              "tooltip": {
  4175                "mode": "multi",
  4176                "sort": "none"
  4177              }
  4178            },
  4179            "pluginVersion": "9.2.4",
  4180            "targets": [
  4181              {
  4182                "calculatedInterval": "2m",
  4183                "datasource": {
  4184                  "uid": "$datasource"
  4185                },
  4186                "datasourceErrors": {},
  4187                "editorMode": "code",
  4188                "errors": {},
  4189                "expr": "sum by(namespace,app_kubernetes_io_instance,pod,wait_event_type) (pg_stat_activity_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
  4190                "format": "time_series",
  4191                "interval": "",
  4192                "intervalFactor": 1,
  4193                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{wait_event_type}}",
  4194                "metric": "",
  4195                "range": true,
  4196                "refId": "A",
  4197                "step": 20
  4198              }
  4199            ],
  4200            "title": "Server Process By Wait Event Type",
  4201            "type": "timeseries"
  4202          },
  4203          {
  4204            "datasource": {
  4205              "type": "prometheus",
  4206              "uid": "$datasource"
  4207            },
  4208            "description": "",
  4209            "fieldConfig": {
  4210              "defaults": {
  4211                "color": {
  4212                  "mode": "palette-classic"
  4213                },
  4214                "custom": {
  4215                  "axisCenteredZero": false,
  4216                  "axisColorMode": "text",
  4217                  "axisLabel": "",
  4218                  "axisPlacement": "auto",
  4219                  "barAlignment": 0,
  4220                  "drawStyle": "line",
  4221                  "fillOpacity": 20,
  4222                  "gradientMode": "none",
  4223                  "hideFrom": {
  4224                    "legend": false,
  4225                    "tooltip": false,
  4226                    "viz": false
  4227                  },
  4228                  "lineInterpolation": "linear",
  4229                  "lineWidth": 2,
  4230                  "pointSize": 5,
  4231                  "scaleDistribution": {
  4232                    "type": "linear"
  4233                  },
  4234                  "showPoints": "never",
  4235                  "spanNulls": false,
  4236                  "stacking": {
  4237                    "group": "A",
  4238                    "mode": "none"
  4239                  },
  4240                  "thresholdsStyle": {
  4241                    "mode": "off"
  4242                  }
  4243                },
  4244                "links": [],
  4245                "mappings": [],
  4246                "min": 0,
  4247                "thresholds": {
  4248                  "mode": "absolute",
  4249                  "steps": [
  4250                    {
  4251                      "color": "green"
  4252                    },
  4253                    {
  4254                      "color": "red",
  4255                      "value": 80
  4256                    }
  4257                  ]
  4258                },
  4259                "unit": "short"
  4260              },
  4261              "overrides": []
  4262            },
  4263            "gridPos": {
  4264              "h": 8,
  4265              "w": 12,
  4266              "x": 12,
  4267              "y": 131
  4268            },
  4269            "id": 491,
  4270            "links": [],
  4271            "options": {
  4272              "legend": {
  4273                "calcs": [
  4274                  "mean",
  4275                  "lastNotNull",
  4276                  "max",
  4277                  "min"
  4278                ],
  4279                "displayMode": "table",
  4280                "placement": "bottom",
  4281                "showLegend": true
  4282              },
  4283              "tooltip": {
  4284                "mode": "multi",
  4285                "sort": "none"
  4286              }
  4287            },
  4288            "pluginVersion": "9.2.4",
  4289            "targets": [
  4290              {
  4291                "calculatedInterval": "2m",
  4292                "datasource": {
  4293                  "uid": "$datasource"
  4294                },
  4295                "datasourceErrors": {},
  4296                "editorMode": "code",
  4297                "errors": {},
  4298                "expr": "sum by(namespace,app_kubernetes_io_instance,pod,wait_event_type,wait_event) (pg_stat_activity_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
  4299                "format": "time_series",
  4300                "interval": "",
  4301                "intervalFactor": 1,
  4302                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{wait_event_type}} | {{wait_event}}",
  4303                "metric": "",
  4304                "range": true,
  4305                "refId": "A",
  4306                "step": 20
  4307              }
  4308            ],
  4309            "title": "Server Process By Wait Event",
  4310            "type": "timeseries"
  4311          },
  4312          {
  4313            "datasource": {
  4314              "type": "prometheus",
  4315              "uid": "$datasource"
  4316            },
  4317            "description": "",
  4318            "fieldConfig": {
  4319              "defaults": {
  4320                "color": {
  4321                  "mode": "palette-classic"
  4322                },
  4323                "custom": {
  4324                  "axisCenteredZero": false,
  4325                  "axisColorMode": "text",
  4326                  "axisLabel": "",
  4327                  "axisPlacement": "auto",
  4328                  "barAlignment": 0,
  4329                  "drawStyle": "line",
  4330                  "fillOpacity": 20,
  4331                  "gradientMode": "none",
  4332                  "hideFrom": {
  4333                    "legend": false,
  4334                    "tooltip": false,
  4335                    "viz": false
  4336                  },
  4337                  "lineInterpolation": "linear",
  4338                  "lineWidth": 2,
  4339                  "pointSize": 5,
  4340                  "scaleDistribution": {
  4341                    "type": "linear"
  4342                  },
  4343                  "showPoints": "never",
  4344                  "spanNulls": false,
  4345                  "stacking": {
  4346                    "group": "A",
  4347                    "mode": "none"
  4348                  },
  4349                  "thresholdsStyle": {
  4350                    "mode": "off"
  4351                  }
  4352                },
  4353                "links": [],
  4354                "mappings": [],
  4355                "min": 0,
  4356                "thresholds": {
  4357                  "mode": "absolute",
  4358                  "steps": [
  4359                    {
  4360                      "color": "green"
  4361                    },
  4362                    {
  4363                      "color": "red",
  4364                      "value": 80
  4365                    }
  4366                  ]
  4367                },
  4368                "unit": "short"
  4369              },
  4370              "overrides": []
  4371            },
  4372            "gridPos": {
  4373              "h": 8,
  4374              "w": 12,
  4375              "x": 0,
  4376              "y": 139
  4377            },
  4378            "id": 492,
  4379            "links": [],
  4380            "options": {
  4381              "legend": {
  4382                "calcs": [
  4383                  "mean",
  4384                  "lastNotNull",
  4385                  "max",
  4386                  "min"
  4387                ],
  4388                "displayMode": "table",
  4389                "placement": "bottom",
  4390                "showLegend": true
  4391              },
  4392              "tooltip": {
  4393                "mode": "multi",
  4394                "sort": "none"
  4395              }
  4396            },
  4397            "pluginVersion": "9.2.4",
  4398            "targets": [
  4399              {
  4400                "calculatedInterval": "2m",
  4401                "datasource": {
  4402                  "uid": "$datasource"
  4403                },
  4404                "datasourceErrors": {},
  4405                "editorMode": "code",
  4406                "errors": {},
  4407                "expr": "sum by(namespace,app_kubernetes_io_instance,pod,datname) (pg_stat_activity_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
  4408                "format": "time_series",
  4409                "interval": "",
  4410                "intervalFactor": 1,
  4411                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  4412                "metric": "",
  4413                "range": true,
  4414                "refId": "A",
  4415                "step": 20
  4416              }
  4417            ],
  4418            "title": "Server Process By Database",
  4419            "type": "timeseries"
  4420          }
  4421        ],
  4422        "title": "Server Processes",
  4423        "type": "row"
  4424      },
  4425      {
  4426        "collapsed": true,
  4427        "gridPos": {
  4428          "h": 1,
  4429          "w": 24,
  4430          "x": 0,
  4431          "y": 35
  4432        },
  4433        "id": 511,
  4434        "panels": [
  4435          {
  4436            "datasource": {
  4437              "type": "prometheus",
  4438              "uid": "$datasource"
  4439            },
  4440            "description": "",
  4441            "fieldConfig": {
  4442              "defaults": {
  4443                "color": {
  4444                  "mode": "palette-classic"
  4445                },
  4446                "custom": {
  4447                  "axisCenteredZero": false,
  4448                  "axisColorMode": "text",
  4449                  "axisLabel": "",
  4450                  "axisPlacement": "auto",
  4451                  "barAlignment": 0,
  4452                  "drawStyle": "line",
  4453                  "fillOpacity": 20,
  4454                  "gradientMode": "none",
  4455                  "hideFrom": {
  4456                    "legend": false,
  4457                    "tooltip": false,
  4458                    "viz": false
  4459                  },
  4460                  "lineInterpolation": "linear",
  4461                  "lineWidth": 2,
  4462                  "pointSize": 5,
  4463                  "scaleDistribution": {
  4464                    "type": "linear"
  4465                  },
  4466                  "showPoints": "never",
  4467                  "spanNulls": false,
  4468                  "stacking": {
  4469                    "group": "A",
  4470                    "mode": "none"
  4471                  },
  4472                  "thresholdsStyle": {
  4473                    "mode": "off"
  4474                  }
  4475                },
  4476                "links": [],
  4477                "mappings": [],
  4478                "min": 0,
  4479                "thresholds": {
  4480                  "mode": "absolute",
  4481                  "steps": [
  4482                    {
  4483                      "color": "green"
  4484                    },
  4485                    {
  4486                      "color": "red",
  4487                      "value": 80
  4488                    }
  4489                  ]
  4490                },
  4491                "unit": "short"
  4492              },
  4493              "overrides": []
  4494            },
  4495            "gridPos": {
  4496              "h": 8,
  4497              "w": 12,
  4498              "x": 0,
  4499              "y": 36
  4500            },
  4501            "id": 423,
  4502            "links": [],
  4503            "options": {
  4504              "legend": {
  4505                "calcs": [
  4506                  "mean",
  4507                  "lastNotNull",
  4508                  "max",
  4509                  "min"
  4510                ],
  4511                "displayMode": "table",
  4512                "placement": "bottom",
  4513                "showLegend": true
  4514              },
  4515              "tooltip": {
  4516                "mode": "multi",
  4517                "sort": "none"
  4518              }
  4519            },
  4520            "pluginVersion": "9.2.4",
  4521            "targets": [
  4522              {
  4523                "calculatedInterval": "2m",
  4524                "datasource": {
  4525                  "uid": "$datasource"
  4526                },
  4527                "datasourceErrors": {},
  4528                "editorMode": "code",
  4529                "errors": {},
  4530                "expr": "rate(pg_stat_archiver_archived_count_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  4531                "format": "time_series",
  4532                "interval": "",
  4533                "intervalFactor": 1,
  4534                "legendFormat": "success: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4535                "metric": "",
  4536                "range": true,
  4537                "refId": "A",
  4538                "step": 20
  4539              },
  4540              {
  4541                "calculatedInterval": "2m",
  4542                "datasource": {
  4543                  "uid": "$datasource"
  4544                },
  4545                "datasourceErrors": {},
  4546                "editorMode": "code",
  4547                "errors": {},
  4548                "expr": "rate(pg_stat_archiver_failed_count_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  4549                "format": "time_series",
  4550                "hide": false,
  4551                "interval": "",
  4552                "intervalFactor": 1,
  4553                "legendFormat": "fail: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4554                "metric": "",
  4555                "range": true,
  4556                "refId": "B",
  4557                "step": 20
  4558              }
  4559            ],
  4560            "title": "WAL Files Per Second (archiver)",
  4561            "type": "timeseries"
  4562          },
  4563          {
  4564            "datasource": {
  4565              "type": "prometheus",
  4566              "uid": "$datasource"
  4567            },
  4568            "description": "",
  4569            "fieldConfig": {
  4570              "defaults": {
  4571                "color": {
  4572                  "mode": "palette-classic"
  4573                },
  4574                "custom": {
  4575                  "axisCenteredZero": false,
  4576                  "axisColorMode": "text",
  4577                  "axisLabel": "",
  4578                  "axisPlacement": "auto",
  4579                  "barAlignment": 0,
  4580                  "drawStyle": "line",
  4581                  "fillOpacity": 20,
  4582                  "gradientMode": "none",
  4583                  "hideFrom": {
  4584                    "legend": false,
  4585                    "tooltip": false,
  4586                    "viz": false
  4587                  },
  4588                  "lineInterpolation": "linear",
  4589                  "lineWidth": 2,
  4590                  "pointSize": 5,
  4591                  "scaleDistribution": {
  4592                    "type": "linear"
  4593                  },
  4594                  "showPoints": "never",
  4595                  "spanNulls": false,
  4596                  "stacking": {
  4597                    "group": "A",
  4598                    "mode": "none"
  4599                  },
  4600                  "thresholdsStyle": {
  4601                    "mode": "off"
  4602                  }
  4603                },
  4604                "links": [],
  4605                "mappings": [],
  4606                "min": 0,
  4607                "thresholds": {
  4608                  "mode": "absolute",
  4609                  "steps": [
  4610                    {
  4611                      "color": "green"
  4612                    },
  4613                    {
  4614                      "color": "red",
  4615                      "value": 80
  4616                    }
  4617                  ]
  4618                },
  4619                "unit": "bytes"
  4620              },
  4621              "overrides": []
  4622            },
  4623            "gridPos": {
  4624              "h": 8,
  4625              "w": 12,
  4626              "x": 12,
  4627              "y": 36
  4628            },
  4629            "id": 487,
  4630            "links": [],
  4631            "options": {
  4632              "legend": {
  4633                "calcs": [
  4634                  "mean",
  4635                  "lastNotNull",
  4636                  "max",
  4637                  "min"
  4638                ],
  4639                "displayMode": "table",
  4640                "placement": "bottom",
  4641                "showLegend": true
  4642              },
  4643              "tooltip": {
  4644                "mode": "multi",
  4645                "sort": "none"
  4646              }
  4647            },
  4648            "pluginVersion": "9.2.4",
  4649            "targets": [
  4650              {
  4651                "calculatedInterval": "2m",
  4652                "datasource": {
  4653                  "uid": "$datasource"
  4654                },
  4655                "datasourceErrors": {},
  4656                "editorMode": "code",
  4657                "errors": {},
  4658                "expr": "pg_wal_log_file_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"} * pg_settings_wal_segment_size_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}",
  4659                "format": "time_series",
  4660                "interval": "",
  4661                "intervalFactor": 1,
  4662                "legendFormat": "total wal disk size: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4663                "metric": "",
  4664                "range": true,
  4665                "refId": "A",
  4666                "step": 20
  4667              },
  4668              {
  4669                "calculatedInterval": "2m",
  4670                "datasource": {
  4671                  "uid": "$datasource"
  4672                },
  4673                "datasourceErrors": {},
  4674                "editorMode": "code",
  4675                "errors": {},
  4676                "expr": "pg_settings_wal_segment_size_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}",
  4677                "format": "time_series",
  4678                "hide": false,
  4679                "interval": "",
  4680                "intervalFactor": 1,
  4681                "legendFormat": "wal_segment_size: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4682                "metric": "",
  4683                "range": true,
  4684                "refId": "B",
  4685                "step": 20
  4686              }
  4687            ],
  4688            "title": "WAL Files Disk Size (archiver)",
  4689            "type": "timeseries"
  4690          },
  4691          {
  4692            "datasource": {
  4693              "type": "prometheus",
  4694              "uid": "$datasource"
  4695            },
  4696            "description": "",
  4697            "fieldConfig": {
  4698              "defaults": {
  4699                "color": {
  4700                  "mode": "palette-classic"
  4701                },
  4702                "custom": {
  4703                  "axisCenteredZero": false,
  4704                  "axisColorMode": "text",
  4705                  "axisLabel": "",
  4706                  "axisPlacement": "auto",
  4707                  "barAlignment": 0,
  4708                  "drawStyle": "line",
  4709                  "fillOpacity": 20,
  4710                  "gradientMode": "none",
  4711                  "hideFrom": {
  4712                    "legend": false,
  4713                    "tooltip": false,
  4714                    "viz": false
  4715                  },
  4716                  "lineInterpolation": "linear",
  4717                  "lineWidth": 2,
  4718                  "pointSize": 5,
  4719                  "scaleDistribution": {
  4720                    "type": "linear"
  4721                  },
  4722                  "showPoints": "never",
  4723                  "spanNulls": false,
  4724                  "stacking": {
  4725                    "group": "A",
  4726                    "mode": "none"
  4727                  },
  4728                  "thresholdsStyle": {
  4729                    "mode": "off"
  4730                  }
  4731                },
  4732                "links": [],
  4733                "mappings": [],
  4734                "min": 0,
  4735                "thresholds": {
  4736                  "mode": "absolute",
  4737                  "steps": [
  4738                    {
  4739                      "color": "green"
  4740                    },
  4741                    {
  4742                      "color": "red",
  4743                      "value": 80
  4744                    }
  4745                  ]
  4746                },
  4747                "unit": "ms"
  4748              },
  4749              "overrides": []
  4750            },
  4751            "gridPos": {
  4752              "h": 8,
  4753              "w": 12,
  4754              "x": 0,
  4755              "y": 44
  4756            },
  4757            "id": 410,
  4758            "links": [],
  4759            "options": {
  4760              "legend": {
  4761                "calcs": [
  4762                  "mean",
  4763                  "lastNotNull",
  4764                  "max",
  4765                  "min"
  4766                ],
  4767                "displayMode": "table",
  4768                "placement": "bottom",
  4769                "showLegend": true
  4770              },
  4771              "tooltip": {
  4772                "mode": "multi",
  4773                "sort": "none"
  4774              }
  4775            },
  4776            "pluginVersion": "9.2.4",
  4777            "targets": [
  4778              {
  4779                "calculatedInterval": "2m",
  4780                "datasource": {
  4781                  "uid": "$datasource"
  4782                },
  4783                "datasourceErrors": {},
  4784                "editorMode": "code",
  4785                "errors": {},
  4786                "expr": "rate(pg_stat_bgwriter_checkpoint_write_time_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  4787                "format": "time_series",
  4788                "interval": "",
  4789                "intervalFactor": 1,
  4790                "legendFormat": "Written Files to disk: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4791                "metric": "",
  4792                "range": true,
  4793                "refId": "A",
  4794                "step": 20
  4795              },
  4796              {
  4797                "calculatedInterval": "2m",
  4798                "datasource": {
  4799                  "uid": "$datasource"
  4800                },
  4801                "datasourceErrors": {},
  4802                "editorMode": "code",
  4803                "errors": {},
  4804                "expr": "rate(pg_stat_bgwriter_checkpoint_sync_time_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  4805                "format": "time_series",
  4806                "hide": false,
  4807                "interval": "",
  4808                "intervalFactor": 1,
  4809                "legendFormat": "Files Synchronization to disk: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4810                "metric": "",
  4811                "range": true,
  4812                "refId": "B",
  4813                "step": 20
  4814              }
  4815            ],
  4816            "title": "Checkpoints Time Per Second (bgwriter)",
  4817            "type": "timeseries"
  4818          },
  4819          {
  4820            "datasource": {
  4821              "type": "prometheus",
  4822              "uid": "$datasource"
  4823            },
  4824            "description": "",
  4825            "fieldConfig": {
  4826              "defaults": {
  4827                "color": {
  4828                  "mode": "palette-classic"
  4829                },
  4830                "custom": {
  4831                  "axisCenteredZero": false,
  4832                  "axisColorMode": "text",
  4833                  "axisLabel": "",
  4834                  "axisPlacement": "auto",
  4835                  "barAlignment": 0,
  4836                  "drawStyle": "line",
  4837                  "fillOpacity": 20,
  4838                  "gradientMode": "none",
  4839                  "hideFrom": {
  4840                    "legend": false,
  4841                    "tooltip": false,
  4842                    "viz": false
  4843                  },
  4844                  "lineInterpolation": "linear",
  4845                  "lineWidth": 2,
  4846                  "pointSize": 5,
  4847                  "scaleDistribution": {
  4848                    "type": "linear"
  4849                  },
  4850                  "showPoints": "never",
  4851                  "spanNulls": false,
  4852                  "stacking": {
  4853                    "group": "A",
  4854                    "mode": "none"
  4855                  },
  4856                  "thresholdsStyle": {
  4857                    "mode": "off"
  4858                  }
  4859                },
  4860                "links": [],
  4861                "mappings": [],
  4862                "min": 0,
  4863                "thresholds": {
  4864                  "mode": "absolute",
  4865                  "steps": [
  4866                    {
  4867                      "color": "green"
  4868                    },
  4869                    {
  4870                      "color": "red",
  4871                      "value": 80
  4872                    }
  4873                  ]
  4874                },
  4875                "unit": "short"
  4876              },
  4877              "overrides": []
  4878            },
  4879            "gridPos": {
  4880              "h": 8,
  4881              "w": 12,
  4882              "x": 12,
  4883              "y": 44
  4884            },
  4885            "id": 415,
  4886            "links": [],
  4887            "options": {
  4888              "legend": {
  4889                "calcs": [
  4890                  "mean",
  4891                  "lastNotNull",
  4892                  "max",
  4893                  "min"
  4894                ],
  4895                "displayMode": "table",
  4896                "placement": "bottom",
  4897                "showLegend": true
  4898              },
  4899              "tooltip": {
  4900                "mode": "multi",
  4901                "sort": "none"
  4902              }
  4903            },
  4904            "pluginVersion": "9.2.4",
  4905            "targets": [
  4906              {
  4907                "calculatedInterval": "2m",
  4908                "datasource": {
  4909                  "uid": "$datasource"
  4910                },
  4911                "datasourceErrors": {},
  4912                "editorMode": "code",
  4913                "errors": {},
  4914                "expr": "rate(pg_stat_bgwriter_checkpoints_timed_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  4915                "format": "time_series",
  4916                "interval": "",
  4917                "intervalFactor": 1,
  4918                "legendFormat": "Scheduled: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4919                "metric": "",
  4920                "range": true,
  4921                "refId": "A",
  4922                "step": 20
  4923              },
  4924              {
  4925                "calculatedInterval": "2m",
  4926                "datasource": {
  4927                  "uid": "$datasource"
  4928                },
  4929                "datasourceErrors": {},
  4930                "editorMode": "code",
  4931                "errors": {},
  4932                "expr": "rate(pg_stat_bgwriter_checkpoints_req_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  4933                "format": "time_series",
  4934                "hide": false,
  4935                "interval": "",
  4936                "intervalFactor": 1,
  4937                "legendFormat": "Requested: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4938                "metric": "",
  4939                "range": true,
  4940                "refId": "B",
  4941                "step": 20
  4942              }
  4943            ],
  4944            "title": "Checkpoints Per Second (bgwriter)",
  4945            "type": "timeseries"
  4946          },
  4947          {
  4948            "datasource": {
  4949              "type": "prometheus",
  4950              "uid": "$datasource"
  4951            },
  4952            "description": "",
  4953            "fieldConfig": {
  4954              "defaults": {
  4955                "color": {
  4956                  "mode": "palette-classic"
  4957                },
  4958                "custom": {
  4959                  "axisCenteredZero": false,
  4960                  "axisColorMode": "text",
  4961                  "axisLabel": "",
  4962                  "axisPlacement": "auto",
  4963                  "barAlignment": 0,
  4964                  "drawStyle": "line",
  4965                  "fillOpacity": 20,
  4966                  "gradientMode": "none",
  4967                  "hideFrom": {
  4968                    "legend": false,
  4969                    "tooltip": false,
  4970                    "viz": false
  4971                  },
  4972                  "lineInterpolation": "linear",
  4973                  "lineWidth": 2,
  4974                  "pointSize": 5,
  4975                  "scaleDistribution": {
  4976                    "type": "linear"
  4977                  },
  4978                  "showPoints": "never",
  4979                  "spanNulls": false,
  4980                  "stacking": {
  4981                    "group": "A",
  4982                    "mode": "none"
  4983                  },
  4984                  "thresholdsStyle": {
  4985                    "mode": "off"
  4986                  }
  4987                },
  4988                "links": [],
  4989                "mappings": [],
  4990                "min": 0,
  4991                "thresholds": {
  4992                  "mode": "absolute",
  4993                  "steps": [
  4994                    {
  4995                      "color": "green"
  4996                    },
  4997                    {
  4998                      "color": "red",
  4999                      "value": 80
  5000                    }
  5001                  ]
  5002                },
  5003                "unit": "short"
  5004              },
  5005              "overrides": []
  5006            },
  5007            "gridPos": {
  5008              "h": 8,
  5009              "w": 12,
  5010              "x": 0,
  5011              "y": 52
  5012            },
  5013            "id": 403,
  5014            "links": [],
  5015            "options": {
  5016              "legend": {
  5017                "calcs": [
  5018                  "mean",
  5019                  "lastNotNull",
  5020                  "max",
  5021                  "min"
  5022                ],
  5023                "displayMode": "table",
  5024                "placement": "bottom",
  5025                "showLegend": true
  5026              },
  5027              "tooltip": {
  5028                "mode": "multi",
  5029                "sort": "none"
  5030              }
  5031            },
  5032            "pluginVersion": "9.2.4",
  5033            "targets": [
  5034              {
  5035                "calculatedInterval": "2m",
  5036                "datasource": {
  5037                  "uid": "$datasource"
  5038                },
  5039                "datasourceErrors": {},
  5040                "editorMode": "code",
  5041                "errors": {},
  5042                "expr": "rate(pg_stat_bgwriter_buffers_alloc_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  5043                "format": "time_series",
  5044                "interval": "",
  5045                "intervalFactor": 1,
  5046                "legendFormat": "Allocated: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  5047                "metric": "",
  5048                "range": true,
  5049                "refId": "A",
  5050                "step": 20
  5051              },
  5052              {
  5053                "calculatedInterval": "2m",
  5054                "datasource": {
  5055                  "uid": "$datasource"
  5056                },
  5057                "datasourceErrors": {},
  5058                "editorMode": "code",
  5059                "errors": {},
  5060                "expr": "rate(pg_stat_bgwriter_buffers_backend_fsync_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  5061                "format": "time_series",
  5062                "hide": false,
  5063                "interval": "",
  5064                "intervalFactor": 1,
  5065                "legendFormat": "Fsync calls by a backend: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  5066                "metric": "",
  5067                "range": true,
  5068                "refId": "B",
  5069                "step": 20
  5070              },
  5071              {
  5072                "calculatedInterval": "2m",
  5073                "datasource": {
  5074                  "uid": "$datasource"
  5075                },
  5076                "datasourceErrors": {},
  5077                "editorMode": "code",
  5078                "errors": {},
  5079                "expr": "rate(pg_stat_bgwriter_buffers_backend_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  5080                "format": "time_series",
  5081                "hide": false,
  5082                "interval": "",
  5083                "intervalFactor": 1,
  5084                "legendFormat": "Written directly by backend: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  5085                "metric": "",
  5086                "range": true,
  5087                "refId": "C",
  5088                "step": 20
  5089              },
  5090              {
  5091                "calculatedInterval": "2m",
  5092                "datasource": {
  5093                  "uid": "$datasource"
  5094                },
  5095                "datasourceErrors": {},
  5096                "editorMode": "code",
  5097                "errors": {},
  5098                "expr": "rate(pg_stat_bgwriter_buffers_clean_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  5099                "format": "time_series",
  5100                "hide": false,
  5101                "interval": "",
  5102                "intervalFactor": 1,
  5103                "legendFormat": "Written by the background writer: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  5104                "metric": "",
  5105                "range": true,
  5106                "refId": "D",
  5107                "step": 20
  5108              },
  5109              {
  5110                "calculatedInterval": "2m",
  5111                "datasource": {
  5112                  "uid": "$datasource"
  5113                },
  5114                "datasourceErrors": {},
  5115                "editorMode": "code",
  5116                "errors": {},
  5117                "expr": "rate(pg_stat_bgwriter_buffers_checkpoint_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  5118                "format": "time_series",
  5119                "hide": false,
  5120                "interval": "",
  5121                "intervalFactor": 1,
  5122                "legendFormat": "Written during checkpoints: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  5123                "metric": "",
  5124                "range": true,
  5125                "refId": "E",
  5126                "step": 20
  5127              },
  5128              {
  5129                "calculatedInterval": "2m",
  5130                "datasource": {
  5131                  "uid": "$datasource"
  5132                },
  5133                "datasourceErrors": {},
  5134                "editorMode": "code",
  5135                "errors": {},
  5136                "expr": "rate(pg_stat_bgwriter_maxwritten_clean_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  5137                "format": "time_series",
  5138                "hide": false,
  5139                "interval": "",
  5140                "intervalFactor": 1,
  5141                "legendFormat": "Written stopped by the background writer: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  5142                "metric": "",
  5143                "range": true,
  5144                "refId": "F",
  5145                "step": 20
  5146              }
  5147            ],
  5148            "title": "Buffers Written Per Second (bgwriter)",
  5149            "type": "timeseries"
  5150          }
  5151        ],
  5152        "title": "Background Process",
  5153        "type": "row"
  5154      },
  5155      {
  5156        "collapsed": true,
  5157        "gridPos": {
  5158          "h": 1,
  5159          "w": 24,
  5160          "x": 0,
  5161          "y": 36
  5162        },
  5163        "id": 496,
  5164        "panels": [
  5165          {
  5166            "datasource": {
  5167              "type": "prometheus",
  5168              "uid": "$datasource"
  5169            },
  5170            "description": "",
  5171            "fieldConfig": {
  5172              "defaults": {
  5173                "color": {
  5174                  "mode": "palette-classic"
  5175                },
  5176                "custom": {
  5177                  "axisCenteredZero": false,
  5178                  "axisColorMode": "text",
  5179                  "axisLabel": "",
  5180                  "axisPlacement": "auto",
  5181                  "barAlignment": 0,
  5182                  "drawStyle": "line",
  5183                  "fillOpacity": 20,
  5184                  "gradientMode": "none",
  5185                  "hideFrom": {
  5186                    "legend": false,
  5187                    "tooltip": false,
  5188                    "viz": false
  5189                  },
  5190                  "lineInterpolation": "linear",
  5191                  "lineWidth": 2,
  5192                  "pointSize": 5,
  5193                  "scaleDistribution": {
  5194                    "type": "linear"
  5195                  },
  5196                  "showPoints": "never",
  5197                  "spanNulls": false,
  5198                  "stacking": {
  5199                    "group": "A",
  5200                    "mode": "none"
  5201                  },
  5202                  "thresholdsStyle": {
  5203                    "mode": "off"
  5204                  }
  5205                },
  5206                "links": [],
  5207                "mappings": [],
  5208                "min": 0,
  5209                "thresholds": {
  5210                  "mode": "absolute",
  5211                  "steps": [
  5212                    {
  5213                      "color": "green"
  5214                    },
  5215                    {
  5216                      "color": "red",
  5217                      "value": 80
  5218                    }
  5219                  ]
  5220                },
  5221                "unit": "short"
  5222              },
  5223              "overrides": []
  5224            },
  5225            "gridPos": {
  5226              "h": 8,
  5227              "w": 12,
  5228              "x": 0,
  5229              "y": 37
  5230            },
  5231            "id": 499,
  5232            "links": [],
  5233            "options": {
  5234              "legend": {
  5235                "calcs": [
  5236                  "mean",
  5237                  "lastNotNull",
  5238                  "max",
  5239                  "min"
  5240                ],
  5241                "displayMode": "table",
  5242                "placement": "bottom",
  5243                "showLegend": true
  5244              },
  5245              "tooltip": {
  5246                "mode": "multi",
  5247                "sort": "none"
  5248              }
  5249            },
  5250            "pluginVersion": "9.2.4",
  5251            "targets": [
  5252              {
  5253                "calculatedInterval": "2m",
  5254                "datasource": {
  5255                  "uid": "$datasource"
  5256                },
  5257                "datasourceErrors": {},
  5258                "editorMode": "code",
  5259                "errors": {},
  5260                "expr": "sum by(namespace,app_kubernetes_io_instance,pod,locktype) (pg_locks_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
  5261                "format": "time_series",
  5262                "interval": "",
  5263                "intervalFactor": 1,
  5264                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}  | {{locktype}}",
  5265                "metric": "",
  5266                "range": true,
  5267                "refId": "A",
  5268                "step": 20
  5269              }
  5270            ],
  5271            "title": "Locks By Lock Type",
  5272            "type": "timeseries"
  5273          },
  5274          {
  5275            "datasource": {
  5276              "type": "prometheus",
  5277              "uid": "$datasource"
  5278            },
  5279            "description": "",
  5280            "fieldConfig": {
  5281              "defaults": {
  5282                "color": {
  5283                  "mode": "palette-classic"
  5284                },
  5285                "custom": {
  5286                  "axisCenteredZero": false,
  5287                  "axisColorMode": "text",
  5288                  "axisLabel": "",
  5289                  "axisPlacement": "auto",
  5290                  "barAlignment": 0,
  5291                  "drawStyle": "line",
  5292                  "fillOpacity": 20,
  5293                  "gradientMode": "none",
  5294                  "hideFrom": {
  5295                    "legend": false,
  5296                    "tooltip": false,
  5297                    "viz": false
  5298                  },
  5299                  "lineInterpolation": "linear",
  5300                  "lineWidth": 2,
  5301                  "pointSize": 5,
  5302                  "scaleDistribution": {
  5303                    "type": "linear"
  5304                  },
  5305                  "showPoints": "never",
  5306                  "spanNulls": false,
  5307                  "stacking": {
  5308                    "group": "A",
  5309                    "mode": "none"
  5310                  },
  5311                  "thresholdsStyle": {
  5312                    "mode": "off"
  5313                  }
  5314                },
  5315                "links": [],
  5316                "mappings": [],
  5317                "min": 0,
  5318                "thresholds": {
  5319                  "mode": "absolute",
  5320                  "steps": [
  5321                    {
  5322                      "color": "green"
  5323                    },
  5324                    {
  5325                      "color": "red",
  5326                      "value": 80
  5327                    }
  5328                  ]
  5329                },
  5330                "unit": "short"
  5331              },
  5332              "overrides": []
  5333            },
  5334            "gridPos": {
  5335              "h": 8,
  5336              "w": 12,
  5337              "x": 12,
  5338              "y": 37
  5339            },
  5340            "id": 498,
  5341            "links": [],
  5342            "options": {
  5343              "legend": {
  5344                "calcs": [
  5345                  "mean",
  5346                  "lastNotNull",
  5347                  "max",
  5348                  "min"
  5349                ],
  5350                "displayMode": "table",
  5351                "placement": "bottom",
  5352                "showLegend": true
  5353              },
  5354              "tooltip": {
  5355                "mode": "multi",
  5356                "sort": "none"
  5357              }
  5358            },
  5359            "pluginVersion": "9.2.4",
  5360            "targets": [
  5361              {
  5362                "calculatedInterval": "2m",
  5363                "datasource": {
  5364                  "uid": "$datasource"
  5365                },
  5366                "datasourceErrors": {},
  5367                "editorMode": "code",
  5368                "errors": {},
  5369                "expr": "sum by(namespace,app_kubernetes_io_instance,pod,mode) (pg_locks_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"})",
  5370                "format": "time_series",
  5371                "interval": "",
  5372                "intervalFactor": 1,
  5373                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}  | {{mode}}",
  5374                "metric": "",
  5375                "range": true,
  5376                "refId": "A",
  5377                "step": 20
  5378              }
  5379            ],
  5380            "title": "Locks By Mode",
  5381            "type": "timeseries"
  5382          },
  5383          {
  5384            "datasource": {
  5385              "type": "prometheus",
  5386              "uid": "$datasource"
  5387            },
  5388            "description": "",
  5389            "fieldConfig": {
  5390              "defaults": {
  5391                "color": {
  5392                  "mode": "palette-classic"
  5393                },
  5394                "custom": {
  5395                  "axisCenteredZero": false,
  5396                  "axisColorMode": "text",
  5397                  "axisLabel": "",
  5398                  "axisPlacement": "auto",
  5399                  "barAlignment": 0,
  5400                  "drawStyle": "line",
  5401                  "fillOpacity": 20,
  5402                  "gradientMode": "none",
  5403                  "hideFrom": {
  5404                    "legend": false,
  5405                    "tooltip": false,
  5406                    "viz": false
  5407                  },
  5408                  "lineInterpolation": "linear",
  5409                  "lineWidth": 2,
  5410                  "pointSize": 5,
  5411                  "scaleDistribution": {
  5412                    "type": "linear"
  5413                  },
  5414                  "showPoints": "never",
  5415                  "spanNulls": false,
  5416                  "stacking": {
  5417                    "group": "A",
  5418                    "mode": "none"
  5419                  },
  5420                  "thresholdsStyle": {
  5421                    "mode": "off"
  5422                  }
  5423                },
  5424                "links": [],
  5425                "mappings": [],
  5426                "min": 0,
  5427                "thresholds": {
  5428                  "mode": "absolute",
  5429                  "steps": [
  5430                    {
  5431                      "color": "green"
  5432                    },
  5433                    {
  5434                      "color": "red",
  5435                      "value": 80
  5436                    }
  5437                  ]
  5438                },
  5439                "unit": "short"
  5440              },
  5441              "overrides": []
  5442            },
  5443            "gridPos": {
  5444              "h": 8,
  5445              "w": 12,
  5446              "x": 0,
  5447              "y": 45
  5448            },
  5449            "id": 501,
  5450            "links": [],
  5451            "options": {
  5452              "legend": {
  5453                "calcs": [
  5454                  "mean",
  5455                  "lastNotNull",
  5456                  "max",
  5457                  "min"
  5458                ],
  5459                "displayMode": "table",
  5460                "placement": "bottom",
  5461                "showLegend": true
  5462              },
  5463              "tooltip": {
  5464                "mode": "multi",
  5465                "sort": "none"
  5466              }
  5467            },
  5468            "pluginVersion": "9.2.4",
  5469            "targets": [
  5470              {
  5471                "calculatedInterval": "2m",
  5472                "datasource": {
  5473                  "uid": "$datasource"
  5474                },
  5475                "datasourceErrors": {},
  5476                "editorMode": "code",
  5477                "errors": {},
  5478                "expr": "sum by(namespace,app_kubernetes_io_instance,pod,datname,relation) (pg_locks_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\",locktype=\"relation\"})",
  5479                "format": "time_series",
  5480                "interval": "",
  5481                "intervalFactor": 1,
  5482                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}  | {{datname}} | {{relation}}",
  5483                "metric": "",
  5484                "range": true,
  5485                "refId": "A",
  5486                "step": 20
  5487              }
  5488            ],
  5489            "title": "Locks By Relation(Table)",
  5490            "type": "timeseries"
  5491          },
  5492          {
  5493            "datasource": {
  5494              "type": "prometheus",
  5495              "uid": "$datasource"
  5496            },
  5497            "description": "",
  5498            "fieldConfig": {
  5499              "defaults": {
  5500                "color": {
  5501                  "mode": "palette-classic"
  5502                },
  5503                "custom": {
  5504                  "axisCenteredZero": false,
  5505                  "axisColorMode": "text",
  5506                  "axisLabel": "",
  5507                  "axisPlacement": "auto",
  5508                  "barAlignment": 0,
  5509                  "drawStyle": "line",
  5510                  "fillOpacity": 20,
  5511                  "gradientMode": "none",
  5512                  "hideFrom": {
  5513                    "legend": false,
  5514                    "tooltip": false,
  5515                    "viz": false
  5516                  },
  5517                  "lineInterpolation": "linear",
  5518                  "lineWidth": 2,
  5519                  "pointSize": 5,
  5520                  "scaleDistribution": {
  5521                    "type": "linear"
  5522                  },
  5523                  "showPoints": "never",
  5524                  "spanNulls": false,
  5525                  "stacking": {
  5526                    "group": "A",
  5527                    "mode": "none"
  5528                  },
  5529                  "thresholdsStyle": {
  5530                    "mode": "off"
  5531                  }
  5532                },
  5533                "links": [],
  5534                "mappings": [],
  5535                "min": 0,
  5536                "thresholds": {
  5537                  "mode": "absolute",
  5538                  "steps": [
  5539                    {
  5540                      "color": "green"
  5541                    },
  5542                    {
  5543                      "color": "red",
  5544                      "value": 80
  5545                    }
  5546                  ]
  5547                },
  5548                "unit": "short"
  5549              },
  5550              "overrides": [
  5551                {
  5552                  "__systemRef": "hideSeriesFrom",
  5553                  "matcher": {
  5554                    "id": "byNames",
  5555                    "options": {
  5556                      "mode": "exclude",
  5557                      "names": [
  5558                        "Lock Held: default | pg14 | pg14-postgresql-0 "
  5559                      ],
  5560                      "prefix": "All except:",
  5561                      "readOnly": true
  5562                    }
  5563                  },
  5564                  "properties": [
  5565                    {
  5566                      "id": "custom.hideFrom",
  5567                      "value": {
  5568                        "legend": false,
  5569                        "tooltip": false,
  5570                        "viz": true
  5571                      }
  5572                    }
  5573                  ]
  5574                }
  5575              ]
  5576            },
  5577            "gridPos": {
  5578              "h": 8,
  5579              "w": 12,
  5580              "x": 12,
  5581              "y": 45
  5582            },
  5583            "id": 500,
  5584            "links": [],
  5585            "options": {
  5586              "legend": {
  5587                "calcs": [
  5588                  "mean",
  5589                  "lastNotNull",
  5590                  "max",
  5591                  "min"
  5592                ],
  5593                "displayMode": "table",
  5594                "placement": "bottom",
  5595                "showLegend": true
  5596              },
  5597              "tooltip": {
  5598                "mode": "multi",
  5599                "sort": "none"
  5600              }
  5601            },
  5602            "pluginVersion": "9.2.4",
  5603            "targets": [
  5604              {
  5605                "calculatedInterval": "2m",
  5606                "datasource": {
  5607                  "uid": "$datasource"
  5608                },
  5609                "datasourceErrors": {},
  5610                "editorMode": "code",
  5611                "errors": {},
  5612                "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (pg_locks_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\",granted=\"1\"})",
  5613                "format": "time_series",
  5614                "interval": "",
  5615                "intervalFactor": 1,
  5616                "legendFormat": "Lock Held: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ",
  5617                "metric": "",
  5618                "range": true,
  5619                "refId": "A",
  5620                "step": 20
  5621              },
  5622              {
  5623                "calculatedInterval": "2m",
  5624                "datasource": {
  5625                  "uid": "$datasource"
  5626                },
  5627                "datasourceErrors": {},
  5628                "editorMode": "code",
  5629                "errors": {},
  5630                "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (pg_locks_detail_count{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\",granted=\"0\"})",
  5631                "format": "time_series",
  5632                "hide": false,
  5633                "interval": "",
  5634                "intervalFactor": 1,
  5635                "legendFormat": "Lock Awaited: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ",
  5636                "metric": "",
  5637                "range": true,
  5638                "refId": "B",
  5639                "step": 20
  5640              }
  5641            ],
  5642            "title": "Locks Held or Awaited",
  5643            "type": "timeseries"
  5644          },
  5645          {
  5646            "datasource": {
  5647              "type": "prometheus",
  5648              "uid": "$datasource"
  5649            },
  5650            "description": "",
  5651            "fieldConfig": {
  5652              "defaults": {
  5653                "color": {
  5654                  "mode": "palette-classic"
  5655                },
  5656                "custom": {
  5657                  "axisCenteredZero": false,
  5658                  "axisColorMode": "text",
  5659                  "axisLabel": "",
  5660                  "axisPlacement": "auto",
  5661                  "barAlignment": 0,
  5662                  "drawStyle": "line",
  5663                  "fillOpacity": 20,
  5664                  "gradientMode": "none",
  5665                  "hideFrom": {
  5666                    "legend": false,
  5667                    "tooltip": false,
  5668                    "viz": false
  5669                  },
  5670                  "lineInterpolation": "linear",
  5671                  "lineWidth": 2,
  5672                  "pointSize": 5,
  5673                  "scaleDistribution": {
  5674                    "type": "linear"
  5675                  },
  5676                  "showPoints": "never",
  5677                  "spanNulls": false,
  5678                  "stacking": {
  5679                    "group": "A",
  5680                    "mode": "none"
  5681                  },
  5682                  "thresholdsStyle": {
  5683                    "mode": "off"
  5684                  }
  5685                },
  5686                "links": [],
  5687                "mappings": [],
  5688                "min": 0,
  5689                "thresholds": {
  5690                  "mode": "absolute",
  5691                  "steps": [
  5692                    {
  5693                      "color": "green"
  5694                    },
  5695                    {
  5696                      "color": "red",
  5697                      "value": 80
  5698                    }
  5699                  ]
  5700                },
  5701                "unit": "s"
  5702              },
  5703              "overrides": []
  5704            },
  5705            "gridPos": {
  5706              "h": 8,
  5707              "w": 12,
  5708              "x": 0,
  5709              "y": 53
  5710            },
  5711            "id": 497,
  5712            "links": [],
  5713            "options": {
  5714              "legend": {
  5715                "calcs": [
  5716                  "mean",
  5717                  "lastNotNull",
  5718                  "max",
  5719                  "min"
  5720                ],
  5721                "displayMode": "table",
  5722                "placement": "bottom",
  5723                "showLegend": true
  5724              },
  5725              "tooltip": {
  5726                "mode": "multi",
  5727                "sort": "none"
  5728              }
  5729            },
  5730            "pluginVersion": "9.2.4",
  5731            "targets": [
  5732              {
  5733                "calculatedInterval": "2m",
  5734                "datasource": {
  5735                  "uid": "$datasource"
  5736                },
  5737                "datasourceErrors": {},
  5738                "editorMode": "code",
  5739                "errors": {},
  5740                "expr": "max by(namespace,app_kubernetes_io_instance,pod) (max_over_time(pg_locks_detail_max_wait_age_seconds{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__interval]))",
  5741                "format": "time_series",
  5742                "interval": "",
  5743                "intervalFactor": 1,
  5744                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ",
  5745                "metric": "",
  5746                "range": true,
  5747                "refId": "A",
  5748                "step": 20
  5749              }
  5750            ],
  5751            "title": "Max Lock Wait Time (Version >= 14)",
  5752            "type": "timeseries"
  5753          }
  5754        ],
  5755        "title": "Locks",
  5756        "type": "row"
  5757      },
  5758      {
  5759        "collapsed": true,
  5760        "gridPos": {
  5761          "h": 1,
  5762          "w": 24,
  5763          "x": 0,
  5764          "y": 37
  5765        },
  5766        "id": 503,
  5767        "panels": [
  5768          {
  5769            "datasource": {
  5770              "type": "prometheus",
  5771              "uid": "$datasource"
  5772            },
  5773            "description": "",
  5774            "fieldConfig": {
  5775              "defaults": {
  5776                "color": {
  5777                  "mode": "palette-classic"
  5778                },
  5779                "custom": {
  5780                  "axisCenteredZero": false,
  5781                  "axisColorMode": "text",
  5782                  "axisLabel": "",
  5783                  "axisPlacement": "auto",
  5784                  "barAlignment": 0,
  5785                  "drawStyle": "line",
  5786                  "fillOpacity": 20,
  5787                  "gradientMode": "none",
  5788                  "hideFrom": {
  5789                    "legend": false,
  5790                    "tooltip": false,
  5791                    "viz": false
  5792                  },
  5793                  "lineInterpolation": "linear",
  5794                  "lineWidth": 2,
  5795                  "pointSize": 5,
  5796                  "scaleDistribution": {
  5797                    "type": "linear"
  5798                  },
  5799                  "showPoints": "never",
  5800                  "spanNulls": false,
  5801                  "stacking": {
  5802                    "group": "A",
  5803                    "mode": "none"
  5804                  },
  5805                  "thresholdsStyle": {
  5806                    "mode": "off"
  5807                  }
  5808                },
  5809                "links": [],
  5810                "mappings": [],
  5811                "min": 0,
  5812                "thresholds": {
  5813                  "mode": "absolute",
  5814                  "steps": [
  5815                    {
  5816                      "color": "green"
  5817                    },
  5818                    {
  5819                      "color": "red",
  5820                      "value": 80
  5821                    }
  5822                  ]
  5823                },
  5824                "unit": "short"
  5825              },
  5826              "overrides": []
  5827            },
  5828            "gridPos": {
  5829              "h": 8,
  5830              "w": 12,
  5831              "x": 0,
  5832              "y": 38
  5833            },
  5834            "id": 385,
  5835            "links": [],
  5836            "options": {
  5837              "legend": {
  5838                "calcs": [
  5839                  "mean",
  5840                  "lastNotNull",
  5841                  "max",
  5842                  "min"
  5843                ],
  5844                "displayMode": "table",
  5845                "placement": "bottom",
  5846                "showLegend": true
  5847              },
  5848              "tooltip": {
  5849                "mode": "multi",
  5850                "sort": "none"
  5851              }
  5852            },
  5853            "pluginVersion": "9.2.4",
  5854            "targets": [
  5855              {
  5856                "calculatedInterval": "2m",
  5857                "datasource": {
  5858                  "uid": "$datasource"
  5859                },
  5860                "datasourceErrors": {},
  5861                "editorMode": "code",
  5862                "errors": {},
  5863                "expr": "rate(pg_stat_wal_wal_records_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  5864                "format": "time_series",
  5865                "interval": "",
  5866                "intervalFactor": 1,
  5867                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  5868                "metric": "",
  5869                "range": true,
  5870                "refId": "A",
  5871                "step": 20
  5872              }
  5873            ],
  5874            "title": "WAL Records Generated Per Second",
  5875            "type": "timeseries"
  5876          },
  5877          {
  5878            "datasource": {
  5879              "type": "prometheus",
  5880              "uid": "$datasource"
  5881            },
  5882            "description": "",
  5883            "fieldConfig": {
  5884              "defaults": {
  5885                "color": {
  5886                  "mode": "palette-classic"
  5887                },
  5888                "custom": {
  5889                  "axisCenteredZero": false,
  5890                  "axisColorMode": "text",
  5891                  "axisLabel": "",
  5892                  "axisPlacement": "auto",
  5893                  "barAlignment": 0,
  5894                  "drawStyle": "line",
  5895                  "fillOpacity": 20,
  5896                  "gradientMode": "none",
  5897                  "hideFrom": {
  5898                    "legend": false,
  5899                    "tooltip": false,
  5900                    "viz": false
  5901                  },
  5902                  "lineInterpolation": "linear",
  5903                  "lineWidth": 2,
  5904                  "pointSize": 5,
  5905                  "scaleDistribution": {
  5906                    "type": "linear"
  5907                  },
  5908                  "showPoints": "never",
  5909                  "spanNulls": false,
  5910                  "stacking": {
  5911                    "group": "A",
  5912                    "mode": "none"
  5913                  },
  5914                  "thresholdsStyle": {
  5915                    "mode": "off"
  5916                  }
  5917                },
  5918                "links": [],
  5919                "mappings": [],
  5920                "min": 0,
  5921                "thresholds": {
  5922                  "mode": "absolute",
  5923                  "steps": [
  5924                    {
  5925                      "color": "green"
  5926                    },
  5927                    {
  5928                      "color": "red",
  5929                      "value": 80
  5930                    }
  5931                  ]
  5932                },
  5933                "unit": "short"
  5934              },
  5935              "overrides": []
  5936            },
  5937            "gridPos": {
  5938              "h": 8,
  5939              "w": 12,
  5940              "x": 12,
  5941              "y": 38
  5942            },
  5943            "id": 505,
  5944            "links": [],
  5945            "options": {
  5946              "legend": {
  5947                "calcs": [
  5948                  "mean",
  5949                  "lastNotNull",
  5950                  "max",
  5951                  "min"
  5952                ],
  5953                "displayMode": "table",
  5954                "placement": "bottom",
  5955                "showLegend": true
  5956              },
  5957              "tooltip": {
  5958                "mode": "multi",
  5959                "sort": "none"
  5960              }
  5961            },
  5962            "pluginVersion": "9.2.4",
  5963            "targets": [
  5964              {
  5965                "calculatedInterval": "2m",
  5966                "datasource": {
  5967                  "uid": "$datasource"
  5968                },
  5969                "datasourceErrors": {},
  5970                "editorMode": "code",
  5971                "errors": {},
  5972                "expr": "rate(pg_stat_wal_wal_fpi_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  5973                "format": "time_series",
  5974                "interval": "",
  5975                "intervalFactor": 1,
  5976                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  5977                "metric": "",
  5978                "range": true,
  5979                "refId": "A",
  5980                "step": 20
  5981              }
  5982            ],
  5983            "title": "WAL Full Page Images Generated Per Second",
  5984            "type": "timeseries"
  5985          },
  5986          {
  5987            "datasource": {
  5988              "type": "prometheus",
  5989              "uid": "$datasource"
  5990            },
  5991            "description": "",
  5992            "fieldConfig": {
  5993              "defaults": {
  5994                "color": {
  5995                  "mode": "palette-classic"
  5996                },
  5997                "custom": {
  5998                  "axisCenteredZero": false,
  5999                  "axisColorMode": "text",
  6000                  "axisLabel": "",
  6001                  "axisPlacement": "auto",
  6002                  "barAlignment": 0,
  6003                  "drawStyle": "line",
  6004                  "fillOpacity": 20,
  6005                  "gradientMode": "none",
  6006                  "hideFrom": {
  6007                    "legend": false,
  6008                    "tooltip": false,
  6009                    "viz": false
  6010                  },
  6011                  "lineInterpolation": "linear",
  6012                  "lineWidth": 2,
  6013                  "pointSize": 5,
  6014                  "scaleDistribution": {
  6015                    "type": "linear"
  6016                  },
  6017                  "showPoints": "never",
  6018                  "spanNulls": false,
  6019                  "stacking": {
  6020                    "group": "A",
  6021                    "mode": "none"
  6022                  },
  6023                  "thresholdsStyle": {
  6024                    "mode": "off"
  6025                  }
  6026                },
  6027                "links": [],
  6028                "mappings": [],
  6029                "min": 0,
  6030                "thresholds": {
  6031                  "mode": "absolute",
  6032                  "steps": [
  6033                    {
  6034                      "color": "green"
  6035                    },
  6036                    {
  6037                      "color": "red",
  6038                      "value": 80
  6039                    }
  6040                  ]
  6041                },
  6042                "unit": "bytes"
  6043              },
  6044              "overrides": []
  6045            },
  6046            "gridPos": {
  6047              "h": 8,
  6048              "w": 12,
  6049              "x": 0,
  6050              "y": 46
  6051            },
  6052            "id": 506,
  6053            "links": [],
  6054            "options": {
  6055              "legend": {
  6056                "calcs": [
  6057                  "mean",
  6058                  "lastNotNull",
  6059                  "max",
  6060                  "min"
  6061                ],
  6062                "displayMode": "table",
  6063                "placement": "bottom",
  6064                "showLegend": true
  6065              },
  6066              "tooltip": {
  6067                "mode": "multi",
  6068                "sort": "none"
  6069              }
  6070            },
  6071            "pluginVersion": "9.2.4",
  6072            "targets": [
  6073              {
  6074                "calculatedInterval": "2m",
  6075                "datasource": {
  6076                  "uid": "$datasource"
  6077                },
  6078                "datasourceErrors": {},
  6079                "editorMode": "code",
  6080                "errors": {},
  6081                "expr": "rate(pg_stat_wal_wal_bytes_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  6082                "format": "time_series",
  6083                "interval": "",
  6084                "intervalFactor": 1,
  6085                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  6086                "metric": "",
  6087                "range": true,
  6088                "refId": "A",
  6089                "step": 20
  6090              }
  6091            ],
  6092            "title": "WAL Generated Size Per Second",
  6093            "type": "timeseries"
  6094          },
  6095          {
  6096            "datasource": {
  6097              "type": "prometheus",
  6098              "uid": "$datasource"
  6099            },
  6100            "description": "",
  6101            "fieldConfig": {
  6102              "defaults": {
  6103                "color": {
  6104                  "mode": "palette-classic"
  6105                },
  6106                "custom": {
  6107                  "axisCenteredZero": false,
  6108                  "axisColorMode": "text",
  6109                  "axisLabel": "",
  6110                  "axisPlacement": "auto",
  6111                  "barAlignment": 0,
  6112                  "drawStyle": "line",
  6113                  "fillOpacity": 20,
  6114                  "gradientMode": "none",
  6115                  "hideFrom": {
  6116                    "legend": false,
  6117                    "tooltip": false,
  6118                    "viz": false
  6119                  },
  6120                  "lineInterpolation": "linear",
  6121                  "lineWidth": 2,
  6122                  "pointSize": 5,
  6123                  "scaleDistribution": {
  6124                    "type": "linear"
  6125                  },
  6126                  "showPoints": "never",
  6127                  "spanNulls": false,
  6128                  "stacking": {
  6129                    "group": "A",
  6130                    "mode": "none"
  6131                  },
  6132                  "thresholdsStyle": {
  6133                    "mode": "off"
  6134                  }
  6135                },
  6136                "links": [],
  6137                "mappings": [],
  6138                "min": 0,
  6139                "thresholds": {
  6140                  "mode": "absolute",
  6141                  "steps": [
  6142                    {
  6143                      "color": "green"
  6144                    },
  6145                    {
  6146                      "color": "red",
  6147                      "value": 80
  6148                    }
  6149                  ]
  6150                },
  6151                "unit": "short"
  6152              },
  6153              "overrides": []
  6154            },
  6155            "gridPos": {
  6156              "h": 8,
  6157              "w": 12,
  6158              "x": 12,
  6159              "y": 46
  6160            },
  6161            "id": 507,
  6162            "links": [],
  6163            "options": {
  6164              "legend": {
  6165                "calcs": [
  6166                  "mean",
  6167                  "lastNotNull",
  6168                  "max",
  6169                  "min"
  6170                ],
  6171                "displayMode": "table",
  6172                "placement": "bottom",
  6173                "showLegend": true
  6174              },
  6175              "tooltip": {
  6176                "mode": "multi",
  6177                "sort": "none"
  6178              }
  6179            },
  6180            "pluginVersion": "9.2.4",
  6181            "targets": [
  6182              {
  6183                "calculatedInterval": "2m",
  6184                "datasource": {
  6185                  "uid": "$datasource"
  6186                },
  6187                "datasourceErrors": {},
  6188                "editorMode": "code",
  6189                "errors": {},
  6190                "expr": "rate(pg_stat_wal_wal_buffers_full_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  6191                "format": "time_series",
  6192                "interval": "",
  6193                "intervalFactor": 1,
  6194                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  6195                "metric": "",
  6196                "range": true,
  6197                "refId": "A",
  6198                "step": 20
  6199              }
  6200            ],
  6201            "title": "WAL Buffer Full Per Second",
  6202            "type": "timeseries"
  6203          },
  6204          {
  6205            "datasource": {
  6206              "type": "prometheus",
  6207              "uid": "$datasource"
  6208            },
  6209            "description": "",
  6210            "fieldConfig": {
  6211              "defaults": {
  6212                "color": {
  6213                  "mode": "palette-classic"
  6214                },
  6215                "custom": {
  6216                  "axisCenteredZero": false,
  6217                  "axisColorMode": "text",
  6218                  "axisLabel": "",
  6219                  "axisPlacement": "auto",
  6220                  "barAlignment": 0,
  6221                  "drawStyle": "line",
  6222                  "fillOpacity": 20,
  6223                  "gradientMode": "none",
  6224                  "hideFrom": {
  6225                    "legend": false,
  6226                    "tooltip": false,
  6227                    "viz": false
  6228                  },
  6229                  "lineInterpolation": "linear",
  6230                  "lineWidth": 2,
  6231                  "pointSize": 5,
  6232                  "scaleDistribution": {
  6233                    "type": "linear"
  6234                  },
  6235                  "showPoints": "never",
  6236                  "spanNulls": false,
  6237                  "stacking": {
  6238                    "group": "A",
  6239                    "mode": "none"
  6240                  },
  6241                  "thresholdsStyle": {
  6242                    "mode": "off"
  6243                  }
  6244                },
  6245                "links": [],
  6246                "mappings": [],
  6247                "min": 0,
  6248                "thresholds": {
  6249                  "mode": "absolute",
  6250                  "steps": [
  6251                    {
  6252                      "color": "green"
  6253                    },
  6254                    {
  6255                      "color": "red",
  6256                      "value": 80
  6257                    }
  6258                  ]
  6259                },
  6260                "unit": "bytes"
  6261              },
  6262              "overrides": []
  6263            },
  6264            "gridPos": {
  6265              "h": 8,
  6266              "w": 12,
  6267              "x": 0,
  6268              "y": 54
  6269            },
  6270            "id": 508,
  6271            "links": [],
  6272            "options": {
  6273              "legend": {
  6274                "calcs": [
  6275                  "mean",
  6276                  "lastNotNull",
  6277                  "max",
  6278                  "min"
  6279                ],
  6280                "displayMode": "table",
  6281                "placement": "bottom",
  6282                "showLegend": true
  6283              },
  6284              "tooltip": {
  6285                "mode": "multi",
  6286                "sort": "none"
  6287              }
  6288            },
  6289            "pluginVersion": "9.2.4",
  6290            "targets": [
  6291              {
  6292                "calculatedInterval": "2m",
  6293                "datasource": {
  6294                  "uid": "$datasource"
  6295                },
  6296                "datasourceErrors": {},
  6297                "editorMode": "code",
  6298                "errors": {},
  6299                "expr": "rate(pg_stat_wal_wal_write_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  6300                "format": "time_series",
  6301                "interval": "",
  6302                "intervalFactor": 1,
  6303                "legendFormat": "XLogWrite: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  6304                "metric": "",
  6305                "range": true,
  6306                "refId": "A",
  6307                "step": 20
  6308              },
  6309              {
  6310                "calculatedInterval": "2m",
  6311                "datasource": {
  6312                  "uid": "$datasource"
  6313                },
  6314                "datasourceErrors": {},
  6315                "editorMode": "code",
  6316                "errors": {},
  6317                "expr": "rate(pg_stat_wal_wal_sync_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  6318                "format": "time_series",
  6319                "hide": false,
  6320                "interval": "",
  6321                "intervalFactor": 1,
  6322                "legendFormat": "XLogFsync: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  6323                "metric": "",
  6324                "range": true,
  6325                "refId": "B",
  6326                "step": 20
  6327              }
  6328            ],
  6329            "title": "WAL Written To Disk Per Second",
  6330            "type": "timeseries"
  6331          },
  6332          {
  6333            "datasource": {
  6334              "type": "prometheus",
  6335              "uid": "$datasource"
  6336            },
  6337            "description": "",
  6338            "fieldConfig": {
  6339              "defaults": {
  6340                "color": {
  6341                  "mode": "palette-classic"
  6342                },
  6343                "custom": {
  6344                  "axisCenteredZero": false,
  6345                  "axisColorMode": "text",
  6346                  "axisLabel": "",
  6347                  "axisPlacement": "auto",
  6348                  "barAlignment": 0,
  6349                  "drawStyle": "line",
  6350                  "fillOpacity": 20,
  6351                  "gradientMode": "none",
  6352                  "hideFrom": {
  6353                    "legend": false,
  6354                    "tooltip": false,
  6355                    "viz": false
  6356                  },
  6357                  "lineInterpolation": "linear",
  6358                  "lineWidth": 2,
  6359                  "pointSize": 5,
  6360                  "scaleDistribution": {
  6361                    "type": "linear"
  6362                  },
  6363                  "showPoints": "never",
  6364                  "spanNulls": false,
  6365                  "stacking": {
  6366                    "group": "A",
  6367                    "mode": "none"
  6368                  },
  6369                  "thresholdsStyle": {
  6370                    "mode": "off"
  6371                  }
  6372                },
  6373                "links": [],
  6374                "mappings": [],
  6375                "min": 0,
  6376                "thresholds": {
  6377                  "mode": "absolute",
  6378                  "steps": [
  6379                    {
  6380                      "color": "green"
  6381                    },
  6382                    {
  6383                      "color": "red",
  6384                      "value": 80
  6385                    }
  6386                  ]
  6387                },
  6388                "unit": "s"
  6389              },
  6390              "overrides": []
  6391            },
  6392            "gridPos": {
  6393              "h": 8,
  6394              "w": 12,
  6395              "x": 12,
  6396              "y": 54
  6397            },
  6398            "id": 509,
  6399            "links": [],
  6400            "options": {
  6401              "legend": {
  6402                "calcs": [
  6403                  "mean",
  6404                  "lastNotNull",
  6405                  "max",
  6406                  "min"
  6407                ],
  6408                "displayMode": "table",
  6409                "placement": "bottom",
  6410                "showLegend": true
  6411              },
  6412              "tooltip": {
  6413                "mode": "multi",
  6414                "sort": "none"
  6415              }
  6416            },
  6417            "pluginVersion": "9.2.4",
  6418            "targets": [
  6419              {
  6420                "calculatedInterval": "2m",
  6421                "datasource": {
  6422                  "uid": "$datasource"
  6423                },
  6424                "datasourceErrors": {},
  6425                "editorMode": "code",
  6426                "errors": {},
  6427                "expr": "rate(pg_stat_wal_wal_write_time_seconds_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  6428                "format": "time_series",
  6429                "interval": "",
  6430                "intervalFactor": 1,
  6431                "legendFormat": "XLogWrite: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  6432                "metric": "",
  6433                "range": true,
  6434                "refId": "A",
  6435                "step": 20
  6436              },
  6437              {
  6438                "calculatedInterval": "2m",
  6439                "datasource": {
  6440                  "uid": "$datasource"
  6441                },
  6442                "datasourceErrors": {},
  6443                "editorMode": "code",
  6444                "errors": {},
  6445                "expr": "rate(pg_stat_wal_wal_sync_time_seconds_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}[$__rate_interval])",
  6446                "format": "time_series",
  6447                "hide": false,
  6448                "interval": "",
  6449                "intervalFactor": 1,
  6450                "legendFormat": "XLogFsync: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  6451                "metric": "",
  6452                "range": true,
  6453                "refId": "B",
  6454                "step": 20
  6455              }
  6456            ],
  6457            "title": "Time of WAL Written To Disk Per Second",
  6458            "type": "timeseries"
  6459          }
  6460        ],
  6461        "title": "WAL (Version >= 14)",
  6462        "type": "row"
  6463      },
  6464      {
  6465        "collapsed": true,
  6466        "datasource": {
  6467          "uid": "$datasource"
  6468        },
  6469        "gridPos": {
  6470          "h": 1,
  6471          "w": 24,
  6472          "x": 0,
  6473          "y": 38
  6474        },
  6475        "id": 383,
  6476        "panels": [
  6477          {
  6478            "datasource": {
  6479              "type": "prometheus",
  6480              "uid": "$datasource"
  6481            },
  6482            "description": "",
  6483            "fieldConfig": {
  6484              "defaults": {
  6485                "color": {
  6486                  "mode": "palette-classic"
  6487                },
  6488                "custom": {
  6489                  "axisCenteredZero": false,
  6490                  "axisColorMode": "text",
  6491                  "axisLabel": "",
  6492                  "axisPlacement": "auto",
  6493                  "barAlignment": 0,
  6494                  "drawStyle": "line",
  6495                  "fillOpacity": 20,
  6496                  "gradientMode": "none",
  6497                  "hideFrom": {
  6498                    "legend": false,
  6499                    "tooltip": false,
  6500                    "viz": false
  6501                  },
  6502                  "lineInterpolation": "linear",
  6503                  "lineWidth": 2,
  6504                  "pointSize": 5,
  6505                  "scaleDistribution": {
  6506                    "type": "linear"
  6507                  },
  6508                  "showPoints": "never",
  6509                  "spanNulls": false,
  6510                  "stacking": {
  6511                    "group": "A",
  6512                    "mode": "none"
  6513                  },
  6514                  "thresholdsStyle": {
  6515                    "mode": "off"
  6516                  }
  6517                },
  6518                "links": [],
  6519                "mappings": [],
  6520                "min": 0,
  6521                "thresholds": {
  6522                  "mode": "absolute",
  6523                  "steps": [
  6524                    {
  6525                      "color": "green"
  6526                    },
  6527                    {
  6528                      "color": "red",
  6529                      "value": 80
  6530                    }
  6531                  ]
  6532                },
  6533                "unit": "short"
  6534              },
  6535              "overrides": []
  6536            },
  6537            "gridPos": {
  6538              "h": 8,
  6539              "w": 12,
  6540              "x": 0,
  6541              "y": 63
  6542            },
  6543            "id": 386,
  6544            "links": [],
  6545            "options": {
  6546              "legend": {
  6547                "calcs": [
  6548                  "mean",
  6549                  "lastNotNull",
  6550                  "max",
  6551                  "min"
  6552                ],
  6553                "displayMode": "table",
  6554                "placement": "bottom",
  6555                "showLegend": true
  6556              },
  6557              "tooltip": {
  6558                "mode": "multi",
  6559                "sort": "none"
  6560              }
  6561            },
  6562            "pluginVersion": "9.2.4",
  6563            "targets": [
  6564              {
  6565                "calculatedInterval": "2m",
  6566                "datasource": {
  6567                  "uid": "$datasource"
  6568                },
  6569                "datasourceErrors": {},
  6570                "editorMode": "code",
  6571                "errors": {},
  6572                "expr": "rate(pg_stat_database_conflicts_confl_bufferpin_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  6573                "format": "time_series",
  6574                "interval": "",
  6575                "intervalFactor": 1,
  6576                "legendFormat": "Pinned buffers: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  6577                "metric": "",
  6578                "range": true,
  6579                "refId": "A",
  6580                "step": 20
  6581              },
  6582              {
  6583                "calculatedInterval": "2m",
  6584                "datasource": {
  6585                  "uid": "$datasource"
  6586                },
  6587                "datasourceErrors": {},
  6588                "editorMode": "code",
  6589                "errors": {},
  6590                "expr": "rate(pg_stat_database_conflicts_confl_deadlock_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  6591                "format": "time_series",
  6592                "hide": false,
  6593                "interval": "",
  6594                "intervalFactor": 1,
  6595                "legendFormat": "Deadlocks: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  6596                "metric": "",
  6597                "range": true,
  6598                "refId": "B",
  6599                "step": 20
  6600              },
  6601              {
  6602                "calculatedInterval": "2m",
  6603                "datasource": {
  6604                  "uid": "$datasource"
  6605                },
  6606                "datasourceErrors": {},
  6607                "editorMode": "code",
  6608                "errors": {},
  6609                "expr": "rate(pg_stat_database_conflicts_confl_lock_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  6610                "format": "time_series",
  6611                "hide": false,
  6612                "interval": "",
  6613                "intervalFactor": 1,
  6614                "legendFormat": "Lock timeouts: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  6615                "metric": "",
  6616                "range": true,
  6617                "refId": "C",
  6618                "step": 20
  6619              },
  6620              {
  6621                "calculatedInterval": "2m",
  6622                "datasource": {
  6623                  "uid": "$datasource"
  6624                },
  6625                "datasourceErrors": {},
  6626                "editorMode": "code",
  6627                "errors": {},
  6628                "expr": "rate(pg_stat_database_conflicts_confl_snapshot_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  6629                "format": "time_series",
  6630                "hide": false,
  6631                "interval": "",
  6632                "intervalFactor": 1,
  6633                "legendFormat": "Old snapshots: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  6634                "metric": "",
  6635                "range": true,
  6636                "refId": "D",
  6637                "step": 20
  6638              },
  6639              {
  6640                "calculatedInterval": "2m",
  6641                "datasource": {
  6642                  "uid": "$datasource"
  6643                },
  6644                "datasourceErrors": {},
  6645                "editorMode": "code",
  6646                "errors": {},
  6647                "expr": "rate(pg_stat_database_conflicts_confl_tablespace_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  6648                "format": "time_series",
  6649                "hide": false,
  6650                "interval": "",
  6651                "intervalFactor": 1,
  6652                "legendFormat": "Dropped tablespaces: {{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  6653                "metric": "",
  6654                "range": true,
  6655                "refId": "E",
  6656                "step": 20
  6657              }
  6658            ],
  6659            "title": "Canceled Queries Per Second",
  6660            "type": "timeseries"
  6661          },
  6662          {
  6663            "datasource": {
  6664              "type": "prometheus",
  6665              "uid": "$datasource"
  6666            },
  6667            "description": "",
  6668            "fieldConfig": {
  6669              "defaults": {
  6670                "color": {
  6671                  "mode": "palette-classic"
  6672                },
  6673                "custom": {
  6674                  "axisCenteredZero": false,
  6675                  "axisColorMode": "text",
  6676                  "axisLabel": "",
  6677                  "axisPlacement": "auto",
  6678                  "barAlignment": 0,
  6679                  "drawStyle": "line",
  6680                  "fillOpacity": 20,
  6681                  "gradientMode": "none",
  6682                  "hideFrom": {
  6683                    "legend": false,
  6684                    "tooltip": false,
  6685                    "viz": false
  6686                  },
  6687                  "lineInterpolation": "linear",
  6688                  "lineWidth": 2,
  6689                  "pointSize": 5,
  6690                  "scaleDistribution": {
  6691                    "type": "linear"
  6692                  },
  6693                  "showPoints": "never",
  6694                  "spanNulls": false,
  6695                  "stacking": {
  6696                    "group": "A",
  6697                    "mode": "none"
  6698                  },
  6699                  "thresholdsStyle": {
  6700                    "mode": "off"
  6701                  }
  6702                },
  6703                "links": [],
  6704                "mappings": [],
  6705                "min": 0,
  6706                "thresholds": {
  6707                  "mode": "absolute",
  6708                  "steps": [
  6709                    {
  6710                      "color": "green"
  6711                    },
  6712                    {
  6713                      "color": "red",
  6714                      "value": 80
  6715                    }
  6716                  ]
  6717                },
  6718                "unit": "short"
  6719              },
  6720              "overrides": []
  6721            },
  6722            "gridPos": {
  6723              "h": 8,
  6724              "w": 12,
  6725              "x": 12,
  6726              "y": 63
  6727            },
  6728            "id": 504,
  6729            "links": [],
  6730            "options": {
  6731              "legend": {
  6732                "calcs": [
  6733                  "mean",
  6734                  "lastNotNull",
  6735                  "max",
  6736                  "min"
  6737                ],
  6738                "displayMode": "table",
  6739                "placement": "bottom",
  6740                "showLegend": true
  6741              },
  6742              "tooltip": {
  6743                "mode": "multi",
  6744                "sort": "none"
  6745              }
  6746            },
  6747            "pluginVersion": "9.2.4",
  6748            "targets": [
  6749              {
  6750                "calculatedInterval": "2m",
  6751                "datasource": {
  6752                  "uid": "$datasource"
  6753                },
  6754                "datasourceErrors": {},
  6755                "editorMode": "code",
  6756                "errors": {},
  6757                "expr": "rate(pg_stat_database_conflicts_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  6758                "format": "time_series",
  6759                "interval": "",
  6760                "intervalFactor": 1,
  6761                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  6762                "metric": "",
  6763                "range": true,
  6764                "refId": "A",
  6765                "step": 20
  6766              }
  6767            ],
  6768            "title": "Conflicts Per Second",
  6769            "type": "timeseries"
  6770          },
  6771          {
  6772            "datasource": {
  6773              "type": "prometheus",
  6774              "uid": "$datasource"
  6775            },
  6776            "description": "",
  6777            "fieldConfig": {
  6778              "defaults": {
  6779                "color": {
  6780                  "mode": "palette-classic"
  6781                },
  6782                "custom": {
  6783                  "axisCenteredZero": false,
  6784                  "axisColorMode": "text",
  6785                  "axisLabel": "",
  6786                  "axisPlacement": "auto",
  6787                  "barAlignment": 0,
  6788                  "drawStyle": "line",
  6789                  "fillOpacity": 20,
  6790                  "gradientMode": "none",
  6791                  "hideFrom": {
  6792                    "legend": false,
  6793                    "tooltip": false,
  6794                    "viz": false
  6795                  },
  6796                  "lineInterpolation": "linear",
  6797                  "lineWidth": 2,
  6798                  "pointSize": 5,
  6799                  "scaleDistribution": {
  6800                    "type": "linear"
  6801                  },
  6802                  "showPoints": "never",
  6803                  "spanNulls": false,
  6804                  "stacking": {
  6805                    "group": "A",
  6806                    "mode": "none"
  6807                  },
  6808                  "thresholdsStyle": {
  6809                    "mode": "off"
  6810                  }
  6811                },
  6812                "links": [],
  6813                "mappings": [],
  6814                "min": 0,
  6815                "thresholds": {
  6816                  "mode": "absolute",
  6817                  "steps": [
  6818                    {
  6819                      "color": "green"
  6820                    },
  6821                    {
  6822                      "color": "red",
  6823                      "value": 80
  6824                    }
  6825                  ]
  6826                },
  6827                "unit": "short"
  6828              },
  6829              "overrides": []
  6830            },
  6831            "gridPos": {
  6832              "h": 8,
  6833              "w": 12,
  6834              "x": 0,
  6835              "y": 71
  6836            },
  6837            "id": 384,
  6838            "links": [],
  6839            "options": {
  6840              "legend": {
  6841                "calcs": [
  6842                  "mean",
  6843                  "lastNotNull",
  6844                  "max",
  6845                  "min"
  6846                ],
  6847                "displayMode": "table",
  6848                "placement": "bottom",
  6849                "showLegend": true
  6850              },
  6851              "tooltip": {
  6852                "mode": "multi",
  6853                "sort": "none"
  6854              }
  6855            },
  6856            "pluginVersion": "9.2.4",
  6857            "targets": [
  6858              {
  6859                "calculatedInterval": "2m",
  6860                "datasource": {
  6861                  "uid": "$datasource"
  6862                },
  6863                "datasourceErrors": {},
  6864                "editorMode": "code",
  6865                "errors": {},
  6866                "expr": "rate(pg_stat_database_deadlocks_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  6867                "format": "time_series",
  6868                "interval": "",
  6869                "intervalFactor": 1,
  6870                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  6871                "metric": "",
  6872                "range": true,
  6873                "refId": "A",
  6874                "step": 20
  6875              }
  6876            ],
  6877            "title": "Deadlocks Per Second",
  6878            "type": "timeseries"
  6879          }
  6880        ],
  6881        "targets": [
  6882          {
  6883            "datasource": {
  6884              "uid": "$datasource"
  6885            },
  6886            "refId": "A"
  6887          }
  6888        ],
  6889        "title": "Conflicts & Deadlocks",
  6890        "type": "row"
  6891      },
  6892      {
  6893        "collapsed": true,
  6894        "gridPos": {
  6895          "h": 1,
  6896          "w": 24,
  6897          "x": 0,
  6898          "y": 39
  6899        },
  6900        "id": 400,
  6901        "panels": [
  6902          {
  6903            "datasource": {
  6904              "type": "prometheus",
  6905              "uid": "$datasource"
  6906            },
  6907            "description": "",
  6908            "fieldConfig": {
  6909              "defaults": {
  6910                "color": {
  6911                  "mode": "palette-classic"
  6912                },
  6913                "custom": {
  6914                  "axisCenteredZero": false,
  6915                  "axisColorMode": "text",
  6916                  "axisLabel": "",
  6917                  "axisPlacement": "auto",
  6918                  "barAlignment": 0,
  6919                  "drawStyle": "line",
  6920                  "fillOpacity": 20,
  6921                  "gradientMode": "none",
  6922                  "hideFrom": {
  6923                    "legend": false,
  6924                    "tooltip": false,
  6925                    "viz": false
  6926                  },
  6927                  "lineInterpolation": "linear",
  6928                  "lineWidth": 2,
  6929                  "pointSize": 5,
  6930                  "scaleDistribution": {
  6931                    "type": "linear"
  6932                  },
  6933                  "showPoints": "never",
  6934                  "spanNulls": false,
  6935                  "stacking": {
  6936                    "group": "A",
  6937                    "mode": "none"
  6938                  },
  6939                  "thresholdsStyle": {
  6940                    "mode": "off"
  6941                  }
  6942                },
  6943                "links": [],
  6944                "mappings": [],
  6945                "min": 0,
  6946                "thresholds": {
  6947                  "mode": "absolute",
  6948                  "steps": [
  6949                    {
  6950                      "color": "green"
  6951                    },
  6952                    {
  6953                      "color": "red",
  6954                      "value": 80
  6955                    }
  6956                  ]
  6957                },
  6958                "unit": "short"
  6959              },
  6960              "overrides": []
  6961            },
  6962            "gridPos": {
  6963              "h": 8,
  6964              "w": 12,
  6965              "x": 0,
  6966              "y": 64
  6967            },
  6968            "id": 488,
  6969            "links": [],
  6970            "options": {
  6971              "legend": {
  6972                "calcs": [
  6973                  "mean",
  6974                  "lastNotNull",
  6975                  "max",
  6976                  "min"
  6977                ],
  6978                "displayMode": "table",
  6979                "placement": "bottom",
  6980                "showLegend": true
  6981              },
  6982              "tooltip": {
  6983                "mode": "multi",
  6984                "sort": "none"
  6985              }
  6986            },
  6987            "pluginVersion": "9.2.4",
  6988            "targets": [
  6989              {
  6990                "calculatedInterval": "2m",
  6991                "datasource": {
  6992                  "uid": "$datasource"
  6993                },
  6994                "datasourceErrors": {},
  6995                "editorMode": "code",
  6996                "errors": {},
  6997                "expr": "rate(pg_stat_database_blks_hit_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  6998                "format": "time_series",
  6999                "interval": "",
  7000                "intervalFactor": 1,
  7001                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  7002                "metric": "",
  7003                "range": true,
  7004                "refId": "A",
  7005                "step": 20
  7006              }
  7007            ],
  7008            "title": "Buffer Cache Read Per Second",
  7009            "type": "timeseries"
  7010          },
  7011          {
  7012            "datasource": {
  7013              "type": "prometheus",
  7014              "uid": "$datasource"
  7015            },
  7016            "description": "",
  7017            "fieldConfig": {
  7018              "defaults": {
  7019                "color": {
  7020                  "mode": "palette-classic"
  7021                },
  7022                "custom": {
  7023                  "axisCenteredZero": false,
  7024                  "axisColorMode": "text",
  7025                  "axisLabel": "",
  7026                  "axisPlacement": "auto",
  7027                  "barAlignment": 0,
  7028                  "drawStyle": "line",
  7029                  "fillOpacity": 20,
  7030                  "gradientMode": "none",
  7031                  "hideFrom": {
  7032                    "legend": false,
  7033                    "tooltip": false,
  7034                    "viz": false
  7035                  },
  7036                  "lineInterpolation": "linear",
  7037                  "lineWidth": 2,
  7038                  "pointSize": 5,
  7039                  "scaleDistribution": {
  7040                    "type": "linear"
  7041                  },
  7042                  "showPoints": "never",
  7043                  "spanNulls": false,
  7044                  "stacking": {
  7045                    "group": "A",
  7046                    "mode": "none"
  7047                  },
  7048                  "thresholdsStyle": {
  7049                    "mode": "off"
  7050                  }
  7051                },
  7052                "links": [],
  7053                "mappings": [],
  7054                "min": 0,
  7055                "thresholds": {
  7056                  "mode": "absolute",
  7057                  "steps": [
  7058                    {
  7059                      "color": "green"
  7060                    },
  7061                    {
  7062                      "color": "red",
  7063                      "value": 80
  7064                    }
  7065                  ]
  7066                },
  7067                "unit": "short"
  7068              },
  7069              "overrides": []
  7070            },
  7071            "gridPos": {
  7072              "h": 8,
  7073              "w": 12,
  7074              "x": 12,
  7075              "y": 64
  7076            },
  7077            "id": 409,
  7078            "links": [],
  7079            "options": {
  7080              "legend": {
  7081                "calcs": [
  7082                  "mean",
  7083                  "lastNotNull",
  7084                  "max",
  7085                  "min"
  7086                ],
  7087                "displayMode": "table",
  7088                "placement": "bottom",
  7089                "showLegend": true
  7090              },
  7091              "tooltip": {
  7092                "mode": "multi",
  7093                "sort": "none"
  7094              }
  7095            },
  7096            "pluginVersion": "9.2.4",
  7097            "targets": [
  7098              {
  7099                "calculatedInterval": "2m",
  7100                "datasource": {
  7101                  "uid": "$datasource"
  7102                },
  7103                "datasourceErrors": {},
  7104                "editorMode": "code",
  7105                "errors": {},
  7106                "expr": "rate(pg_stat_database_blks_read_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  7107                "format": "time_series",
  7108                "interval": "",
  7109                "intervalFactor": 1,
  7110                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  7111                "metric": "",
  7112                "range": true,
  7113                "refId": "A",
  7114                "step": 20
  7115              }
  7116            ],
  7117            "title": "Disk Block Read Per Second",
  7118            "type": "timeseries"
  7119          },
  7120          {
  7121            "datasource": {
  7122              "type": "prometheus",
  7123              "uid": "$datasource"
  7124            },
  7125            "description": "",
  7126            "fieldConfig": {
  7127              "defaults": {
  7128                "color": {
  7129                  "mode": "palette-classic"
  7130                },
  7131                "custom": {
  7132                  "axisCenteredZero": false,
  7133                  "axisColorMode": "text",
  7134                  "axisLabel": "",
  7135                  "axisPlacement": "auto",
  7136                  "barAlignment": 0,
  7137                  "drawStyle": "line",
  7138                  "fillOpacity": 20,
  7139                  "gradientMode": "none",
  7140                  "hideFrom": {
  7141                    "legend": false,
  7142                    "tooltip": false,
  7143                    "viz": false
  7144                  },
  7145                  "lineInterpolation": "linear",
  7146                  "lineWidth": 2,
  7147                  "pointSize": 5,
  7148                  "scaleDistribution": {
  7149                    "type": "linear"
  7150                  },
  7151                  "showPoints": "never",
  7152                  "spanNulls": false,
  7153                  "stacking": {
  7154                    "group": "A",
  7155                    "mode": "none"
  7156                  },
  7157                  "thresholdsStyle": {
  7158                    "mode": "off"
  7159                  }
  7160                },
  7161                "links": [],
  7162                "mappings": [],
  7163                "min": 0,
  7164                "thresholds": {
  7165                  "mode": "absolute",
  7166                  "steps": [
  7167                    {
  7168                      "color": "green"
  7169                    },
  7170                    {
  7171                      "color": "red",
  7172                      "value": 80
  7173                    }
  7174                  ]
  7175                },
  7176                "unit": "ms"
  7177              },
  7178              "overrides": []
  7179            },
  7180            "gridPos": {
  7181              "h": 8,
  7182              "w": 12,
  7183              "x": 0,
  7184              "y": 72
  7185            },
  7186            "id": 401,
  7187            "links": [],
  7188            "options": {
  7189              "legend": {
  7190                "calcs": [
  7191                  "mean",
  7192                  "lastNotNull",
  7193                  "max",
  7194                  "min"
  7195                ],
  7196                "displayMode": "table",
  7197                "placement": "bottom",
  7198                "showLegend": true
  7199              },
  7200              "tooltip": {
  7201                "mode": "multi",
  7202                "sort": "none"
  7203              }
  7204            },
  7205            "pluginVersion": "9.2.4",
  7206            "targets": [
  7207              {
  7208                "calculatedInterval": "2m",
  7209                "datasource": {
  7210                  "uid": "$datasource"
  7211                },
  7212                "datasourceErrors": {},
  7213                "editorMode": "code",
  7214                "errors": {},
  7215                "expr": "rate(pg_stat_database_blk_read_time_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  7216                "format": "time_series",
  7217                "interval": "",
  7218                "intervalFactor": 1,
  7219                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  7220                "metric": "",
  7221                "range": true,
  7222                "refId": "A",
  7223                "step": 20
  7224              }
  7225            ],
  7226            "title": "Block Read Time",
  7227            "type": "timeseries"
  7228          },
  7229          {
  7230            "datasource": {
  7231              "type": "prometheus",
  7232              "uid": "$datasource"
  7233            },
  7234            "description": "",
  7235            "fieldConfig": {
  7236              "defaults": {
  7237                "color": {
  7238                  "mode": "palette-classic"
  7239                },
  7240                "custom": {
  7241                  "axisCenteredZero": false,
  7242                  "axisColorMode": "text",
  7243                  "axisLabel": "",
  7244                  "axisPlacement": "auto",
  7245                  "barAlignment": 0,
  7246                  "drawStyle": "line",
  7247                  "fillOpacity": 20,
  7248                  "gradientMode": "none",
  7249                  "hideFrom": {
  7250                    "legend": false,
  7251                    "tooltip": false,
  7252                    "viz": false
  7253                  },
  7254                  "lineInterpolation": "linear",
  7255                  "lineWidth": 2,
  7256                  "pointSize": 5,
  7257                  "scaleDistribution": {
  7258                    "type": "linear"
  7259                  },
  7260                  "showPoints": "never",
  7261                  "spanNulls": false,
  7262                  "stacking": {
  7263                    "group": "A",
  7264                    "mode": "none"
  7265                  },
  7266                  "thresholdsStyle": {
  7267                    "mode": "off"
  7268                  }
  7269                },
  7270                "links": [],
  7271                "mappings": [],
  7272                "min": 0,
  7273                "thresholds": {
  7274                  "mode": "absolute",
  7275                  "steps": [
  7276                    {
  7277                      "color": "green"
  7278                    },
  7279                    {
  7280                      "color": "red",
  7281                      "value": 80
  7282                    }
  7283                  ]
  7284                },
  7285                "unit": "ms"
  7286              },
  7287              "overrides": []
  7288            },
  7289            "gridPos": {
  7290              "h": 8,
  7291              "w": 12,
  7292              "x": 12,
  7293              "y": 72
  7294            },
  7295            "id": 402,
  7296            "links": [],
  7297            "options": {
  7298              "legend": {
  7299                "calcs": [
  7300                  "mean",
  7301                  "lastNotNull",
  7302                  "max",
  7303                  "min"
  7304                ],
  7305                "displayMode": "table",
  7306                "placement": "bottom",
  7307                "showLegend": true
  7308              },
  7309              "tooltip": {
  7310                "mode": "multi",
  7311                "sort": "none"
  7312              }
  7313            },
  7314            "pluginVersion": "9.2.4",
  7315            "targets": [
  7316              {
  7317                "calculatedInterval": "2m",
  7318                "datasource": {
  7319                  "uid": "$datasource"
  7320                },
  7321                "datasourceErrors": {},
  7322                "editorMode": "code",
  7323                "errors": {},
  7324                "expr": "rate(pg_stat_database_blk_write_time_total{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}[$__rate_interval])",
  7325                "format": "time_series",
  7326                "interval": "",
  7327                "intervalFactor": 1,
  7328                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  7329                "metric": "",
  7330                "range": true,
  7331                "refId": "A",
  7332                "step": 20
  7333              }
  7334            ],
  7335            "title": "Block Write Time",
  7336            "type": "timeseries"
  7337          }
  7338        ],
  7339        "title": "Shared Buffers & Blocks",
  7340        "type": "row"
  7341      },
  7342      {
  7343        "collapsed": true,
  7344        "gridPos": {
  7345          "h": 1,
  7346          "w": 24,
  7347          "x": 0,
  7348          "y": 40
  7349        },
  7350        "id": 417,
  7351        "panels": [
  7352          {
  7353            "datasource": {
  7354              "type": "prometheus",
  7355              "uid": "$datasource"
  7356            },
  7357            "description": "",
  7358            "fieldConfig": {
  7359              "defaults": {
  7360                "color": {
  7361                  "mode": "palette-classic"
  7362                },
  7363                "custom": {
  7364                  "axisCenteredZero": false,
  7365                  "axisColorMode": "text",
  7366                  "axisLabel": "",
  7367                  "axisPlacement": "auto",
  7368                  "barAlignment": 0,
  7369                  "drawStyle": "line",
  7370                  "fillOpacity": 20,
  7371                  "gradientMode": "none",
  7372                  "hideFrom": {
  7373                    "legend": false,
  7374                    "tooltip": false,
  7375                    "viz": false
  7376                  },
  7377                  "lineInterpolation": "linear",
  7378                  "lineWidth": 2,
  7379                  "pointSize": 5,
  7380                  "scaleDistribution": {
  7381                    "type": "linear"
  7382                  },
  7383                  "showPoints": "never",
  7384                  "spanNulls": false,
  7385                  "stacking": {
  7386                    "group": "A",
  7387                    "mode": "none"
  7388                  },
  7389                  "thresholdsStyle": {
  7390                    "mode": "off"
  7391                  }
  7392                },
  7393                "links": [],
  7394                "mappings": [],
  7395                "min": 0,
  7396                "thresholds": {
  7397                  "mode": "absolute",
  7398                  "steps": [
  7399                    {
  7400                      "color": "green"
  7401                    },
  7402                    {
  7403                      "color": "red",
  7404                      "value": 80
  7405                    }
  7406                  ]
  7407                },
  7408                "unit": "bytes"
  7409              },
  7410              "overrides": []
  7411            },
  7412            "gridPos": {
  7413              "h": 8,
  7414              "w": 12,
  7415              "x": 0,
  7416              "y": 65
  7417            },
  7418            "id": 418,
  7419            "links": [],
  7420            "options": {
  7421              "legend": {
  7422                "calcs": [
  7423                  "mean",
  7424                  "lastNotNull",
  7425                  "max",
  7426                  "min"
  7427                ],
  7428                "displayMode": "table",
  7429                "placement": "bottom",
  7430                "showLegend": true
  7431              },
  7432              "tooltip": {
  7433                "mode": "multi",
  7434                "sort": "none"
  7435              }
  7436            },
  7437            "pluginVersion": "9.2.4",
  7438            "targets": [
  7439              {
  7440                "calculatedInterval": "2m",
  7441                "datasource": {
  7442                  "uid": "$datasource"
  7443                },
  7444                "datasourceErrors": {},
  7445                "editorMode": "code",
  7446                "errors": {},
  7447                "expr": "pg_database_size_bytes{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",datname=~\"$database\",job=\"$job\"}",
  7448                "format": "time_series",
  7449                "interval": "",
  7450                "intervalFactor": 1,
  7451                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{datname}}",
  7452                "metric": "",
  7453                "range": true,
  7454                "refId": "A",
  7455                "step": 20
  7456              }
  7457            ],
  7458            "title": "Disk Size",
  7459            "type": "timeseries"
  7460          }
  7461        ],
  7462        "title": "Database Size",
  7463        "type": "row"
  7464      },
  7465      {
  7466        "collapsed": true,
  7467        "gridPos": {
  7468          "h": 1,
  7469          "w": 24,
  7470          "x": 0,
  7471          "y": 41
  7472        },
  7473        "id": 459,
  7474        "panels": [
  7475          {
  7476            "datasource": {
  7477              "type": "prometheus",
  7478              "uid": "$datasource"
  7479            },
  7480            "description": "",
  7481            "fieldConfig": {
  7482              "defaults": {
  7483                "color": {
  7484                  "mode": "palette-classic"
  7485                },
  7486                "custom": {
  7487                  "axisCenteredZero": false,
  7488                  "axisColorMode": "text",
  7489                  "axisLabel": "",
  7490                  "axisPlacement": "auto",
  7491                  "barAlignment": 0,
  7492                  "drawStyle": "line",
  7493                  "fillOpacity": 20,
  7494                  "gradientMode": "none",
  7495                  "hideFrom": {
  7496                    "legend": false,
  7497                    "tooltip": false,
  7498                    "viz": false
  7499                  },
  7500                  "lineInterpolation": "linear",
  7501                  "lineWidth": 2,
  7502                  "pointSize": 5,
  7503                  "scaleDistribution": {
  7504                    "type": "linear"
  7505                  },
  7506                  "showPoints": "never",
  7507                  "spanNulls": false,
  7508                  "stacking": {
  7509                    "group": "A",
  7510                    "mode": "none"
  7511                  },
  7512                  "thresholdsStyle": {
  7513                    "mode": "off"
  7514                  }
  7515                },
  7516                "links": [],
  7517                "mappings": [],
  7518                "min": 0,
  7519                "thresholds": {
  7520                  "mode": "absolute",
  7521                  "steps": [
  7522                    {
  7523                      "color": "green"
  7524                    },
  7525                    {
  7526                      "color": "red",
  7527                      "value": 80
  7528                    }
  7529                  ]
  7530                },
  7531                "unit": "short"
  7532              },
  7533              "overrides": []
  7534            },
  7535            "gridPos": {
  7536              "h": 8,
  7537              "w": 12,
  7538              "x": 0,
  7539              "y": 66
  7540            },
  7541            "id": 486,
  7542            "links": [],
  7543            "options": {
  7544              "legend": {
  7545                "calcs": [],
  7546                "displayMode": "table",
  7547                "placement": "bottom",
  7548                "showLegend": true
  7549              },
  7550              "tooltip": {
  7551                "mode": "multi",
  7552                "sort": "none"
  7553              }
  7554            },
  7555            "pluginVersion": "9.2.4",
  7556            "targets": [
  7557              {
  7558                "calculatedInterval": "2m",
  7559                "datasource": {
  7560                  "uid": "$datasource"
  7561                },
  7562                "datasourceErrors": {},
  7563                "editorMode": "code",
  7564                "errors": {},
  7565                "expr": "sum(pg_replication_is_master{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by(namespace,app_kubernetes_io_instance,pod)",
  7566                "format": "time_series",
  7567                "interval": "",
  7568                "intervalFactor": 1,
  7569                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ",
  7570                "metric": "",
  7571                "range": true,
  7572                "refId": "A",
  7573                "step": 20
  7574              }
  7575            ],
  7576            "title": "Master Role",
  7577            "type": "timeseries"
  7578          },
  7579          {
  7580            "datasource": {
  7581              "type": "prometheus",
  7582              "uid": "$datasource"
  7583            },
  7584            "description": "",
  7585            "fieldConfig": {
  7586              "defaults": {
  7587                "color": {
  7588                  "mode": "palette-classic"
  7589                },
  7590                "custom": {
  7591                  "axisCenteredZero": false,
  7592                  "axisColorMode": "text",
  7593                  "axisLabel": "",
  7594                  "axisPlacement": "auto",
  7595                  "barAlignment": 0,
  7596                  "drawStyle": "line",
  7597                  "fillOpacity": 20,
  7598                  "gradientMode": "none",
  7599                  "hideFrom": {
  7600                    "legend": false,
  7601                    "tooltip": false,
  7602                    "viz": false
  7603                  },
  7604                  "lineInterpolation": "linear",
  7605                  "lineWidth": 2,
  7606                  "pointSize": 5,
  7607                  "scaleDistribution": {
  7608                    "type": "linear"
  7609                  },
  7610                  "showPoints": "never",
  7611                  "spanNulls": false,
  7612                  "stacking": {
  7613                    "group": "A",
  7614                    "mode": "none"
  7615                  },
  7616                  "thresholdsStyle": {
  7617                    "mode": "off"
  7618                  }
  7619                },
  7620                "links": [],
  7621                "mappings": [],
  7622                "min": 0,
  7623                "thresholds": {
  7624                  "mode": "absolute",
  7625                  "steps": [
  7626                    {
  7627                      "color": "green"
  7628                    },
  7629                    {
  7630                      "color": "red",
  7631                      "value": 80
  7632                    }
  7633                  ]
  7634                },
  7635                "unit": "bytes"
  7636              },
  7637              "overrides": []
  7638            },
  7639            "gridPos": {
  7640              "h": 8,
  7641              "w": 12,
  7642              "x": 12,
  7643              "y": 66
  7644            },
  7645            "id": 484,
  7646            "links": [],
  7647            "options": {
  7648              "legend": {
  7649                "calcs": [],
  7650                "displayMode": "table",
  7651                "placement": "bottom",
  7652                "showLegend": true
  7653              },
  7654              "tooltip": {
  7655                "mode": "multi",
  7656                "sort": "none"
  7657              }
  7658            },
  7659            "pluginVersion": "9.2.4",
  7660            "targets": [
  7661              {
  7662                "calculatedInterval": "2m",
  7663                "datasource": {
  7664                  "uid": "$datasource"
  7665                },
  7666                "datasourceErrors": {},
  7667                "editorMode": "code",
  7668                "errors": {},
  7669                "expr": "sum (pg_replication_slots_pg_wal_lsn_diff{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",job=\"$job\"}) by(namespace,app_kubernetes_io_instance,slot_name)",
  7670                "format": "time_series",
  7671                "interval": "",
  7672                "intervalFactor": 1,
  7673                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{slot_name}} ",
  7674                "metric": "",
  7675                "range": true,
  7676                "refId": "A",
  7677                "step": 20
  7678              }
  7679            ],
  7680            "title": "Replication Lag Size",
  7681            "type": "timeseries"
  7682          },
  7683          {
  7684            "datasource": {
  7685              "type": "prometheus",
  7686              "uid": "$datasource"
  7687            },
  7688            "description": "",
  7689            "fieldConfig": {
  7690              "defaults": {
  7691                "color": {
  7692                  "mode": "palette-classic"
  7693                },
  7694                "custom": {
  7695                  "axisCenteredZero": false,
  7696                  "axisColorMode": "text",
  7697                  "axisLabel": "",
  7698                  "axisPlacement": "auto",
  7699                  "barAlignment": 0,
  7700                  "drawStyle": "line",
  7701                  "fillOpacity": 20,
  7702                  "gradientMode": "none",
  7703                  "hideFrom": {
  7704                    "legend": false,
  7705                    "tooltip": false,
  7706                    "viz": false
  7707                  },
  7708                  "lineInterpolation": "linear",
  7709                  "lineWidth": 2,
  7710                  "pointSize": 5,
  7711                  "scaleDistribution": {
  7712                    "type": "linear"
  7713                  },
  7714                  "showPoints": "never",
  7715                  "spanNulls": false,
  7716                  "stacking": {
  7717                    "group": "A",
  7718                    "mode": "none"
  7719                  },
  7720                  "thresholdsStyle": {
  7721                    "mode": "off"
  7722                  }
  7723                },
  7724                "links": [],
  7725                "mappings": [],
  7726                "min": 0,
  7727                "thresholds": {
  7728                  "mode": "absolute",
  7729                  "steps": [
  7730                    {
  7731                      "color": "green"
  7732                    },
  7733                    {
  7734                      "color": "red",
  7735                      "value": 80
  7736                    }
  7737                  ]
  7738                },
  7739                "unit": "s"
  7740              },
  7741              "overrides": []
  7742            },
  7743            "gridPos": {
  7744              "h": 8,
  7745              "w": 12,
  7746              "x": 0,
  7747              "y": 74
  7748            },
  7749            "id": 483,
  7750            "links": [],
  7751            "options": {
  7752              "legend": {
  7753                "calcs": [],
  7754                "displayMode": "table",
  7755                "placement": "bottom",
  7756                "showLegend": true
  7757              },
  7758              "tooltip": {
  7759                "mode": "multi",
  7760                "sort": "none"
  7761              }
  7762            },
  7763            "pluginVersion": "9.2.4",
  7764            "targets": [
  7765              {
  7766                "calculatedInterval": "2m",
  7767                "datasource": {
  7768                  "uid": "$datasource"
  7769                },
  7770                "datasourceErrors": {},
  7771                "editorMode": "code",
  7772                "errors": {},
  7773                "expr": "sum(pg_replication_lag{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",job=\"$job\"}) by(namespace, app_kubernetes_io_instance,pod)",
  7774                "format": "time_series",
  7775                "interval": "",
  7776                "intervalFactor": 1,
  7777                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} ",
  7778                "metric": "",
  7779                "range": true,
  7780                "refId": "A",
  7781                "step": 20
  7782              }
  7783            ],
  7784            "title": "Replication Lag Time",
  7785            "type": "timeseries"
  7786          },
  7787          {
  7788            "datasource": {
  7789              "type": "prometheus",
  7790              "uid": "prometheus"
  7791            },
  7792            "fieldConfig": {
  7793              "defaults": {
  7794                "color": {
  7795                  "mode": "palette-classic"
  7796                },
  7797                "custom": {
  7798                  "axisCenteredZero": false,
  7799                  "axisColorMode": "text",
  7800                  "axisLabel": "",
  7801                  "axisPlacement": "auto",
  7802                  "barAlignment": 0,
  7803                  "drawStyle": "line",
  7804                  "fillOpacity": 20,
  7805                  "gradientMode": "none",
  7806                  "hideFrom": {
  7807                    "legend": false,
  7808                    "tooltip": false,
  7809                    "viz": false
  7810                  },
  7811                  "lineInterpolation": "linear",
  7812                  "lineWidth": 2,
  7813                  "pointSize": 5,
  7814                  "scaleDistribution": {
  7815                    "type": "linear"
  7816                  },
  7817                  "showPoints": "auto",
  7818                  "spanNulls": false,
  7819                  "stacking": {
  7820                    "group": "A",
  7821                    "mode": "none"
  7822                  },
  7823                  "thresholdsStyle": {
  7824                    "mode": "off"
  7825                  }
  7826                },
  7827                "mappings": [],
  7828                "thresholds": {
  7829                  "mode": "absolute",
  7830                  "steps": [
  7831                    {
  7832                      "color": "green"
  7833                    },
  7834                    {
  7835                      "color": "red",
  7836                      "value": 80
  7837                    }
  7838                  ]
  7839                },
  7840                "unit": "short"
  7841              },
  7842              "overrides": []
  7843            },
  7844            "gridPos": {
  7845              "h": 8,
  7846              "w": 12,
  7847              "x": 12,
  7848              "y": 74
  7849            },
  7850            "id": 463,
  7851            "options": {
  7852              "legend": {
  7853                "calcs": [],
  7854                "displayMode": "list",
  7855                "placement": "bottom",
  7856                "showLegend": true
  7857              },
  7858              "tooltip": {
  7859                "mode": "single",
  7860                "sort": "none"
  7861              }
  7862            },
  7863            "targets": [
  7864              {
  7865                "datasource": {
  7866                  "type": "prometheus",
  7867                  "uid": "prometheus"
  7868                },
  7869                "editorMode": "code",
  7870                "expr": "sum(pg_replication_slots_active{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",job=\"$job\"}) by(namespace,app_kubernetes_io_instance)",
  7871                "interval": "",
  7872                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}}",
  7873                "range": true,
  7874                "refId": "A"
  7875              }
  7876            ],
  7877            "title": "Replication Slots",
  7878            "type": "timeseries"
  7879          },
  7880          {
  7881            "datasource": {
  7882              "type": "prometheus",
  7883              "uid": "$datasource"
  7884            },
  7885            "description": "",
  7886            "fieldConfig": {
  7887              "defaults": {
  7888                "color": {
  7889                  "mode": "palette-classic"
  7890                },
  7891                "custom": {
  7892                  "axisCenteredZero": false,
  7893                  "axisColorMode": "text",
  7894                  "axisLabel": "",
  7895                  "axisPlacement": "auto",
  7896                  "barAlignment": 0,
  7897                  "drawStyle": "line",
  7898                  "fillOpacity": 20,
  7899                  "gradientMode": "none",
  7900                  "hideFrom": {
  7901                    "legend": false,
  7902                    "tooltip": false,
  7903                    "viz": false
  7904                  },
  7905                  "lineInterpolation": "linear",
  7906                  "lineWidth": 2,
  7907                  "pointSize": 5,
  7908                  "scaleDistribution": {
  7909                    "type": "linear"
  7910                  },
  7911                  "showPoints": "never",
  7912                  "spanNulls": false,
  7913                  "stacking": {
  7914                    "group": "A",
  7915                    "mode": "none"
  7916                  },
  7917                  "thresholdsStyle": {
  7918                    "mode": "off"
  7919                  }
  7920                },
  7921                "links": [],
  7922                "mappings": [],
  7923                "min": 0,
  7924                "thresholds": {
  7925                  "mode": "absolute",
  7926                  "steps": [
  7927                    {
  7928                      "color": "green"
  7929                    },
  7930                    {
  7931                      "color": "red",
  7932                      "value": 80
  7933                    }
  7934                  ]
  7935                },
  7936                "unit": "short"
  7937              },
  7938              "overrides": []
  7939            },
  7940            "gridPos": {
  7941              "h": 8,
  7942              "w": 12,
  7943              "x": 0,
  7944              "y": 82
  7945            },
  7946            "id": 485,
  7947            "links": [],
  7948            "options": {
  7949              "legend": {
  7950                "calcs": [],
  7951                "displayMode": "table",
  7952                "placement": "bottom",
  7953                "showLegend": true
  7954              },
  7955              "tooltip": {
  7956                "mode": "multi",
  7957                "sort": "none"
  7958              }
  7959            },
  7960            "pluginVersion": "9.2.4",
  7961            "targets": [
  7962              {
  7963                "calculatedInterval": "2m",
  7964                "datasource": {
  7965                  "uid": "$datasource"
  7966                },
  7967                "datasourceErrors": {},
  7968                "editorMode": "code",
  7969                "errors": {},
  7970                "expr": "(time() - sum(pg_stat_replication_reply_time{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",job=\"$job\"}) by(namespace,app_kubernetes_io_instance,application_name)) < bool 2000",
  7971                "format": "time_series",
  7972                "interval": "",
  7973                "intervalFactor": 1,
  7974                "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{application_name}} ",
  7975                "metric": "",
  7976                "range": true,
  7977                "refId": "A",
  7978                "step": 20
  7979              }
  7980            ],
  7981            "title": "Replication Status",
  7982            "type": "timeseries"
  7983          }
  7984        ],
  7985        "title": "Replication",
  7986        "type": "row"
  7987      }
  7988    ],
  7989    "refresh": false,
  7990    "schemaVersion": 37,
  7991    "style": "dark",
  7992    "tags": [
  7993      "postgres",
  7994      "db"
  7995    ],
  7996    "templating": {
  7997      "list": [
  7998        {
  7999          "current": {
  8000            "selected": false,
  8001            "text": "default",
  8002            "value": "default"
  8003          },
  8004          "hide": 0,
  8005          "includeAll": false,
  8006          "label": "data source",
  8007          "multi": false,
  8008          "name": "datasource",
  8009          "options": [],
  8010          "query": "prometheus",
  8011          "queryValue": "",
  8012          "refresh": 1,
  8013          "regex": "",
  8014          "skipUrlSync": false,
  8015          "type": "datasource"
  8016        },
  8017        {
  8018          "allValue": ".+",
  8019          "current": {
  8020            "selected": true,
  8021            "text": [
  8022              "All"
  8023            ],
  8024            "value": [
  8025              "$__all"
  8026            ]
  8027          },
  8028          "datasource": {
  8029            "type": "prometheus",
  8030            "uid": "${datasource}"
  8031          },
  8032          "definition": "label_values(pg_up{job=\"$job\"}, namespace)",
  8033          "hide": 0,
  8034          "includeAll": true,
  8035          "label": "namespace",
  8036          "multi": true,
  8037          "name": "namespace",
  8038          "options": [],
  8039          "query": {
  8040            "query": "label_values(pg_up{job=\"$job\"}, namespace)",
  8041            "refId": "StandardVariableQuery"
  8042          },
  8043          "refresh": 1,
  8044          "regex": "",
  8045          "skipUrlSync": false,
  8046          "sort": 5,
  8047          "tagValuesQuery": "",
  8048          "tagsQuery": "",
  8049          "type": "query",
  8050          "useTags": false
  8051        },
  8052        {
  8053          "allValue": ".+",
  8054          "current": {
  8055            "selected": true,
  8056            "text": [
  8057              "All"
  8058            ],
  8059            "value": [
  8060              "$__all"
  8061            ]
  8062          },
  8063          "datasource": {
  8064            "type": "prometheus",
  8065            "uid": "$datasource"
  8066          },
  8067          "definition": "label_values(pg_up{job=\"$job\"}, app_kubernetes_io_instance)",
  8068          "hide": 0,
  8069          "includeAll": true,
  8070          "label": "cluster",
  8071          "multi": true,
  8072          "name": "cluster",
  8073          "options": [],
  8074          "query": {
  8075            "query": "label_values(pg_up{job=\"$job\"}, app_kubernetes_io_instance)",
  8076            "refId": "StandardVariableQuery"
  8077          },
  8078          "refresh": 1,
  8079          "regex": "",
  8080          "skipUrlSync": false,
  8081          "sort": 5,
  8082          "tagValuesQuery": "",
  8083          "tagsQuery": "",
  8084          "type": "query",
  8085          "useTags": false
  8086        },
  8087        {
  8088          "allValue": ".+",
  8089          "current": {
  8090            "selected": true,
  8091            "text": [
  8092              "All"
  8093            ],
  8094            "value": [
  8095              "$__all"
  8096            ]
  8097          },
  8098          "datasource": {
  8099            "type": "prometheus",
  8100            "uid": "$datasource"
  8101          },
  8102          "definition": "label_values(pg_up{job=\"$job\",namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\"}, pod)",
  8103          "hide": 0,
  8104          "includeAll": true,
  8105          "label": "instance",
  8106          "multi": true,
  8107          "name": "instance",
  8108          "options": [],
  8109          "query": {
  8110            "query": "label_values(pg_up{job=\"$job\",namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\"}, pod)",
  8111            "refId": "StandardVariableQuery"
  8112          },
  8113          "refresh": 2,
  8114          "regex": "",
  8115          "skipUrlSync": false,
  8116          "sort": 5,
  8117          "tagValuesQuery": "",
  8118          "tagsQuery": "",
  8119          "type": "query",
  8120          "useTags": false
  8121        },
  8122        {
  8123          "allValue": ".+",
  8124          "current": {
  8125            "selected": true,
  8126            "text": [
  8127              "All"
  8128            ],
  8129            "value": [
  8130              "$__all"
  8131            ]
  8132          },
  8133          "datasource": {
  8134            "type": "prometheus",
  8135            "uid": "$datasource"
  8136          },
  8137          "definition": "label_values(pg_database_size_bytes{job=\"$job\",namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}, datname)",
  8138          "hide": 0,
  8139          "includeAll": true,
  8140          "label": "database",
  8141          "multi": true,
  8142          "name": "database",
  8143          "options": [],
  8144          "query": {
  8145            "query": "label_values(pg_database_size_bytes{job=\"$job\",namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}, datname)",
  8146            "refId": "StandardVariableQuery"
  8147          },
  8148          "refresh": 2,
  8149          "regex": "",
  8150          "skipUrlSync": false,
  8151          "sort": 5,
  8152          "tagValuesQuery": "",
  8153          "tagsQuery": "",
  8154          "type": "query",
  8155          "useTags": false
  8156        },
  8157        {
  8158          "current": {
  8159            "selected": true,
  8160            "text": "kubeblocks-service",
  8161            "value": "kubeblocks-service"
  8162          },
  8163          "hide": 0,
  8164          "includeAll": false,
  8165          "label": "job",
  8166          "multi": false,
  8167          "name": "job",
  8168          "options": [
  8169            {
  8170              "selected": true,
  8171              "text": "kubeblocks-service",
  8172              "value": "kubeblocks-service"
  8173            },
  8174            {
  8175              "selected": false,
  8176              "text": "agamotto",
  8177              "value": "agamotto"
  8178            }
  8179          ],
  8180          "query": "kubeblocks-service,agamotto",
  8181          "queryValue": "",
  8182          "skipUrlSync": false,
  8183          "type": "custom"
  8184        }
  8185      ]
  8186    },
  8187    "time": {
  8188      "from": "now-30m",
  8189      "to": "now"
  8190    },
  8191    "timepicker": {
  8192      "collapse": false,
  8193      "enable": true,
  8194      "hidden": false,
  8195      "notice": false,
  8196      "now": true,
  8197      "refresh_intervals": [
  8198        "10s",
  8199        "30s",
  8200        "1m",
  8201        "5m",
  8202        "15m",
  8203        "30m",
  8204        "1h",
  8205        "2h",
  8206        "1d"
  8207      ],
  8208      "status": "Stable",
  8209      "time_options": [
  8210        "5m",
  8211        "15m",
  8212        "1h",
  8213        "6h",
  8214        "12h",
  8215        "24h",
  8216        "2d",
  8217        "7d",
  8218        "30d"
  8219      ],
  8220      "type": "timepicker"
  8221    },
  8222    "timezone": "",
  8223    "title": "PostgreSQL",
  8224    "uid": "postgresql",
  8225    "version": 1,
  8226    "weekStart": ""
  8227  }