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