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

     1  {
     2     "__inputs": [ ],
     3     "__requires": [ ],
     4     "annotations": {
     5        "list": [ ]
     6     },
     7     "description": "MySQL-Proxy cluster overview",
     8     "editable": true,
     9     "gnetId": null,
    10     "graphTooltip": 1,
    11     "hideControls": false,
    12     "id": null,
    13     "links": [
    14        {
    15           "asDropdown": false,
    16           "icon": "cloud",
    17           "includeVars": false,
    18           "keepTime": false,
    19           "tags": [],
    20           "targetBlank": true,
    21           "title": "ApeCloud",
    22           "tooltip": "Improved productivity, cost-efficiency and business continuity.",
    23           "type": "link",
    24           "url": "https://kubeblocks.io/"
    25        },
    26        {
    27           "asDropdown": false,
    28           "icon": "external link",
    29           "includeVars": false,
    30           "keepTime": false,
    31           "tags": [],
    32           "targetBlank": true,
    33           "title": "KubeBlocks",
    34           "tooltip": "An open-source and cloud-neutral DBaaS with Kubernetes.",
    35           "type": "link",
    36           "url": "https://github.com/apecloud/kubeblocks"
    37        },
    38        {
    39           "asDropdown": false,
    40           "icon": "external link",
    41           "includeVars": false,
    42           "keepTime": false,
    43           "tags": [
    44           "db",
    45           "mysql"
    46           ],
    47           "targetBlank": false,
    48           "title": "MySQL",
    49           "tooltip": "",
    50           "type": "dashboards",
    51           "url": ""
    52        }
    53      ],
    54     "panels": [
    55        {
    56           "collapse": false,
    57           "collapsed": false,
    58           "gridPos": {
    59              "h": 1,
    60              "w": 24,
    61              "x": 0,
    62              "y": 0
    63           },
    64           "id": 2,
    65           "panels": [ ],
    66           "repeat": null,
    67           "repeatIteration": null,
    68           "repeatRowId": null,
    69           "showTitle": true,
    70           "title": "Summary",
    71           "titleSize": "h6",
    72           "type": "row"
    73        },
    74        {
    75           "cacheTimeout": null,
    76           "colorBackground": true,
    77           "colorValue": false,
    78           "colors": [
    79              "#d44a3a",
    80              "rgba(237, 129, 40, 0.89)",
    81              "#299c46"
    82           ],
    83           "datasource": "Prometheus",
    84           "decimals": 4,
    85           "format": "percent",
    86           "gauge": {
    87              "maxValue": 100,
    88              "minValue": 0,
    89              "show": false,
    90              "thresholdLabels": false,
    91              "thresholdMarkers": true
    92           },
    93           "gridPos": {
    94              "h": 4,
    95              "w": 4,
    96              "x": 0,
    97              "y": 1
    98           },
    99           "id": 3,
   100           "interval": null,
   101           "links": [ ],
   102           "mappingType": 1,
   103           "mappingTypes": [
   104              {
   105                 "name": "value to text",
   106                 "value": 1
   107              },
   108              {
   109                 "name": "range to text",
   110                 "value": 2
   111              }
   112           ],
   113           "maxDataPoints": 100,
   114           "nullPointMode": "connected",
   115           "nullText": null,
   116           "postfix": "",
   117           "postfixFontSize": "50%",
   118           "prefix": "",
   119           "prefixFontSize": "50%",
   120           "rangeMaps": [
   121              {
   122                 "from": "null",
   123                 "text": "N/A",
   124                 "to": "null"
   125              }
   126           ],
   127           "sparkline": {
   128              "fillColor": "rgba(31, 118, 189, 0.18)",
   129              "full": false,
   130              "lineColor": "rgb(31, 120, 193)",
   131              "show": false
   132           },
   133           "tableColumn": "",
   134           "targets": [
   135              {
   136                 "expr": "100 \n-\nsum(\n  rate(\n    vtgate_api_error_counts{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[$__rate_interval]\n  ) OR vector(0)\n)\n/\nsum(\n  rate(\n    vtgate_api_count{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[$__rate_interval]\n  )\n)\n",
   137                 "format": "time_series",
   138                 "instant": true,
   139                 "intervalFactor": 1,
   140                 "legendFormat": "",
   141                 "refId": "A"
   142              }
   143           ],
   144           "thresholds": "0.99,0.999",
   145           "title": "Query success - vtgate",
   146           "type": "singlestat",
   147           "valueFontSize": "70%",
   148           "valueMaps": [
   149              {
   150                 "op": "=",
   151                 "text": "N/A",
   152                 "value": "null"
   153              }
   154           ],
   155           "valueName": "current"
   156        },
   157        {
   158           "cacheTimeout": null,
   159           "colorBackground": true,
   160           "colorValue": false,
   161           "colors": [
   162              "#d44a3a",
   163              "rgba(237, 129, 40, 0.89)",
   164              "#299c46"
   165           ],
   166           "datasource": "Prometheus",
   167           "decimals": 4,
   168           "format": "percent",
   169           "gauge": {
   170              "maxValue": 100,
   171              "minValue": 0,
   172              "show": false,
   173              "thresholdLabels": false,
   174              "thresholdMarkers": true
   175           },
   176           "gridPos": {
   177              "h": 4,
   178              "w": 4,
   179              "x": 4,
   180              "y": 1
   181           },
   182           "id": 4,
   183           "interval": null,
   184           "links": [ ],
   185           "mappingType": 1,
   186           "mappingTypes": [
   187              {
   188                 "name": "value to text",
   189                 "value": 1
   190              },
   191              {
   192                 "name": "range to text",
   193                 "value": 2
   194              }
   195           ],
   196           "maxDataPoints": 100,
   197           "nullPointMode": "connected",
   198           "nullText": null,
   199           "postfix": "",
   200           "postfixFontSize": "50%",
   201           "prefix": "",
   202           "prefixFontSize": "50%",
   203           "rangeMaps": [
   204              {
   205                 "from": "null",
   206                 "text": "N/A",
   207                 "to": "null"
   208              }
   209           ],
   210           "sparkline": {
   211              "fillColor": "rgba(31, 118, 189, 0.18)",
   212              "full": false,
   213              "lineColor": "rgb(31, 120, 193)",
   214              "show": false
   215           },
   216           "tableColumn": "",
   217           "targets": [
   218              {
   219                 "expr": "100 \n-\n(\n  sum (\n    sum (rate(vttablet_errors_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[1m]))\n  )\n  /\n  sum (\n    sum (rate(vttablet_query_counts_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[1m]))\n  )\n)\n",
   220                 "format": "time_series",
   221                 "instant": true,
   222                 "intervalFactor": 1,
   223                 "legendFormat": "",
   224                 "refId": "A"
   225              }
   226           ],
   227           "thresholds": "0.99,0.999",
   228           "title": "Query success - vttablet",
   229           "type": "singlestat",
   230           "valueFontSize": "70%",
   231           "valueMaps": [
   232              {
   233                 "op": "=",
   234                 "text": "N/A",
   235                 "value": "null"
   236              }
   237           ],
   238           "valueName": "current"
   239        },
   240        {
   241           "cacheTimeout": null,
   242           "colorBackground": true,
   243           "colorValue": false,
   244           "colors": [
   245              "#299c46",
   246              "rgba(237, 129, 40, 0.89)",
   247              "#d44a3a"
   248           ],
   249           "datasource": "Prometheus",
   250           "decimals": 2,
   251           "format": "ms",
   252           "gauge": {
   253              "maxValue": 100,
   254              "minValue": 0,
   255              "show": false,
   256              "thresholdLabels": false,
   257              "thresholdMarkers": true
   258           },
   259           "gridPos": {
   260              "h": 4,
   261              "w": 4,
   262              "x": 8,
   263              "y": 1
   264           },
   265           "id": 5,
   266           "interval": null,
   267           "links": [ ],
   268           "mappingType": 1,
   269           "mappingTypes": [
   270              {
   271                 "name": "value to text",
   272                 "value": 1
   273              },
   274              {
   275                 "name": "range to text",
   276                 "value": 2
   277              }
   278           ],
   279           "maxDataPoints": 100,
   280           "nullPointMode": "connected",
   281           "nullText": null,
   282           "postfix": "",
   283           "postfixFontSize": "50%",
   284           "prefix": "",
   285           "prefixFontSize": "50%",
   286           "rangeMaps": [
   287              {
   288                 "from": "null",
   289                 "text": "N/A",
   290                 "to": "null"
   291              }
   292           ],
   293           "sparkline": {
   294              "fillColor": "rgba(31, 118, 189, 0.18)",
   295              "full": false,
   296              "lineColor": "rgb(31, 120, 193)",
   297              "show": false
   298           },
   299           "tableColumn": "",
   300           "targets": [
   301              {
   302                 "expr": "1000 * histogram_quantile(\n  0.99,\n  sum by(namespace, app_kubernetes_io_instance, le)(\n    sum by(le)(rate(vtgate_api_bucket{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\"\n    }[1m]))\n  )\n)\n",
   303                 "format": "time_series",
   304                 "instant": true,
   305                 "intervalFactor": 1,
   306                 "legendFormat": "",
   307                 "refId": "A"
   308              }
   309           ],
   310           "thresholds": "30,50",
   311           "title": "Query latency p99",
   312           "type": "singlestat",
   313           "valueFontSize": "70%",
   314           "valueMaps": [
   315              {
   316                 "op": "=",
   317                 "text": "N/A",
   318                 "value": "null"
   319              }
   320           ],
   321           "valueName": "current"
   322        },
   323        {
   324           "cacheTimeout": null,
   325           "colorBackground": false,
   326           "colorValue": false,
   327           "colors": [
   328              "#299c46",
   329              "rgba(237, 129, 40, 0.89)",
   330              "#d44a3a"
   331           ],
   332           "datasource": "Prometheus",
   333           "format": "short",
   334           "gauge": {
   335              "maxValue": 100,
   336              "minValue": 0,
   337              "show": false,
   338              "thresholdLabels": false,
   339              "thresholdMarkers": true
   340           },
   341           "gridPos": {
   342              "h": 4,
   343              "w": 4,
   344              "x": 12,
   345              "y": 1
   346           },
   347           "id": 6,
   348           "interval": null,
   349           "links": [ ],
   350           "mappingType": 1,
   351           "mappingTypes": [
   352              {
   353                 "name": "value to text",
   354                 "value": 1
   355              },
   356              {
   357                 "name": "range to text",
   358                 "value": 2
   359              }
   360           ],
   361           "maxDataPoints": 100,
   362           "nullPointMode": "connected",
   363           "nullText": null,
   364           "postfix": "",
   365           "postfixFontSize": "50%",
   366           "prefix": "",
   367           "prefixFontSize": "50%",
   368           "rangeMaps": [
   369              {
   370                 "from": "null",
   371                 "text": "N/A",
   372                 "to": "null"
   373              }
   374           ],
   375           "sparkline": {
   376              "fillColor": "rgba(31, 118, 189, 0.18)",
   377              "full": true,
   378              "lineColor": "rgb(31, 120, 193)",
   379              "show": true
   380           },
   381           "tableColumn": "",
   382           "targets": [
   383              {
   384                 "expr": "sum (\n  sum (rate(vtgate_api_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n",
   385                 "format": "time_series",
   386                 "intervalFactor": 1,
   387                 "legendFormat": "",
   388                 "refId": "A"
   389              }
   390           ],
   391           "thresholds": "",
   392           "title": "QPS - vtgate",
   393           "type": "singlestat",
   394           "valueFontSize": "70%",
   395           "valueMaps": [
   396              {
   397                 "op": "=",
   398                 "text": "N/A",
   399                 "value": "null"
   400              }
   401           ],
   402           "valueName": "current"
   403        },
   404        {
   405           "cacheTimeout": null,
   406           "colorBackground": false,
   407           "colorValue": false,
   408           "colors": [
   409              "#299c46",
   410              "rgba(237, 129, 40, 0.89)",
   411              "#d44a3a"
   412           ],
   413           "datasource": "Prometheus",
   414           "format": "short",
   415           "gauge": {
   416              "maxValue": 100,
   417              "minValue": 0,
   418              "show": false,
   419              "thresholdLabels": false,
   420              "thresholdMarkers": true
   421           },
   422           "gridPos": {
   423              "h": 4,
   424              "w": 4,
   425              "x": 16,
   426              "y": 1
   427           },
   428           "id": 7,
   429           "interval": null,
   430           "links": [ ],
   431           "mappingType": 1,
   432           "mappingTypes": [
   433              {
   434                 "name": "value to text",
   435                 "value": 1
   436              },
   437              {
   438                 "name": "range to text",
   439                 "value": 2
   440              }
   441           ],
   442           "maxDataPoints": 100,
   443           "nullPointMode": "connected",
   444           "nullText": null,
   445           "postfix": "",
   446           "postfixFontSize": "50%",
   447           "prefix": "",
   448           "prefixFontSize": "50%",
   449           "rangeMaps": [
   450              {
   451                 "from": "null",
   452                 "text": "N/A",
   453                 "to": "null"
   454              }
   455           ],
   456           "sparkline": {
   457              "fillColor": "rgba(31, 118, 189, 0.18)",
   458              "full": true,
   459              "lineColor": "rgb(31, 120, 193)",
   460              "show": true
   461           },
   462           "tableColumn": "",
   463           "targets": [
   464              {
   465                 "expr": "sum (\n  sum (rate(vttablet_query_counts_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n",
   466                 "format": "time_series",
   467                 "intervalFactor": 1,
   468                 "legendFormat": "",
   469                 "refId": "A"
   470              }
   471           ],
   472           "thresholds": "",
   473           "title": "QPS - vttablet",
   474           "type": "singlestat",
   475           "valueFontSize": "70%",
   476           "valueMaps": [
   477              {
   478                 "op": "=",
   479                 "text": "N/A",
   480                 "value": "null"
   481              }
   482           ],
   483           "valueName": "current"
   484        },
   485        {
   486           "collapse": false,
   487           "collapsed": false,
   488           "gridPos": {
   489              "h": 1,
   490              "w": 24,
   491              "x": 0,
   492              "y": 7
   493           },
   494           "id": 8,
   495           "panels": [ ],
   496           "repeat": null,
   497           "repeatIteration": null,
   498           "repeatRowId": null,
   499           "showTitle": true,
   500           "title": "RED (vtgate) - Requests / Error rate / Duration",
   501           "titleSize": "h6",
   502           "type": "row"
   503        },
   504        {
   505           "aliasColors": { },
   506           "bars": false,
   507           "dashLength": 10,
   508           "dashes": false,
   509           "datasource": "Prometheus",
   510           "fill": 1,
   511           "fillGradient": 0,
   512           "gridPos": {
   513              "h": 6,
   514              "w": 8,
   515              "x": 0,
   516              "y": 8
   517           },
   518           "id": 9,
   519           "legend": {
   520              "alignAsTable": true,
   521              "avg": false,
   522              "current": true,
   523              "max": true,
   524              "min": true,
   525              "rightSide": false,
   526              "show": true,
   527              "sideWidth": null,
   528              "sort": "current",
   529              "sortDesc": true,
   530              "total": false,
   531              "values": true
   532           },
   533           "lines": true,
   534           "linewidth": 1,
   535           "links": [ ],
   536           "nullPointMode": "null as zero",
   537           "percentage": false,
   538           "pointradius": 5,
   539           "points": false,
   540           "renderer": "flot",
   541           "repeat": null,
   542           "seriesOverrides": [ ],
   543           "spaceLength": 10,
   544           "stack": false,
   545           "steppedLine": false,
   546           "targets": [
   547              {
   548                 "expr": "sum by (namespace, app_kubernetes_io_instance)(\n  sum by (namespace, app_kubernetes_io_instance) (rate(vtgate_api_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n",
   549                 "format": "time_series",
   550                 "intervalFactor": 2,
   551                 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Requests",
   552                 "refId": "A"
   553              }
   554           ],
   555           "thresholds": [ ],
   556           "timeFrom": null,
   557           "timeShift": null,
   558           "title": "Requests",
   559           "tooltip": {
   560              "shared": false,
   561              "sort": 2,
   562              "value_type": "individual"
   563           },
   564           "type": "graph",
   565           "xaxis": {
   566              "buckets": null,
   567              "mode": "time",
   568              "name": null,
   569              "show": true,
   570              "values": [ ]
   571           },
   572           "yaxes": [
   573              {
   574                 "format": "rps",
   575                 "label": null,
   576                 "logBase": 1,
   577                 "max": null,
   578                 "min": 0,
   579                 "show": true
   580              },
   581              {
   582                 "format": "rps",
   583                 "label": null,
   584                 "logBase": 1,
   585                 "max": null,
   586                 "min": 0,
   587                 "show": true
   588              }
   589           ]
   590        },
   591        {
   592           "aliasColors": {
   593              "Error rate": "#F2495C"
   594           },
   595           "bars": false,
   596           "dashLength": 10,
   597           "dashes": false,
   598           "datasource": "Prometheus",
   599           "fill": 1,
   600           "fillGradient": 0,
   601           "gridPos": {
   602              "h": 6,
   603              "w": 8,
   604              "x": 8,
   605              "y": 8
   606           },
   607           "id": 10,
   608           "legend": {
   609              "alignAsTable": true,
   610              "avg": false,
   611              "current": true,
   612              "max": true,
   613              "min": true,
   614              "rightSide": false,
   615              "show": true,
   616              "sideWidth": null,
   617              "sort": "current",
   618              "sortDesc": true,
   619              "total": false,
   620              "values": true
   621           },
   622           "lines": true,
   623           "linewidth": 1,
   624           "links": [ ],
   625           "nullPointMode": "null as zero",
   626           "percentage": false,
   627           "pointradius": 5,
   628           "points": false,
   629           "renderer": "flot",
   630           "repeat": null,
   631           "seriesOverrides": [ ],
   632           "spaceLength": 10,
   633           "stack": false,
   634           "steppedLine": false,
   635           "targets": [
   636              {
   637                 "expr": "sum by (namespace, app_kubernetes_io_instance)(\n  sum by (namespace, app_kubernetes_io_instance) (rate(vtgate_api_error_counts{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m])))\n/\nsum by (namespace, app_kubernetes_io_instance)(\n  sum by (namespace, app_kubernetes_io_instance)(rate(vtgate_api_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m])))\n",
   638                 "format": "time_series",
   639                 "intervalFactor": 2,
   640                 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Error rate",
   641                 "refId": "A"
   642              }
   643           ],
   644           "thresholds": [ ],
   645           "timeFrom": null,
   646           "timeShift": null,
   647           "title": "Error rate",
   648           "tooltip": {
   649              "shared": false,
   650              "sort": 2,
   651              "value_type": "individual"
   652           },
   653           "type": "graph",
   654           "xaxis": {
   655              "buckets": null,
   656              "mode": "time",
   657              "name": null,
   658              "show": true,
   659              "values": [ ]
   660           },
   661           "yaxes": [
   662              {
   663                 "format": "percentunit",
   664                 "label": null,
   665                 "logBase": 1,
   666                 "max": null,
   667                 "min": 0,
   668                 "show": true
   669              },
   670              {
   671                 "format": "percentunit",
   672                 "label": null,
   673                 "logBase": 1,
   674                 "max": null,
   675                 "min": 0,
   676                 "show": true
   677              }
   678           ]
   679        },
   680        {
   681           "aliasColors": {
   682              "Duration": "#5794F2"
   683           },
   684           "bars": false,
   685           "dashLength": 10,
   686           "dashes": false,
   687           "datasource": "Prometheus",
   688           "fill": 1,
   689           "fillGradient": 0,
   690           "gridPos": {
   691              "h": 6,
   692              "w": 8,
   693              "x": 16,
   694              "y": 8
   695           },
   696           "id": 11,
   697           "legend": {
   698              "alignAsTable": true,
   699              "avg": false,
   700              "current": true,
   701              "max": true,
   702              "min": true,
   703              "rightSide": false,
   704              "show": true,
   705              "sideWidth": null,
   706              "sort": "current",
   707              "sortDesc": true,
   708              "total": false,
   709              "values": true
   710           },
   711           "lines": true,
   712           "linewidth": 1,
   713           "links": [ ],
   714           "nullPointMode": "null as zero",
   715           "percentage": false,
   716           "pointradius": 5,
   717           "points": false,
   718           "renderer": "flot",
   719           "repeat": null,
   720           "seriesOverrides": [ ],
   721           "spaceLength": 10,
   722           "stack": false,
   723           "steppedLine": false,
   724           "targets": [
   725              {
   726                 "expr": "histogram_quantile(\n  0.99,\n  sum by(namespace, app_kubernetes_io_instance,le)(\n    sum by(namespace, app_kubernetes_io_instance,le)(rate(vtgate_api_bucket{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n  )\n)\n",
   727                 "format": "time_series",
   728                 "intervalFactor": 2,
   729                 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Duration",
   730                 "refId": "A"
   731              }
   732           ],
   733           "thresholds": [ ],
   734           "timeFrom": null,
   735           "timeShift": null,
   736           "title": "Duration 99th quantile",
   737           "tooltip": {
   738              "shared": false,
   739              "sort": 2,
   740              "value_type": "individual"
   741           },
   742           "type": "graph",
   743           "xaxis": {
   744              "buckets": null,
   745              "mode": "time",
   746              "name": null,
   747              "show": true,
   748              "values": [ ]
   749           },
   750           "yaxes": [
   751              {
   752                 "format": "s",
   753                 "label": null,
   754                 "logBase": 1,
   755                 "max": null,
   756                 "min": 0,
   757                 "show": true
   758              },
   759              {
   760                 "format": "s",
   761                 "label": null,
   762                 "logBase": 1,
   763                 "max": null,
   764                 "min": 0,
   765                 "show": true
   766              }
   767           ]
   768        },
   769        {
   770           "collapse": true,
   771           "collapsed": true,
   772           "gridPos": {
   773              "h": 1,
   774              "w": 24,
   775              "x": 0,
   776              "y": 23
   777           },
   778           "id": 12,
   779           "panels": [
   780              {
   781                 "aliasColors": { },
   782                 "bars": false,
   783                 "dashLength": 10,
   784                 "dashes": false,
   785                 "datasource": "Prometheus",
   786                 "fill": 0,
   787                 "fillGradient": 0,
   788                 "gridPos": {
   789                    "h": 7,
   790                    "w": 8,
   791                    "x": 0,
   792                    "y": 24
   793                 },
   794                 "id": 13,
   795                 "legend": {
   796                    "alignAsTable": true,
   797                    "avg": false,
   798                    "current": true,
   799                    "max": true,
   800                    "min": true,
   801                    "rightSide": false,
   802                    "show": true,
   803                    "sideWidth": null,
   804                    "sort": "current",
   805                    "sortDesc": true,
   806                    "total": false,
   807                    "values": true
   808                 },
   809                 "lines": true,
   810                 "linewidth": 1,
   811                 "links": [ ],
   812                 "nullPointMode": "null as zero",
   813                 "percentage": false,
   814                 "pointradius": 5,
   815                 "points": false,
   816                 "renderer": "flot",
   817                 "repeat": null,
   818                 "seriesOverrides": [ ],
   819                 "spaceLength": 10,
   820                 "stack": false,
   821                 "steppedLine": false,
   822                 "targets": [
   823                    {
   824                       "expr": "sum by (namespace, app_kubernetes_io_instance, db_type)(\n  sum by(namespace, app_kubernetes_io_instance, db_type)(rate(vtgate_api_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n",
   825                       "format": "time_series",
   826                       "intervalFactor": 2,
   827                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{db_type}}",
   828                       "refId": "A"
   829                    }
   830                 ],
   831                 "thresholds": [ ],
   832                 "timeFrom": null,
   833                 "timeShift": null,
   834                 "title": "Requests (by db_type)",
   835                 "tooltip": {
   836                    "shared": false,
   837                    "sort": 2,
   838                    "value_type": "individual"
   839                 },
   840                 "type": "graph",
   841                 "xaxis": {
   842                    "buckets": null,
   843                    "mode": "time",
   844                    "name": null,
   845                    "show": true,
   846                    "values": [ ]
   847                 },
   848                 "yaxes": [
   849                    {
   850                       "format": "rps",
   851                       "label": null,
   852                       "logBase": 1,
   853                       "max": null,
   854                       "min": 0,
   855                       "show": true
   856                    },
   857                    {
   858                       "format": "rps",
   859                       "label": null,
   860                       "logBase": 1,
   861                       "max": null,
   862                       "min": 0,
   863                       "show": true
   864                    }
   865                 ]
   866              },
   867              {
   868                 "aliasColors": { },
   869                 "bars": false,
   870                 "dashLength": 10,
   871                 "dashes": false,
   872                 "datasource": "Prometheus",
   873                 "fill": 0,
   874                 "fillGradient": 0,
   875                 "gridPos": {
   876                    "h": 7,
   877                    "w": 8,
   878                    "x": 8,
   879                    "y": 24
   880                 },
   881                 "id": 14,
   882                 "legend": {
   883                    "alignAsTable": true,
   884                    "avg": false,
   885                    "current": true,
   886                    "max": true,
   887                    "min": true,
   888                    "rightSide": false,
   889                    "show": true,
   890                    "sideWidth": null,
   891                    "sort": "current",
   892                    "sortDesc": true,
   893                    "total": false,
   894                    "values": true
   895                 },
   896                 "lines": true,
   897                 "linewidth": 1,
   898                 "links": [ ],
   899                 "nullPointMode": "null as zero",
   900                 "percentage": false,
   901                 "pointradius": 5,
   902                 "points": false,
   903                 "renderer": "flot",
   904                 "repeat": null,
   905                 "seriesOverrides": [ ],
   906                 "spaceLength": 10,
   907                 "stack": false,
   908                 "steppedLine": false,
   909                 "targets": [
   910                    {
   911                       "expr": "sum by (namespace, app_kubernetes_io_instance, db_type)(\n  sum by(namespace, app_kubernetes_io_instance, db_type)(rate(vtgate_api_error_counts{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n/\nsum by (namespace, app_kubernetes_io_instance, db_type)(\n  sum by(namespace, app_kubernetes_io_instance, db_type)(rate(vtgate_api_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n",
   912                       "format": "time_series",
   913                       "intervalFactor": 2,
   914                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{db_type}}",
   915                       "refId": "A"
   916                    }
   917                 ],
   918                 "thresholds": [ ],
   919                 "timeFrom": null,
   920                 "timeShift": null,
   921                 "title": "Error rate (by db_type)",
   922                 "tooltip": {
   923                    "shared": false,
   924                    "sort": 2,
   925                    "value_type": "individual"
   926                 },
   927                 "type": "graph",
   928                 "xaxis": {
   929                    "buckets": null,
   930                    "mode": "time",
   931                    "name": null,
   932                    "show": true,
   933                    "values": [ ]
   934                 },
   935                 "yaxes": [
   936                    {
   937                       "format": "percentunit",
   938                       "label": null,
   939                       "logBase": 1,
   940                       "max": null,
   941                       "min": 0,
   942                       "show": true
   943                    },
   944                    {
   945                       "format": "percentunit",
   946                       "label": null,
   947                       "logBase": 1,
   948                       "max": null,
   949                       "min": 0,
   950                       "show": true
   951                    }
   952                 ]
   953              },
   954              {
   955                 "aliasColors": { },
   956                 "bars": false,
   957                 "dashLength": 10,
   958                 "dashes": false,
   959                 "datasource": "Prometheus",
   960                 "fill": 0,
   961                 "fillGradient": 0,
   962                 "gridPos": {
   963                    "h": 7,
   964                    "w": 8,
   965                    "x": 16,
   966                    "y": 24
   967                 },
   968                 "id": 15,
   969                 "legend": {
   970                    "alignAsTable": true,
   971                    "avg": false,
   972                    "current": true,
   973                    "max": true,
   974                    "min": true,
   975                    "rightSide": false,
   976                    "show": true,
   977                    "sideWidth": null,
   978                    "sort": "current",
   979                    "sortDesc": true,
   980                    "total": false,
   981                    "values": true
   982                 },
   983                 "lines": true,
   984                 "linewidth": 1,
   985                 "links": [ ],
   986                 "nullPointMode": "null as zero",
   987                 "percentage": false,
   988                 "pointradius": 5,
   989                 "points": false,
   990                 "renderer": "flot",
   991                 "repeat": null,
   992                 "seriesOverrides": [ ],
   993                 "spaceLength": 10,
   994                 "stack": false,
   995                 "steppedLine": false,
   996                 "targets": [
   997                    {
   998                       "expr": "histogram_quantile(\n  0.99,\n  sum by (namespace, app_kubernetes_io_instance, db_type, le)(\n    sum by(namespace, app_kubernetes_io_instance, le,db_type)(rate(vtgate_api_bucket{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n  )\n)\n",
   999                       "format": "time_series",
  1000                       "intervalFactor": 2,
  1001                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{db_type}}",
  1002                       "refId": "A"
  1003                    }
  1004                 ],
  1005                 "thresholds": [ ],
  1006                 "timeFrom": null,
  1007                 "timeShift": null,
  1008                 "title": "Duration 99th quantile (by db_type)",
  1009                 "tooltip": {
  1010                    "shared": false,
  1011                    "sort": 2,
  1012                    "value_type": "individual"
  1013                 },
  1014                 "type": "graph",
  1015                 "xaxis": {
  1016                    "buckets": null,
  1017                    "mode": "time",
  1018                    "name": null,
  1019                    "show": true,
  1020                    "values": [ ]
  1021                 },
  1022                 "yaxes": [
  1023                    {
  1024                       "format": "s",
  1025                       "label": null,
  1026                       "logBase": 1,
  1027                       "max": null,
  1028                       "min": 0,
  1029                       "show": true
  1030                    },
  1031                    {
  1032                       "format": "s",
  1033                       "label": null,
  1034                       "logBase": 1,
  1035                       "max": null,
  1036                       "min": 0,
  1037                       "show": true
  1038                    }
  1039                 ]
  1040              }
  1041           ],
  1042           "repeat": null,
  1043           "repeatIteration": null,
  1044           "repeatRowId": null,
  1045           "showTitle": true,
  1046           "title": "RED (vtgate - group by tablet type)",
  1047           "titleSize": "h6",
  1048           "type": "row"
  1049        },
  1050        {
  1051           "collapse": false,
  1052           "collapsed": false,
  1053           "gridPos": {
  1054              "h": 1,
  1055              "w": 24,
  1056              "x": 0,
  1057              "y": 31
  1058           },
  1059           "id": 16,
  1060           "panels": [ ],
  1061           "repeat": null,
  1062           "repeatIteration": null,
  1063           "repeatRowId": null,
  1064           "showTitle": true,
  1065           "title": "RED (tablet) - Requests / Error rate / Duration",
  1066           "titleSize": "h6",
  1067           "type": "row"
  1068        },
  1069        {
  1070           "aliasColors": { },
  1071           "bars": false,
  1072           "dashLength": 10,
  1073           "dashes": false,
  1074           "datasource": "Prometheus",
  1075           "fill": 0,
  1076           "fillGradient": 0,
  1077           "gridPos": {
  1078              "h": 7,
  1079              "w": 8,
  1080              "x": 0,
  1081              "y": 32
  1082           },
  1083           "id": 17,
  1084           "legend": {
  1085              "alignAsTable": true,
  1086              "avg": true,
  1087              "current": false,
  1088              "max": true,
  1089              "min": true,
  1090              "rightSide": false,
  1091              "show": true,
  1092              "sideWidth": null,
  1093              "sort": "avg",
  1094              "sortDesc": true,
  1095              "total": false,
  1096              "values": true
  1097           },
  1098           "lines": true,
  1099           "linewidth": 1,
  1100           "links": [ ],
  1101           "nullPointMode": "null as zero",
  1102           "percentage": false,
  1103           "pointradius": 5,
  1104           "points": false,
  1105           "renderer": "flot",
  1106           "repeat": null,
  1107           "seriesOverrides": [ ],
  1108           "spaceLength": 10,
  1109           "stack": false,
  1110           "steppedLine": false,
  1111           "targets": [
  1112              {
  1113                 "expr": "sum  by (namespace,app_kubernetes_io_instance,pod)(\n  rate(\n    vttablet_query_counts_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  1114                 "format": "time_series",
  1115                 "intervalFactor": 2,
  1116                 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  1117                 "refId": "A"
  1118              }
  1119           ],
  1120           "thresholds": [ ],
  1121           "timeFrom": null,
  1122           "timeShift": null,
  1123           "title": "Requests",
  1124           "tooltip": {
  1125              "shared": false,
  1126              "sort": 2,
  1127              "value_type": "individual"
  1128           },
  1129           "type": "graph",
  1130           "xaxis": {
  1131              "buckets": null,
  1132              "mode": "time",
  1133              "name": null,
  1134              "show": true,
  1135              "values": [ ]
  1136           },
  1137           "yaxes": [
  1138              {
  1139                 "format": "ops",
  1140                 "label": null,
  1141                 "logBase": 1,
  1142                 "max": null,
  1143                 "min": 0,
  1144                 "show": true
  1145              },
  1146              {
  1147                 "format": "ops",
  1148                 "label": null,
  1149                 "logBase": 1,
  1150                 "max": null,
  1151                 "min": 0,
  1152                 "show": true
  1153              }
  1154           ]
  1155        },
  1156        {
  1157           "aliasColors": { },
  1158           "bars": false,
  1159           "dashLength": 10,
  1160           "dashes": false,
  1161           "datasource": "Prometheus",
  1162           "fill": 0,
  1163           "fillGradient": 0,
  1164           "gridPos": {
  1165              "h": 7,
  1166              "w": 8,
  1167              "x": 8,
  1168              "y": 32
  1169           },
  1170           "id": 18,
  1171           "legend": {
  1172              "alignAsTable": true,
  1173              "avg": true,
  1174              "current": false,
  1175              "max": true,
  1176              "min": true,
  1177              "rightSide": false,
  1178              "show": true,
  1179              "sideWidth": null,
  1180              "sort": "avg",
  1181              "sortDesc": true,
  1182              "total": false,
  1183              "values": true
  1184           },
  1185           "lines": true,
  1186           "linewidth": 1,
  1187           "links": [ ],
  1188           "nullPointMode": "null as zero",
  1189           "percentage": false,
  1190           "pointradius": 5,
  1191           "points": false,
  1192           "renderer": "flot",
  1193           "repeat": null,
  1194           "seriesOverrides": [ ],
  1195           "spaceLength": 10,
  1196           "stack": false,
  1197           "steppedLine": false,
  1198           "targets": [
  1199              {
  1200                 "expr": "sum by (namespace,app_kubernetes_io_instance,pod)(\n  rate(\n    vttablet_query_error_counts_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n/\n(\n  sum by (namespace,app_kubernetes_io_instance,pod)(\n    rate(\n      vttablet_query_error_counts_total{\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n  +\n  sum by (namespace,app_kubernetes_io_instance,pod)(\n    rate(\n      vttablet_query_counts_total{\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n)\n",
  1201                 "format": "time_series",
  1202                 "intervalFactor": 2,
  1203                 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  1204                 "refId": "A"
  1205              }
  1206           ],
  1207           "thresholds": [ ],
  1208           "timeFrom": null,
  1209           "timeShift": null,
  1210           "title": "Error rate",
  1211           "tooltip": {
  1212              "shared": false,
  1213              "sort": 2,
  1214              "value_type": "individual"
  1215           },
  1216           "type": "graph",
  1217           "xaxis": {
  1218              "buckets": null,
  1219              "mode": "time",
  1220              "name": null,
  1221              "show": true,
  1222              "values": [ ]
  1223           },
  1224           "yaxes": [
  1225              {
  1226                 "format": "percentunit",
  1227                 "label": null,
  1228                 "logBase": 1,
  1229                 "max": null,
  1230                 "min": 0,
  1231                 "show": true
  1232              },
  1233              {
  1234                 "format": "percentunit",
  1235                 "label": null,
  1236                 "logBase": 1,
  1237                 "max": null,
  1238                 "min": 0,
  1239                 "show": true
  1240              }
  1241           ]
  1242        },
  1243        {
  1244           "aliasColors": { },
  1245           "bars": false,
  1246           "dashLength": 10,
  1247           "dashes": false,
  1248           "datasource": "Prometheus",
  1249           "fill": 0,
  1250           "fillGradient": 0,
  1251           "gridPos": {
  1252              "h": 7,
  1253              "w": 8,
  1254              "x": 16,
  1255              "y": 32
  1256           },
  1257           "id": 19,
  1258           "legend": {
  1259              "alignAsTable": true,
  1260              "avg": true,
  1261              "current": false,
  1262              "max": true,
  1263              "min": true,
  1264              "rightSide": false,
  1265              "show": true,
  1266              "sideWidth": null,
  1267              "sort": "avg",
  1268              "sortDesc": true,
  1269              "total": false,
  1270              "values": true
  1271           },
  1272           "lines": true,
  1273           "linewidth": 1,
  1274           "links": [ ],
  1275           "nullPointMode": "null as zero",
  1276           "percentage": false,
  1277           "pointradius": 5,
  1278           "points": false,
  1279           "renderer": "flot",
  1280           "repeat": null,
  1281           "seriesOverrides": [ ],
  1282           "spaceLength": 10,
  1283           "stack": false,
  1284           "steppedLine": false,
  1285           "targets": [
  1286              {
  1287                 "expr": "histogram_quantile(\n  0.99,sum by(namespace,app_kubernetes_io_instance,pod,le)(\n    rate(\n      vttablet_queries_bucket{\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n)\n",
  1288                 "format": "time_series",
  1289                 "intervalFactor": 2,
  1290                 "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  1291                 "refId": "A"
  1292              }
  1293           ],
  1294           "thresholds": [ ],
  1295           "timeFrom": null,
  1296           "timeShift": null,
  1297           "title": "Duration (p99)",
  1298           "tooltip": {
  1299              "shared": false,
  1300              "sort": 2,
  1301              "value_type": "individual"
  1302           },
  1303           "type": "graph",
  1304           "xaxis": {
  1305              "buckets": null,
  1306              "mode": "time",
  1307              "name": null,
  1308              "show": true,
  1309              "values": [ ]
  1310           },
  1311           "yaxes": [
  1312              {
  1313                 "format": "s",
  1314                 "label": null,
  1315                 "logBase": 1,
  1316                 "max": null,
  1317                 "min": 0,
  1318                 "show": true
  1319              },
  1320              {
  1321                 "format": "s",
  1322                 "label": null,
  1323                 "logBase": 1,
  1324                 "max": null,
  1325                 "min": 0,
  1326                 "show": true
  1327              }
  1328           ]
  1329        },
  1330        {
  1331           "collapse": true,
  1332           "collapsed": true,
  1333           "gridPos": {
  1334              "h": 1,
  1335              "w": 24,
  1336              "x": 0,
  1337              "y": 39
  1338           },
  1339           "id": 20,
  1340           "panels": [
  1341              {
  1342                 "aliasColors": { },
  1343                 "bars": false,
  1344                 "dashLength": 10,
  1345                 "dashes": false,
  1346                 "datasource": "Prometheus",
  1347                 "fill": 0,
  1348                 "fillGradient": 0,
  1349                 "gridPos": {
  1350                    "h": 7,
  1351                    "w": 8,
  1352                    "x": 0,
  1353                    "y": 40
  1354                 },
  1355                 "id": 21,
  1356                 "legend": {
  1357                    "alignAsTable": true,
  1358                    "avg": false,
  1359                    "current": true,
  1360                    "max": true,
  1361                    "min": true,
  1362                    "rightSide": false,
  1363                    "show": true,
  1364                    "sideWidth": null,
  1365                    "sort": "current",
  1366                    "sortDesc": true,
  1367                    "total": false,
  1368                    "values": true
  1369                 },
  1370                 "lines": true,
  1371                 "linewidth": 1,
  1372                 "links": [ ],
  1373                 "nullPointMode": "null as zero",
  1374                 "percentage": false,
  1375                 "pointradius": 5,
  1376                 "points": false,
  1377                 "renderer": "flot",
  1378                 "repeat": null,
  1379                 "seriesOverrides": [ ],
  1380                 "spaceLength": 10,
  1381                 "stack": false,
  1382                 "steppedLine": false,
  1383                 "targets": [
  1384                    {
  1385                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod, plan_type)(\n  rate(\n    vttablet_queries_count{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    } [1m]\n  )\n)\n",
  1386                       "format": "time_series",
  1387                       "intervalFactor": 2,
  1388                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{plan_type}}",
  1389                       "refId": "A"
  1390                    }
  1391                 ],
  1392                 "thresholds": [ ],
  1393                 "timeFrom": null,
  1394                 "timeShift": null,
  1395                 "title": "Requests (by plan type)",
  1396                 "tooltip": {
  1397                    "shared": false,
  1398                    "sort": 2,
  1399                    "value_type": "individual"
  1400                 },
  1401                 "type": "graph",
  1402                 "xaxis": {
  1403                    "buckets": null,
  1404                    "mode": "time",
  1405                    "name": null,
  1406                    "show": true,
  1407                    "values": [ ]
  1408                 },
  1409                 "yaxes": [
  1410                    {
  1411                       "format": "ops",
  1412                       "label": null,
  1413                       "logBase": 1,
  1414                       "max": null,
  1415                       "min": 0,
  1416                       "show": true
  1417                    },
  1418                    {
  1419                       "format": "ops",
  1420                       "label": null,
  1421                       "logBase": 1,
  1422                       "max": null,
  1423                       "min": 0,
  1424                       "show": true
  1425                    }
  1426                 ]
  1427              },
  1428              {
  1429                 "aliasColors": { },
  1430                 "bars": false,
  1431                 "dashLength": 10,
  1432                 "dashes": false,
  1433                 "datasource": "Prometheus",
  1434                 "fill": 0,
  1435                 "fillGradient": 0,
  1436                 "gridPos": {
  1437                    "h": 7,
  1438                    "w": 8,
  1439                    "x": 8,
  1440                    "y": 40
  1441                 },
  1442                 "id": 22,
  1443                 "legend": {
  1444                    "alignAsTable": true,
  1445                    "avg": true,
  1446                    "current": false,
  1447                    "max": true,
  1448                    "min": true,
  1449                    "rightSide": false,
  1450                    "show": true,
  1451                    "sideWidth": null,
  1452                    "sort": "avg",
  1453                    "sortDesc": true,
  1454                    "total": false,
  1455                    "values": true
  1456                 },
  1457                 "lines": true,
  1458                 "linewidth": 1,
  1459                 "links": [ ],
  1460                 "nullPointMode": "null as zero",
  1461                 "percentage": false,
  1462                 "pointradius": 5,
  1463                 "points": false,
  1464                 "renderer": "flot",
  1465                 "repeat": null,
  1466                 "seriesOverrides": [ ],
  1467                 "spaceLength": 10,
  1468                 "stack": false,
  1469                 "steppedLine": false,
  1470                 "targets": [
  1471                    {
  1472                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod, plan)(\n  rate(\n    vttablet_query_error_counts_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n/\n(\n  sum by (namespace,app_kubernetes_io_instance,pod, plan)(\n    rate(\n      vttablet_query_error_counts_total{\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n  +\n  sum by (namespace,app_kubernetes_io_instance,pod, plan)(\n    rate(\n      vttablet_query_counts_total{\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n)\n",
  1473                       "format": "time_series",
  1474                       "intervalFactor": 2,
  1475                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{plan}}",
  1476                       "refId": "A"
  1477                    }
  1478                 ],
  1479                 "thresholds": [ ],
  1480                 "timeFrom": null,
  1481                 "timeShift": null,
  1482                 "title": "Error rate (by plan type)",
  1483                 "tooltip": {
  1484                    "shared": false,
  1485                    "sort": 2,
  1486                    "value_type": "individual"
  1487                 },
  1488                 "type": "graph",
  1489                 "xaxis": {
  1490                    "buckets": null,
  1491                    "mode": "time",
  1492                    "name": null,
  1493                    "show": true,
  1494                    "values": [ ]
  1495                 },
  1496                 "yaxes": [
  1497                    {
  1498                       "format": "percentunit",
  1499                       "label": null,
  1500                       "logBase": 1,
  1501                       "max": null,
  1502                       "min": 0,
  1503                       "show": true
  1504                    },
  1505                    {
  1506                       "format": "percentunit",
  1507                       "label": null,
  1508                       "logBase": 1,
  1509                       "max": null,
  1510                       "min": 0,
  1511                       "show": true
  1512                    }
  1513                 ]
  1514              },
  1515              {
  1516                 "aliasColors": { },
  1517                 "bars": false,
  1518                 "dashLength": 10,
  1519                 "dashes": false,
  1520                 "datasource": "Prometheus",
  1521                 "fill": 0,
  1522                 "fillGradient": 0,
  1523                 "gridPos": {
  1524                    "h": 7,
  1525                    "w": 8,
  1526                    "x": 16,
  1527                    "y": 40
  1528                 },
  1529                 "id": 23,
  1530                 "legend": {
  1531                    "alignAsTable": true,
  1532                    "avg": true,
  1533                    "current": false,
  1534                    "max": true,
  1535                    "min": true,
  1536                    "rightSide": false,
  1537                    "show": true,
  1538                    "sideWidth": null,
  1539                    "sort": "avg",
  1540                    "sortDesc": true,
  1541                    "total": false,
  1542                    "values": true
  1543                 },
  1544                 "lines": true,
  1545                 "linewidth": 1,
  1546                 "links": [ ],
  1547                 "nullPointMode": "null as zero",
  1548                 "percentage": false,
  1549                 "pointradius": 5,
  1550                 "points": false,
  1551                 "renderer": "flot",
  1552                 "repeat": null,
  1553                 "seriesOverrides": [ ],
  1554                 "spaceLength": 10,
  1555                 "stack": false,
  1556                 "steppedLine": false,
  1557                 "targets": [
  1558                    {
  1559                       "expr": "histogram_quantile(\n  0.99,sum by(namespace,app_kubernetes_io_instance,pod,plan_type,le)(\n    rate(\n      vttablet_queries_bucket{\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n)\n",
  1560                       "format": "time_series",
  1561                       "intervalFactor": 2,
  1562                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{plan_type}}",
  1563                       "refId": "A"
  1564                    }
  1565                 ],
  1566                 "thresholds": [ ],
  1567                 "timeFrom": null,
  1568                 "timeShift": null,
  1569                 "title": "Duration p99 (by plan type)",
  1570                 "tooltip": {
  1571                    "shared": false,
  1572                    "sort": 2,
  1573                    "value_type": "individual"
  1574                 },
  1575                 "type": "graph",
  1576                 "xaxis": {
  1577                    "buckets": null,
  1578                    "mode": "time",
  1579                    "name": null,
  1580                    "show": true,
  1581                    "values": [ ]
  1582                 },
  1583                 "yaxes": [
  1584                    {
  1585                       "format": "s",
  1586                       "label": null,
  1587                       "logBase": 1,
  1588                       "max": null,
  1589                       "min": 0,
  1590                       "show": true
  1591                    },
  1592                    {
  1593                       "format": "s",
  1594                       "label": null,
  1595                       "logBase": 1,
  1596                       "max": null,
  1597                       "min": 0,
  1598                       "show": true
  1599                    }
  1600                 ]
  1601              }
  1602           ],
  1603           "repeat": null,
  1604           "repeatIteration": null,
  1605           "repeatRowId": null,
  1606           "showTitle": true,
  1607           "title": "RED (tablet - group by plan type)",
  1608           "titleSize": "h6",
  1609           "type": "row"
  1610        },
  1611        {
  1612           "collapse": true,
  1613           "collapsed": true,
  1614           "gridPos": {
  1615              "h": 1,
  1616              "w": 24,
  1617              "x": 0,
  1618              "y": 57
  1619           },
  1620           "id": 24,
  1621           "panels": [
  1622              {
  1623                 "aliasColors": {
  1624                    "Duration": "#5794F2"
  1625                 },
  1626                 "bars": false,
  1627                 "dashLength": 10,
  1628                 "dashes": false,
  1629                 "datasource": "Prometheus",
  1630                 "fill": 0,
  1631                 "fillGradient": 0,
  1632                 "gridPos": {
  1633                    "h": 7,
  1634                    "w": 8,
  1635                    "x": 0,
  1636                    "y": 58
  1637                 },
  1638                 "id": 25,
  1639                 "legend": {
  1640                    "alignAsTable": true,
  1641                    "avg": false,
  1642                    "current": true,
  1643                    "max": true,
  1644                    "min": true,
  1645                    "rightSide": false,
  1646                    "show": true,
  1647                    "sideWidth": null,
  1648                    "sort": "current",
  1649                    "sortDesc": true,
  1650                    "total": false,
  1651                    "values": true
  1652                 },
  1653                 "lines": true,
  1654                 "linewidth": 1,
  1655                 "links": [ ],
  1656                 "nullPointMode": "null as zero",
  1657                 "percentage": false,
  1658                 "pointradius": 5,
  1659                 "points": false,
  1660                 "renderer": "flot",
  1661                 "repeat": null,
  1662                 "seriesOverrides": [ ],
  1663                 "spaceLength": 10,
  1664                 "stack": false,
  1665                 "steppedLine": false,
  1666                 "targets": [
  1667                    {
  1668                       "expr": "sum by(namespace,app_kubernetes_io_instance)(\n  rate(\n    vtgate_api_sum{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[5m]\n  )\n)\n/\nsum by(namespace,app_kubernetes_io_instance)(\n  rate(\n    vtgate_api_count{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[5m]\n    )\n  )\n",
  1669                       "format": "time_series",
  1670                       "intervalFactor": 2,
  1671                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Avg Latency (vtgate)",
  1672                       "refId": "A"
  1673                    },
  1674                    {
  1675                       "expr": "sum by(namespace,app_kubernetes_io_instance)(\n  rate(\n    vttablet_queries_sum{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[5m]\n  )\n)\n/\nsum by(namespace,app_kubernetes_io_instance)(\n  rate(\n    vttablet_queries_count{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[5m]\n    )\n  )\n",
  1676                       "format": "time_series",
  1677                       "intervalFactor": 2,
  1678                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Avg Latency (vttablet)",
  1679                       "refId": "B"
  1680                    }
  1681                 ],
  1682                 "thresholds": [ ],
  1683                 "timeFrom": null,
  1684                 "timeShift": null,
  1685                 "title": "Duration (Avg)",
  1686                 "tooltip": {
  1687                    "shared": false,
  1688                    "sort": 2,
  1689                    "value_type": "individual"
  1690                 },
  1691                 "type": "graph",
  1692                 "xaxis": {
  1693                    "buckets": null,
  1694                    "mode": "time",
  1695                    "name": null,
  1696                    "show": true,
  1697                    "values": [ ]
  1698                 },
  1699                 "yaxes": [
  1700                    {
  1701                       "format": "s",
  1702                       "label": null,
  1703                       "logBase": 1,
  1704                       "max": null,
  1705                       "min": 0,
  1706                       "show": true
  1707                    },
  1708                    {
  1709                       "format": "s",
  1710                       "label": null,
  1711                       "logBase": 1,
  1712                       "max": null,
  1713                       "min": 0,
  1714                       "show": true
  1715                    }
  1716                 ]
  1717              },
  1718              {
  1719                 "aliasColors": {
  1720                    "Duration": "#5794F2"
  1721                 },
  1722                 "bars": false,
  1723                 "dashLength": 10,
  1724                 "dashes": false,
  1725                 "datasource": "Prometheus",
  1726                 "fill": 0,
  1727                 "fillGradient": 0,
  1728                 "gridPos": {
  1729                    "h": 7,
  1730                    "w": 8,
  1731                    "x": 8,
  1732                    "y": 58
  1733                 },
  1734                 "id": 26,
  1735                 "legend": {
  1736                    "alignAsTable": true,
  1737                    "avg": false,
  1738                    "current": true,
  1739                    "max": true,
  1740                    "min": true,
  1741                    "rightSide": false,
  1742                    "show": true,
  1743                    "sideWidth": null,
  1744                    "sort": "current",
  1745                    "sortDesc": true,
  1746                    "total": false,
  1747                    "values": true
  1748                 },
  1749                 "lines": true,
  1750                 "linewidth": 1,
  1751                 "links": [ ],
  1752                 "nullPointMode": "null as zero",
  1753                 "percentage": false,
  1754                 "pointradius": 5,
  1755                 "points": false,
  1756                 "renderer": "flot",
  1757                 "repeat": null,
  1758                 "seriesOverrides": [ ],
  1759                 "spaceLength": 10,
  1760                 "stack": false,
  1761                 "steppedLine": false,
  1762                 "targets": [
  1763                    {
  1764                       "expr": "histogram_quantile(\n  0.50,\n  sum by(namespace,app_kubernetes_io_instance,pod,le)(\n    sum by(namespace,app_kubernetes_io_instance,pod,le)(rate(vtgate_api_bucket{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n  )\n)\n",
  1765                       "format": "time_series",
  1766                       "intervalFactor": 2,
  1767                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Duration p50 (vtgate)",
  1768                       "refId": "A"
  1769                    },
  1770                    {
  1771                       "expr": "histogram_quantile(\n  0.50,\n  sum by(namespace,app_kubernetes_io_instance,le)(\n    sum by(namespace,app_kubernetes_io_instance,le)(rate(vttablet_queries_bucket{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n  )\n)\n",
  1772                       "format": "time_series",
  1773                       "intervalFactor": 2,
  1774                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Duration p50 (vttablet)",
  1775                       "refId": "B"
  1776                    }
  1777                 ],
  1778                 "thresholds": [ ],
  1779                 "timeFrom": null,
  1780                 "timeShift": null,
  1781                 "title": "Duration 50th quantile",
  1782                 "tooltip": {
  1783                    "shared": false,
  1784                    "sort": 2,
  1785                    "value_type": "individual"
  1786                 },
  1787                 "type": "graph",
  1788                 "xaxis": {
  1789                    "buckets": null,
  1790                    "mode": "time",
  1791                    "name": null,
  1792                    "show": true,
  1793                    "values": [ ]
  1794                 },
  1795                 "yaxes": [
  1796                    {
  1797                       "format": "s",
  1798                       "label": null,
  1799                       "logBase": 1,
  1800                       "max": null,
  1801                       "min": 0,
  1802                       "show": true
  1803                    },
  1804                    {
  1805                       "format": "s",
  1806                       "label": null,
  1807                       "logBase": 1,
  1808                       "max": null,
  1809                       "min": 0,
  1810                       "show": true
  1811                    }
  1812                 ]
  1813              },
  1814              {
  1815                 "aliasColors": {
  1816                    "Duration": "#5794F2"
  1817                 },
  1818                 "bars": false,
  1819                 "dashLength": 10,
  1820                 "dashes": false,
  1821                 "datasource": "Prometheus",
  1822                 "fill": 0,
  1823                 "fillGradient": 0,
  1824                 "gridPos": {
  1825                    "h": 7,
  1826                    "w": 8,
  1827                    "x": 16,
  1828                    "y": 58
  1829                 },
  1830                 "id": 27,
  1831                 "legend": {
  1832                    "alignAsTable": true,
  1833                    "avg": false,
  1834                    "current": true,
  1835                    "max": true,
  1836                    "min": true,
  1837                    "rightSide": false,
  1838                    "show": true,
  1839                    "sideWidth": null,
  1840                    "sort": "current",
  1841                    "sortDesc": true,
  1842                    "total": false,
  1843                    "values": true
  1844                 },
  1845                 "lines": true,
  1846                 "linewidth": 1,
  1847                 "links": [ ],
  1848                 "nullPointMode": "null as zero",
  1849                 "percentage": false,
  1850                 "pointradius": 5,
  1851                 "points": false,
  1852                 "renderer": "flot",
  1853                 "repeat": null,
  1854                 "seriesOverrides": [ ],
  1855                 "spaceLength": 10,
  1856                 "stack": false,
  1857                 "steppedLine": false,
  1858                 "targets": [
  1859                    {
  1860                       "expr": "histogram_quantile(\n  0.95,\n  sum by(namespace,app_kubernetes_io_instance,pod,le)(\n    sum by(namespace,app_kubernetes_io_instance,pod,le)(rate(vtgate_api_bucket{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n  )\n)\n",
  1861                       "format": "time_series",
  1862                       "intervalFactor": 2,
  1863                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Duration p95 (vtgate)",
  1864                       "refId": "A"
  1865                    },
  1866                    {
  1867                       "expr": "histogram_quantile(\n  0.95,\n  sum by(namespace,app_kubernetes_io_instance,le)(\n    sum by(namespace,app_kubernetes_io_instance,le)(rate(vttablet_queries_bucket{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n  )\n)\n",
  1868                       "format": "time_series",
  1869                       "intervalFactor": 2,
  1870                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | Duration p95 (vttablet)",
  1871                       "refId": "B"
  1872                    }
  1873                 ],
  1874                 "thresholds": [ ],
  1875                 "timeFrom": null,
  1876                 "timeShift": null,
  1877                 "title": "Duration 95th quantile",
  1878                 "tooltip": {
  1879                    "shared": false,
  1880                    "sort": 2,
  1881                    "value_type": "individual"
  1882                 },
  1883                 "type": "graph",
  1884                 "xaxis": {
  1885                    "buckets": null,
  1886                    "mode": "time",
  1887                    "name": null,
  1888                    "show": true,
  1889                    "values": [ ]
  1890                 },
  1891                 "yaxes": [
  1892                    {
  1893                       "format": "s",
  1894                       "label": null,
  1895                       "logBase": 1,
  1896                       "max": null,
  1897                       "min": 0,
  1898                       "show": true
  1899                    },
  1900                    {
  1901                       "format": "s",
  1902                       "label": null,
  1903                       "logBase": 1,
  1904                       "max": null,
  1905                       "min": 0,
  1906                       "show": true
  1907                    }
  1908                 ]
  1909              }
  1910           ],
  1911           "repeat": null,
  1912           "repeatIteration": null,
  1913           "repeatRowId": null,
  1914           "showTitle": true,
  1915           "title": "Duration",
  1916           "titleSize": "h6",
  1917           "type": "row"
  1918        },
  1919        {
  1920           "collapse": true,
  1921           "collapsed": true,
  1922           "gridPos": {
  1923              "h": 1,
  1924              "w": 24,
  1925              "x": 0,
  1926              "y": 65
  1927           },
  1928           "id": 28,
  1929           "panels": [
  1930              {
  1931                 "aliasColors": { },
  1932                 "bars": false,
  1933                 "dashLength": 10,
  1934                 "dashes": false,
  1935                 "datasource": "Prometheus",
  1936                 "fill": 0,
  1937                 "fillGradient": 0,
  1938                 "gridPos": {
  1939                    "h": 7,
  1940                    "w": 8,
  1941                    "x": 0,
  1942                    "y": 66
  1943                 },
  1944                 "id": 29,
  1945                 "legend": {
  1946                    "alignAsTable": true,
  1947                    "avg": false,
  1948                    "current": true,
  1949                    "max": true,
  1950                    "min": true,
  1951                    "rightSide": false,
  1952                    "show": true,
  1953                    "sideWidth": null,
  1954                    "sort": "current",
  1955                    "sortDesc": true,
  1956                    "total": false,
  1957                    "values": true
  1958                 },
  1959                 "lines": true,
  1960                 "linewidth": 1,
  1961                 "links": [ ],
  1962                 "nullPointMode": "null as zero",
  1963                 "percentage": false,
  1964                 "pointradius": 5,
  1965                 "points": false,
  1966                 "renderer": "flot",
  1967                 "repeat": null,
  1968                 "seriesOverrides": [ ],
  1969                 "spaceLength": 10,
  1970                 "stack": false,
  1971                 "steppedLine": false,
  1972                 "targets": [
  1973                    {
  1974                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod,code)(\n  sum by(namespace,app_kubernetes_io_instance,pod,code)(rate(vtgate_api_error_counts{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n",
  1975                       "format": "time_series",
  1976                       "intervalFactor": 2,
  1977                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{code}}",
  1978                       "refId": "A"
  1979                    }
  1980                 ],
  1981                 "thresholds": [ ],
  1982                 "timeFrom": null,
  1983                 "timeShift": null,
  1984                 "title": "Errors (by code)",
  1985                 "tooltip": {
  1986                    "shared": false,
  1987                    "sort": 2,
  1988                    "value_type": "individual"
  1989                 },
  1990                 "type": "graph",
  1991                 "xaxis": {
  1992                    "buckets": null,
  1993                    "mode": "time",
  1994                    "name": null,
  1995                    "show": true,
  1996                    "values": [ ]
  1997                 },
  1998                 "yaxes": [
  1999                    {
  2000                       "format": "cps",
  2001                       "label": null,
  2002                       "logBase": 1,
  2003                       "max": null,
  2004                       "min": 0,
  2005                       "show": true
  2006                    },
  2007                    {
  2008                       "format": "cps",
  2009                       "label": null,
  2010                       "logBase": 1,
  2011                       "max": null,
  2012                       "min": 0,
  2013                       "show": true
  2014                    }
  2015                 ]
  2016              },
  2017              {
  2018                 "aliasColors": { },
  2019                 "bars": false,
  2020                 "dashLength": 10,
  2021                 "dashes": false,
  2022                 "datasource": "Prometheus",
  2023                 "fill": 0,
  2024                 "fillGradient": 0,
  2025                 "gridPos": {
  2026                    "h": 7,
  2027                    "w": 8,
  2028                    "x": 8,
  2029                    "y": 66
  2030                 },
  2031                 "id": 30,
  2032                 "legend": {
  2033                    "alignAsTable": true,
  2034                    "avg": false,
  2035                    "current": true,
  2036                    "max": true,
  2037                    "min": true,
  2038                    "rightSide": false,
  2039                    "show": true,
  2040                    "sideWidth": null,
  2041                    "sort": "current",
  2042                    "sortDesc": true,
  2043                    "total": false,
  2044                    "values": true
  2045                 },
  2046                 "lines": true,
  2047                 "linewidth": 1,
  2048                 "links": [ ],
  2049                 "nullPointMode": "null as zero",
  2050                 "percentage": false,
  2051                 "pointradius": 5,
  2052                 "points": false,
  2053                 "renderer": "flot",
  2054                 "repeat": null,
  2055                 "seriesOverrides": [ ],
  2056                 "spaceLength": 10,
  2057                 "stack": false,
  2058                 "steppedLine": false,
  2059                 "targets": [
  2060                    {
  2061                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod,operation)(\n  sum by(namespace,app_kubernetes_io_instance,pod,operation)(rate(vtgate_api_error_counts{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n",
  2062                       "format": "time_series",
  2063                       "intervalFactor": 2,
  2064                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{operation}}",
  2065                       "refId": "A"
  2066                    }
  2067                 ],
  2068                 "thresholds": [ ],
  2069                 "timeFrom": null,
  2070                 "timeShift": null,
  2071                 "title": "Errors (by operation)",
  2072                 "tooltip": {
  2073                    "shared": false,
  2074                    "sort": 2,
  2075                    "value_type": "individual"
  2076                 },
  2077                 "type": "graph",
  2078                 "xaxis": {
  2079                    "buckets": null,
  2080                    "mode": "time",
  2081                    "name": null,
  2082                    "show": true,
  2083                    "values": [ ]
  2084                 },
  2085                 "yaxes": [
  2086                    {
  2087                       "format": "cps",
  2088                       "label": null,
  2089                       "logBase": 1,
  2090                       "max": null,
  2091                       "min": 0,
  2092                       "show": true
  2093                    },
  2094                    {
  2095                       "format": "cps",
  2096                       "label": null,
  2097                       "logBase": 1,
  2098                       "max": null,
  2099                       "min": 0,
  2100                       "show": true
  2101                    }
  2102                 ]
  2103              },
  2104              {
  2105                 "aliasColors": { },
  2106                 "bars": false,
  2107                 "dashLength": 10,
  2108                 "dashes": false,
  2109                 "datasource": "Prometheus",
  2110                 "fill": 0,
  2111                 "fillGradient": 0,
  2112                 "gridPos": {
  2113                    "h": 7,
  2114                    "w": 8,
  2115                    "x": 16,
  2116                    "y": 66
  2117                 },
  2118                 "id": 31,
  2119                 "legend": {
  2120                    "alignAsTable": true,
  2121                    "avg": false,
  2122                    "current": true,
  2123                    "max": true,
  2124                    "min": true,
  2125                    "rightSide": false,
  2126                    "show": true,
  2127                    "sideWidth": null,
  2128                    "sort": "current",
  2129                    "sortDesc": true,
  2130                    "total": false,
  2131                    "values": true
  2132                 },
  2133                 "lines": true,
  2134                 "linewidth": 1,
  2135                 "links": [ ],
  2136                 "nullPointMode": "null as zero",
  2137                 "percentage": false,
  2138                 "pointradius": 5,
  2139                 "points": false,
  2140                 "renderer": "flot",
  2141                 "repeat": null,
  2142                 "seriesOverrides": [ ],
  2143                 "spaceLength": 10,
  2144                 "stack": false,
  2145                 "steppedLine": false,
  2146                 "targets": [
  2147                    {
  2148                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod,db_type)(\n  sum by(namespace,app_kubernetes_io_instance,pod,db_type)(rate(vtgate_api_error_counts{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\"}[1m]))\n)\n",
  2149                       "format": "time_series",
  2150                       "intervalFactor": 2,
  2151                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{db_type}}",
  2152                       "refId": "A"
  2153                    }
  2154                 ],
  2155                 "thresholds": [ ],
  2156                 "timeFrom": null,
  2157                 "timeShift": null,
  2158                 "title": "Errors (by db_type)",
  2159                 "tooltip": {
  2160                    "shared": false,
  2161                    "sort": 2,
  2162                    "value_type": "individual"
  2163                 },
  2164                 "type": "graph",
  2165                 "xaxis": {
  2166                    "buckets": null,
  2167                    "mode": "time",
  2168                    "name": null,
  2169                    "show": true,
  2170                    "values": [ ]
  2171                 },
  2172                 "yaxes": [
  2173                    {
  2174                       "format": "cps",
  2175                       "label": null,
  2176                       "logBase": 1,
  2177                       "max": null,
  2178                       "min": 0,
  2179                       "show": true
  2180                    },
  2181                    {
  2182                       "format": "cps",
  2183                       "label": null,
  2184                       "logBase": 1,
  2185                       "max": null,
  2186                       "min": 0,
  2187                       "show": true
  2188                    }
  2189                 ]
  2190              }
  2191           ],
  2192           "repeat": null,
  2193           "repeatIteration": null,
  2194           "repeatRowId": null,
  2195           "showTitle": true,
  2196           "title": "Errors (vtgate)",
  2197           "titleSize": "h6",
  2198           "type": "row"
  2199        },
  2200        {
  2201           "collapse": true,
  2202           "collapsed": true,
  2203           "gridPos": {
  2204              "h": 1,
  2205              "w": 24,
  2206              "x": 0,
  2207              "y": 73
  2208           },
  2209           "id": 32,
  2210           "panels": [
  2211              {
  2212                 "aliasColors": { },
  2213                 "bars": false,
  2214                 "dashLength": 10,
  2215                 "dashes": false,
  2216                 "datasource": "Prometheus",
  2217                 "fill": 0,
  2218                 "fillGradient": 0,
  2219                 "gridPos": {
  2220                    "h": 7,
  2221                    "w": 12,
  2222                    "x": 0,
  2223                    "y": 74
  2224                 },
  2225                 "id": 33,
  2226                 "legend": {
  2227                    "alignAsTable": true,
  2228                    "avg": false,
  2229                    "current": true,
  2230                    "max": true,
  2231                    "min": true,
  2232                    "rightSide": false,
  2233                    "show": true,
  2234                    "sideWidth": null,
  2235                    "sort": "current",
  2236                    "sortDesc": true,
  2237                    "total": false,
  2238                    "values": true
  2239                 },
  2240                 "lines": true,
  2241                 "linewidth": 1,
  2242                 "links": [ ],
  2243                 "nullPointMode": "null as zero",
  2244                 "percentage": false,
  2245                 "pointradius": 5,
  2246                 "points": false,
  2247                 "renderer": "flot",
  2248                 "repeat": null,
  2249                 "seriesOverrides": [ ],
  2250                 "spaceLength": 10,
  2251                 "stack": false,
  2252                 "steppedLine": false,
  2253                 "targets": [
  2254                    {
  2255                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod,table) (\n  rate(\n    vttablet_query_rows_returned_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  2256                       "format": "time_series",
  2257                       "intervalFactor": 2,
  2258                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{table}}",
  2259                       "refId": "A"
  2260                    }
  2261                 ],
  2262                 "thresholds": [ ],
  2263                 "timeFrom": null,
  2264                 "timeShift": null,
  2265                 "title": "Rows Returned (by table)",
  2266                 "tooltip": {
  2267                    "shared": false,
  2268                    "sort": 2,
  2269                    "value_type": "individual"
  2270                 },
  2271                 "type": "graph",
  2272                 "xaxis": {
  2273                    "buckets": null,
  2274                    "mode": "time",
  2275                    "name": null,
  2276                    "show": true,
  2277                    "values": [ ]
  2278                 },
  2279                 "yaxes": [
  2280                    {
  2281                       "format": "short",
  2282                       "label": null,
  2283                       "logBase": 1,
  2284                       "max": null,
  2285                       "min": 0,
  2286                       "show": true
  2287                    },
  2288                    {
  2289                       "format": "short",
  2290                       "label": null,
  2291                       "logBase": 1,
  2292                       "max": null,
  2293                       "min": 0,
  2294                       "show": true
  2295                    }
  2296                 ]
  2297              },
  2298              {
  2299                 "aliasColors": { },
  2300                 "bars": false,
  2301                 "dashLength": 10,
  2302                 "dashes": false,
  2303                 "datasource": "Prometheus",
  2304                 "fill": 0,
  2305                 "fillGradient": 0,
  2306                 "gridPos": {
  2307                    "h": 7,
  2308                    "w": 12,
  2309                    "x": 12,
  2310                    "y": 74
  2311                 },
  2312                 "id": 34,
  2313                 "legend": {
  2314                    "alignAsTable": true,
  2315                    "avg": false,
  2316                    "current": true,
  2317                    "max": true,
  2318                    "min": true,
  2319                    "rightSide": false,
  2320                    "show": true,
  2321                    "sideWidth": null,
  2322                    "sort": "current",
  2323                    "sortDesc": true,
  2324                    "total": false,
  2325                    "values": true
  2326                 },
  2327                 "lines": true,
  2328                 "linewidth": 1,
  2329                 "links": [ ],
  2330                 "nullPointMode": "null as zero",
  2331                 "percentage": false,
  2332                 "pointradius": 5,
  2333                 "points": false,
  2334                 "renderer": "flot",
  2335                 "repeat": null,
  2336                 "seriesOverrides": [ ],
  2337                 "spaceLength": 10,
  2338                 "stack": false,
  2339                 "steppedLine": false,
  2340                 "targets": [
  2341                    {
  2342                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod,plan) (\n  rate(\n    vttablet_query_rows_returned_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  2343                       "format": "time_series",
  2344                       "intervalFactor": 2,
  2345                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{plan}}",
  2346                       "refId": "A"
  2347                    }
  2348                 ],
  2349                 "thresholds": [ ],
  2350                 "timeFrom": null,
  2351                 "timeShift": null,
  2352                 "title": "Rows Returned (by plan)",
  2353                 "tooltip": {
  2354                    "shared": false,
  2355                    "sort": 2,
  2356                    "value_type": "individual"
  2357                 },
  2358                 "type": "graph",
  2359                 "xaxis": {
  2360                    "buckets": null,
  2361                    "mode": "time",
  2362                    "name": null,
  2363                    "show": true,
  2364                    "values": [ ]
  2365                 },
  2366                 "yaxes": [
  2367                    {
  2368                       "format": "short",
  2369                       "label": null,
  2370                       "logBase": 1,
  2371                       "max": null,
  2372                       "min": 0,
  2373                       "show": true
  2374                    },
  2375                    {
  2376                       "format": "short",
  2377                       "label": null,
  2378                       "logBase": 1,
  2379                       "max": null,
  2380                       "min": 0,
  2381                       "show": true
  2382                    }
  2383                 ]
  2384              }
  2385           ],
  2386           "repeat": null,
  2387           "repeatIteration": null,
  2388           "repeatRowId": null,
  2389           "showTitle": true,
  2390           "title": "Rows returned",
  2391           "titleSize": "h6",
  2392           "type": "row"
  2393        },
  2394        {
  2395           "collapse": true,
  2396           "collapsed": true,
  2397           "gridPos": {
  2398              "h": 1,
  2399              "w": 24,
  2400              "x": 0,
  2401              "y": 81
  2402           },
  2403           "id": 35,
  2404           "panels": [
  2405              {
  2406                 "aliasColors": { },
  2407                 "bars": false,
  2408                 "dashLength": 10,
  2409                 "dashes": false,
  2410                 "datasource": "Prometheus",
  2411                 "description": "Kills reports the queries and transactions killed by VTTablet due to timeout.\nIt’s a very important variable to look at during outages.\n",
  2412                 "fill": 0,
  2413                 "fillGradient": 0,
  2414                 "gridPos": {
  2415                    "h": 7,
  2416                    "w": 8,
  2417                    "x": 0,
  2418                    "y": 82
  2419                 },
  2420                 "id": 36,
  2421                 "legend": {
  2422                    "alignAsTable": true,
  2423                    "avg": true,
  2424                    "current": false,
  2425                    "max": true,
  2426                    "min": true,
  2427                    "rightSide": false,
  2428                    "show": true,
  2429                    "sideWidth": null,
  2430                    "total": false,
  2431                    "values": true
  2432                 },
  2433                 "lines": true,
  2434                 "linewidth": 1,
  2435                 "links": [ ],
  2436                 "nullPointMode": "null as zero",
  2437                 "percentage": false,
  2438                 "pointradius": 5,
  2439                 "points": false,
  2440                 "renderer": "flot",
  2441                 "repeat": null,
  2442                 "seriesOverrides": [ ],
  2443                 "spaceLength": 10,
  2444                 "stack": false,
  2445                 "steppedLine": false,
  2446                 "targets": [
  2447                    {
  2448                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod,instance)(\n  sum by(namespace,app_kubernetes_io_instance,pod,instance)(rate(vttablet_kills_total{\n    namespace=~\"$namespace\",\n    app_kubernetes_io_instance=~\"$cluster\",\n    pod=~\"$instance\",\n  }[1m]))\n)\n",
  2449                       "format": "time_series",
  2450                       "intervalFactor": 2,
  2451                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  2452                       "refId": "A"
  2453                    }
  2454                 ],
  2455                 "thresholds": [ ],
  2456                 "timeFrom": null,
  2457                 "timeShift": null,
  2458                 "title": "Queries Killed",
  2459                 "tooltip": {
  2460                    "shared": false,
  2461                    "sort": 0,
  2462                    "value_type": "individual"
  2463                 },
  2464                 "type": "graph",
  2465                 "xaxis": {
  2466                    "buckets": null,
  2467                    "mode": "time",
  2468                    "name": null,
  2469                    "show": true,
  2470                    "values": [ ]
  2471                 },
  2472                 "yaxes": [
  2473                    {
  2474                       "format": "short",
  2475                       "label": null,
  2476                       "logBase": 1,
  2477                       "max": null,
  2478                       "min": 0,
  2479                       "show": true
  2480                    },
  2481                    {
  2482                       "format": "short",
  2483                       "label": null,
  2484                       "logBase": 1,
  2485                       "max": null,
  2486                       "min": 0,
  2487                       "show": true
  2488                    }
  2489                 ]
  2490              },
  2491              {
  2492                 "aliasColors": { },
  2493                 "bars": false,
  2494                 "dashLength": 10,
  2495                 "dashes": false,
  2496                 "datasource": "Prometheus",
  2497                 "description": "",
  2498                 "fill": 0,
  2499                 "fillGradient": 0,
  2500                 "gridPos": {
  2501                    "h": 7,
  2502                    "w": 8,
  2503                    "x": 8,
  2504                    "y": 82
  2505                 },
  2506                 "id": 37,
  2507                 "legend": {
  2508                    "alignAsTable": true,
  2509                    "avg": true,
  2510                    "current": false,
  2511                    "max": true,
  2512                    "min": true,
  2513                    "rightSide": false,
  2514                    "show": true,
  2515                    "sideWidth": null,
  2516                    "total": false,
  2517                    "values": true
  2518                 },
  2519                 "lines": true,
  2520                 "linewidth": 1,
  2521                 "links": [ ],
  2522                 "nullPointMode": "null as zero",
  2523                 "percentage": false,
  2524                 "pointradius": 5,
  2525                 "points": false,
  2526                 "renderer": "flot",
  2527                 "repeat": null,
  2528                 "seriesOverrides": [ ],
  2529                 "spaceLength": 10,
  2530                 "stack": false,
  2531                 "steppedLine": false,
  2532                 "targets": [
  2533                    {
  2534                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod,error_code)(\n  sum by(keyspace,shard,instance,error_code)(rate(vttablet_errors_total{\n    namespace=~\"$namespace\",\n    app_kubernetes_io_instance=~\"$cluster\",\n    pod=~\"$instance\",\n  }[1m]))\n)\n",
  2535                       "format": "time_series",
  2536                       "intervalFactor": 2,
  2537                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | ErrorCode: {{error_code}}",
  2538                       "refId": "A"
  2539                    }
  2540                 ],
  2541                 "thresholds": [ ],
  2542                 "timeFrom": null,
  2543                 "timeShift": null,
  2544                 "title": "Query errors (by error code)",
  2545                 "tooltip": {
  2546                    "shared": false,
  2547                    "sort": 0,
  2548                    "value_type": "individual"
  2549                 },
  2550                 "type": "graph",
  2551                 "xaxis": {
  2552                    "buckets": null,
  2553                    "mode": "time",
  2554                    "name": null,
  2555                    "show": true,
  2556                    "values": [ ]
  2557                 },
  2558                 "yaxes": [
  2559                    {
  2560                       "format": "short",
  2561                       "label": null,
  2562                       "logBase": 1,
  2563                       "max": null,
  2564                       "min": 0,
  2565                       "show": true
  2566                    },
  2567                    {
  2568                       "format": "short",
  2569                       "label": null,
  2570                       "logBase": 1,
  2571                       "max": null,
  2572                       "min": 0,
  2573                       "show": true
  2574                    }
  2575                 ]
  2576              }
  2577           ],
  2578           "repeat": null,
  2579           "repeatIteration": null,
  2580           "repeatRowId": null,
  2581           "showTitle": true,
  2582           "title": "Queries/Errors (VtTablet)",
  2583           "titleSize": "h6",
  2584           "type": "row"
  2585        },
  2586        {
  2587           "collapse": true,
  2588           "collapsed": true,
  2589           "gridPos": {
  2590              "h": 1,
  2591              "w": 24,
  2592              "x": 0,
  2593              "y": 89
  2594           },
  2595           "id": 38,
  2596           "panels": [
  2597              {
  2598                 "aliasColors": { },
  2599                 "bars": false,
  2600                 "dashLength": 10,
  2601                 "dashes": false,
  2602                 "datasource": "Prometheus",
  2603                 "description": "number of available connections in the pool in real-time",
  2604                 "fill": 0,
  2605                 "fillGradient": 0,
  2606                 "gridPos": {
  2607                    "h": 7,
  2608                    "w": 8,
  2609                    "x": 0,
  2610                    "y": 90
  2611                 },
  2612                 "id": 39,
  2613                 "legend": {
  2614                    "alignAsTable": true,
  2615                    "avg": true,
  2616                    "current": false,
  2617                    "max": true,
  2618                    "min": true,
  2619                    "rightSide": false,
  2620                    "show": true,
  2621                    "sideWidth": null,
  2622                    "sort": "avg",
  2623                    "sortDesc": true,
  2624                    "total": false,
  2625                    "values": true
  2626                 },
  2627                 "lines": true,
  2628                 "linewidth": 1,
  2629                 "links": [ ],
  2630                 "nullPointMode": "null",
  2631                 "percentage": false,
  2632                 "pointradius": 5,
  2633                 "points": false,
  2634                 "renderer": "flot",
  2635                 "repeat": null,
  2636                 "seriesOverrides": [ ],
  2637                 "spaceLength": 10,
  2638                 "stack": false,
  2639                 "steppedLine": false,
  2640                 "targets": [
  2641                    {
  2642                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod)(\n  vttablet_conn_pool_available{\n    namespace=~\"$namespace\",\n    app_kubernetes_io_instance=~\"$cluster\",\n    pod=~\"$instance\",\n  }\n)\n",
  2643                       "format": "time_series",
  2644                       "intervalFactor": 2,
  2645                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  2646                       "refId": "A"
  2647                    }
  2648                 ],
  2649                 "thresholds": [ ],
  2650                 "timeFrom": null,
  2651                 "timeShift": null,
  2652                 "title": "Available Connections",
  2653                 "tooltip": {
  2654                    "shared": true,
  2655                    "sort": 2,
  2656                    "value_type": "individual"
  2657                 },
  2658                 "type": "graph",
  2659                 "xaxis": {
  2660                    "buckets": null,
  2661                    "mode": "time",
  2662                    "name": null,
  2663                    "show": true,
  2664                    "values": [ ]
  2665                 },
  2666                 "yaxes": [
  2667                    {
  2668                       "format": "short",
  2669                       "label": null,
  2670                       "logBase": 1,
  2671                       "max": null,
  2672                       "min": 0,
  2673                       "show": true
  2674                    },
  2675                    {
  2676                       "format": "short",
  2677                       "label": null,
  2678                       "logBase": 1,
  2679                       "max": null,
  2680                       "min": 0,
  2681                       "show": true
  2682                    }
  2683                 ]
  2684              },
  2685              {
  2686                 "aliasColors": { },
  2687                 "bars": false,
  2688                 "dashLength": 10,
  2689                 "dashes": false,
  2690                 "datasource": "Prometheus",
  2691                 "description": "count of in use connections to mysql",
  2692                 "fill": 0,
  2693                 "fillGradient": 0,
  2694                 "gridPos": {
  2695                    "h": 7,
  2696                    "w": 8,
  2697                    "x": 8,
  2698                    "y": 90
  2699                 },
  2700                 "id": 40,
  2701                 "legend": {
  2702                    "alignAsTable": true,
  2703                    "avg": true,
  2704                    "current": false,
  2705                    "max": true,
  2706                    "min": true,
  2707                    "rightSide": false,
  2708                    "show": true,
  2709                    "sideWidth": null,
  2710                    "sort": "avg",
  2711                    "sortDesc": true,
  2712                    "total": false,
  2713                    "values": true
  2714                 },
  2715                 "lines": true,
  2716                 "linewidth": 1,
  2717                 "links": [ ],
  2718                 "nullPointMode": "null",
  2719                 "percentage": false,
  2720                 "pointradius": 5,
  2721                 "points": false,
  2722                 "renderer": "flot",
  2723                 "repeat": null,
  2724                 "seriesOverrides": [ ],
  2725                 "spaceLength": 10,
  2726                 "stack": false,
  2727                 "steppedLine": false,
  2728                 "targets": [
  2729                    {
  2730                       "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (\n  vttablet_conn_pool_active{\n    namespace=~\"$namespace\",\n    app_kubernetes_io_instance=~\"$cluster\",\n    pod=~\"$instance\",\n  }\n)\n",
  2731                       "format": "time_series",
  2732                       "intervalFactor": 2,
  2733                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  2734                       "refId": "A"
  2735                    }
  2736                 ],
  2737                 "thresholds": [ ],
  2738                 "timeFrom": null,
  2739                 "timeShift": null,
  2740                 "title": "Active Connections",
  2741                 "tooltip": {
  2742                    "shared": true,
  2743                    "sort": 2,
  2744                    "value_type": "individual"
  2745                 },
  2746                 "type": "graph",
  2747                 "xaxis": {
  2748                    "buckets": null,
  2749                    "mode": "time",
  2750                    "name": null,
  2751                    "show": true,
  2752                    "values": [ ]
  2753                 },
  2754                 "yaxes": [
  2755                    {
  2756                       "format": "short",
  2757                       "label": null,
  2758                       "logBase": 1,
  2759                       "max": null,
  2760                       "min": 0,
  2761                       "show": true
  2762                    },
  2763                    {
  2764                       "format": "short",
  2765                       "label": null,
  2766                       "logBase": 1,
  2767                       "max": null,
  2768                       "min": 0,
  2769                       "show": true
  2770                    }
  2771                 ]
  2772              },
  2773              {
  2774                 "aliasColors": { },
  2775                 "bars": false,
  2776                 "dashLength": 10,
  2777                 "dashes": false,
  2778                 "datasource": "Prometheus",
  2779                 "description": "rate of closing connections due to the idle timeout",
  2780                 "fill": 0,
  2781                 "fillGradient": 0,
  2782                 "gridPos": {
  2783                    "h": 7,
  2784                    "w": 8,
  2785                    "x": 16,
  2786                    "y": 90
  2787                 },
  2788                 "id": 41,
  2789                 "legend": {
  2790                    "alignAsTable": true,
  2791                    "avg": true,
  2792                    "current": false,
  2793                    "max": true,
  2794                    "min": true,
  2795                    "rightSide": false,
  2796                    "show": true,
  2797                    "sideWidth": null,
  2798                    "sort": "avg",
  2799                    "sortDesc": true,
  2800                    "total": false,
  2801                    "values": true
  2802                 },
  2803                 "lines": true,
  2804                 "linewidth": 1,
  2805                 "links": [ ],
  2806                 "nullPointMode": "null",
  2807                 "percentage": false,
  2808                 "pointradius": 5,
  2809                 "points": false,
  2810                 "renderer": "flot",
  2811                 "repeat": null,
  2812                 "seriesOverrides": [ ],
  2813                 "spaceLength": 10,
  2814                 "stack": false,
  2815                 "steppedLine": false,
  2816                 "targets": [
  2817                    {
  2818                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod)(\n  rate(\n    vttablet_conn_pool_idle_closed_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  2819                       "format": "time_series",
  2820                       "intervalFactor": 2,
  2821                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  2822                       "refId": "A"
  2823                    }
  2824                 ],
  2825                 "thresholds": [ ],
  2826                 "timeFrom": null,
  2827                 "timeShift": null,
  2828                 "title": "Idle Closed Rate",
  2829                 "tooltip": {
  2830                    "shared": true,
  2831                    "sort": 2,
  2832                    "value_type": "individual"
  2833                 },
  2834                 "type": "graph",
  2835                 "xaxis": {
  2836                    "buckets": null,
  2837                    "mode": "time",
  2838                    "name": null,
  2839                    "show": true,
  2840                    "values": [ ]
  2841                 },
  2842                 "yaxes": [
  2843                    {
  2844                       "format": "ops",
  2845                       "label": null,
  2846                       "logBase": 1,
  2847                       "max": null,
  2848                       "min": 0,
  2849                       "show": true
  2850                    },
  2851                    {
  2852                       "format": "ops",
  2853                       "label": null,
  2854                       "logBase": 1,
  2855                       "max": null,
  2856                       "min": 0,
  2857                       "show": true
  2858                    }
  2859                 ]
  2860              },
  2861              {
  2862                 "aliasColors": { },
  2863                 "bars": false,
  2864                 "dashLength": 10,
  2865                 "dashes": false,
  2866                 "datasource": "Prometheus",
  2867                 "description": "WaitCount will give you how often the transaction pool gets full that causes new transactions to wait.",
  2868                 "fill": 0,
  2869                 "fillGradient": 0,
  2870                 "gridPos": {
  2871                    "h": 7,
  2872                    "w": 8,
  2873                    "x": 0,
  2874                    "y": 97
  2875                 },
  2876                 "id": 42,
  2877                 "legend": {
  2878                    "alignAsTable": true,
  2879                    "avg": true,
  2880                    "current": false,
  2881                    "max": true,
  2882                    "min": true,
  2883                    "rightSide": false,
  2884                    "show": true,
  2885                    "sideWidth": null,
  2886                    "sort": "avg",
  2887                    "sortDesc": true,
  2888                    "total": false,
  2889                    "values": true
  2890                 },
  2891                 "lines": true,
  2892                 "linewidth": 1,
  2893                 "links": [ ],
  2894                 "nullPointMode": "null",
  2895                 "percentage": false,
  2896                 "pointradius": 5,
  2897                 "points": false,
  2898                 "renderer": "flot",
  2899                 "repeat": null,
  2900                 "seriesOverrides": [ ],
  2901                 "spaceLength": 10,
  2902                 "stack": false,
  2903                 "steppedLine": false,
  2904                 "targets": [
  2905                    {
  2906                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod)(\n  rate(\n    vttablet_conn_pool_wait_count_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  2907                       "format": "time_series",
  2908                       "intervalFactor": 2,
  2909                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  2910                       "refId": "A"
  2911                    }
  2912                 ],
  2913                 "thresholds": [ ],
  2914                 "timeFrom": null,
  2915                 "timeShift": null,
  2916                 "title": "Wait count",
  2917                 "tooltip": {
  2918                    "shared": true,
  2919                    "sort": 2,
  2920                    "value_type": "individual"
  2921                 },
  2922                 "type": "graph",
  2923                 "xaxis": {
  2924                    "buckets": null,
  2925                    "mode": "time",
  2926                    "name": null,
  2927                    "show": true,
  2928                    "values": [ ]
  2929                 },
  2930                 "yaxes": [
  2931                    {
  2932                       "format": "short",
  2933                       "label": null,
  2934                       "logBase": 1,
  2935                       "max": null,
  2936                       "min": 0,
  2937                       "show": true
  2938                    },
  2939                    {
  2940                       "format": "short",
  2941                       "label": null,
  2942                       "logBase": 1,
  2943                       "max": null,
  2944                       "min": 0,
  2945                       "show": true
  2946                    }
  2947                 ]
  2948              },
  2949              {
  2950                 "aliasColors": { },
  2951                 "bars": false,
  2952                 "dashLength": 10,
  2953                 "dashes": false,
  2954                 "datasource": "Prometheus",
  2955                 "description": "WaitTime/WaitCount will tell you the average wait time.",
  2956                 "fill": 0,
  2957                 "fillGradient": 0,
  2958                 "gridPos": {
  2959                    "h": 7,
  2960                    "w": 8,
  2961                    "x": 8,
  2962                    "y": 97
  2963                 },
  2964                 "id": 43,
  2965                 "legend": {
  2966                    "alignAsTable": true,
  2967                    "avg": true,
  2968                    "current": false,
  2969                    "max": true,
  2970                    "min": true,
  2971                    "rightSide": false,
  2972                    "show": true,
  2973                    "sideWidth": null,
  2974                    "sort": "avg",
  2975                    "sortDesc": true,
  2976                    "total": false,
  2977                    "values": true
  2978                 },
  2979                 "lines": true,
  2980                 "linewidth": 1,
  2981                 "links": [ ],
  2982                 "nullPointMode": "null",
  2983                 "percentage": false,
  2984                 "pointradius": 5,
  2985                 "points": false,
  2986                 "renderer": "flot",
  2987                 "repeat": null,
  2988                 "seriesOverrides": [ ],
  2989                 "spaceLength": 10,
  2990                 "stack": false,
  2991                 "steppedLine": false,
  2992                 "targets": [
  2993                    {
  2994                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod) (\n  rate(\n    vttablet_conn_pool_wait_time_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n/\nsum by (namespace,app_kubernetes_io_instance,pod) (\n  rate(\n    vttablet_conn_pool_wait_count_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  2995                       "format": "time_series",
  2996                       "intervalFactor": 2,
  2997                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  2998                       "refId": "A"
  2999                    }
  3000                 ],
  3001                 "thresholds": [ ],
  3002                 "timeFrom": null,
  3003                 "timeShift": null,
  3004                 "title": "Avg wait time",
  3005                 "tooltip": {
  3006                    "shared": true,
  3007                    "sort": 2,
  3008                    "value_type": "individual"
  3009                 },
  3010                 "type": "graph",
  3011                 "xaxis": {
  3012                    "buckets": null,
  3013                    "mode": "time",
  3014                    "name": null,
  3015                    "show": true,
  3016                    "values": [ ]
  3017                 },
  3018                 "yaxes": [
  3019                    {
  3020                       "format": "s",
  3021                       "label": null,
  3022                       "logBase": 1,
  3023                       "max": null,
  3024                       "min": 0,
  3025                       "show": true
  3026                    },
  3027                    {
  3028                       "format": "s",
  3029                       "label": null,
  3030                       "logBase": 1,
  3031                       "max": null,
  3032                       "min": 0,
  3033                       "show": true
  3034                    }
  3035                 ]
  3036              }
  3037           ],
  3038           "repeat": null,
  3039           "repeatIteration": null,
  3040           "repeatRowId": null,
  3041           "showTitle": true,
  3042           "title": "MySQL-Proxy - Query pool",
  3043           "titleSize": "h6",
  3044           "type": "row"
  3045        },
  3046        {
  3047           "collapse": true,
  3048           "collapsed": true,
  3049           "gridPos": {
  3050              "h": 1,
  3051              "w": 24,
  3052              "x": 0,
  3053              "y": 104
  3054           },
  3055           "id": 44,
  3056           "panels": [
  3057              {
  3058                 "aliasColors": { },
  3059                 "bars": false,
  3060                 "dashLength": 10,
  3061                 "dashes": false,
  3062                 "datasource": "Prometheus",
  3063                 "description": "number of available connections in the pool",
  3064                 "fill": 0,
  3065                 "fillGradient": 0,
  3066                 "gridPos": {
  3067                    "h": 7,
  3068                    "w": 8,
  3069                    "x": 0,
  3070                    "y": 105
  3071                 },
  3072                 "id": 45,
  3073                 "legend": {
  3074                    "alignAsTable": true,
  3075                    "avg": true,
  3076                    "current": false,
  3077                    "max": true,
  3078                    "min": true,
  3079                    "rightSide": false,
  3080                    "show": true,
  3081                    "sideWidth": null,
  3082                    "sort": "avg",
  3083                    "sortDesc": true,
  3084                    "total": false,
  3085                    "values": true
  3086                 },
  3087                 "lines": true,
  3088                 "linewidth": 1,
  3089                 "links": [ ],
  3090                 "nullPointMode": "null",
  3091                 "percentage": false,
  3092                 "pointradius": 5,
  3093                 "points": false,
  3094                 "renderer": "flot",
  3095                 "repeat": null,
  3096                 "seriesOverrides": [ ],
  3097                 "spaceLength": 10,
  3098                 "stack": false,
  3099                 "steppedLine": false,
  3100                 "targets": [
  3101                    {
  3102                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod)(\n  vttablet_transaction_pool_available{\n    namespace=~\"$namespace\",\n    app_kubernetes_io_instance=~\"$cluster\",\n    pod=~\"$instance\",\n  }\n)\n",
  3103                       "format": "time_series",
  3104                       "intervalFactor": 2,
  3105                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3106                       "refId": "A"
  3107                    }
  3108                 ],
  3109                 "thresholds": [ ],
  3110                 "timeFrom": null,
  3111                 "timeShift": null,
  3112                 "title": "Available Connections",
  3113                 "tooltip": {
  3114                    "shared": true,
  3115                    "sort": 2,
  3116                    "value_type": "individual"
  3117                 },
  3118                 "type": "graph",
  3119                 "xaxis": {
  3120                    "buckets": null,
  3121                    "mode": "time",
  3122                    "name": null,
  3123                    "show": true,
  3124                    "values": [ ]
  3125                 },
  3126                 "yaxes": [
  3127                    {
  3128                       "format": "short",
  3129                       "label": null,
  3130                       "logBase": 1,
  3131                       "max": null,
  3132                       "min": 0,
  3133                       "show": true
  3134                    },
  3135                    {
  3136                       "format": "short",
  3137                       "label": null,
  3138                       "logBase": 1,
  3139                       "max": null,
  3140                       "min": 0,
  3141                       "show": true
  3142                    }
  3143                 ]
  3144              },
  3145              {
  3146                 "aliasColors": { },
  3147                 "bars": false,
  3148                 "dashLength": 10,
  3149                 "dashes": false,
  3150                 "datasource": "Prometheus",
  3151                 "description": "Number of connections actually open to mysql",
  3152                 "fill": 0,
  3153                 "fillGradient": 0,
  3154                 "gridPos": {
  3155                    "h": 7,
  3156                    "w": 8,
  3157                    "x": 8,
  3158                    "y": 105
  3159                 },
  3160                 "id": 46,
  3161                 "legend": {
  3162                    "alignAsTable": true,
  3163                    "avg": true,
  3164                    "current": false,
  3165                    "max": true,
  3166                    "min": true,
  3167                    "rightSide": false,
  3168                    "show": true,
  3169                    "sideWidth": null,
  3170                    "sort": "avg",
  3171                    "sortDesc": true,
  3172                    "total": false,
  3173                    "values": true
  3174                 },
  3175                 "lines": true,
  3176                 "linewidth": 1,
  3177                 "links": [ ],
  3178                 "nullPointMode": "null",
  3179                 "percentage": false,
  3180                 "pointradius": 5,
  3181                 "points": false,
  3182                 "renderer": "flot",
  3183                 "repeat": null,
  3184                 "seriesOverrides": [ ],
  3185                 "spaceLength": 10,
  3186                 "stack": false,
  3187                 "steppedLine": false,
  3188                 "targets": [
  3189                    {
  3190                       "expr": "sum by(namespace,app_kubernetes_io_instance,pod) (\n  vttablet_transaction_pool_active{\n    namespace=~\"$namespace\",\n    app_kubernetes_io_instance=~\"$cluster\",\n    pod=~\"$instance\",\n  }\n)\n",
  3191                       "format": "time_series",
  3192                       "intervalFactor": 2,
  3193                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3194                       "refId": "A"
  3195                    }
  3196                 ],
  3197                 "thresholds": [ ],
  3198                 "timeFrom": null,
  3199                 "timeShift": null,
  3200                 "title": "Active Connections",
  3201                 "tooltip": {
  3202                    "shared": true,
  3203                    "sort": 2,
  3204                    "value_type": "individual"
  3205                 },
  3206                 "type": "graph",
  3207                 "xaxis": {
  3208                    "buckets": null,
  3209                    "mode": "time",
  3210                    "name": null,
  3211                    "show": true,
  3212                    "values": [ ]
  3213                 },
  3214                 "yaxes": [
  3215                    {
  3216                       "format": "short",
  3217                       "label": null,
  3218                       "logBase": 1,
  3219                       "max": null,
  3220                       "min": 0,
  3221                       "show": true
  3222                    },
  3223                    {
  3224                       "format": "short",
  3225                       "label": null,
  3226                       "logBase": 1,
  3227                       "max": null,
  3228                       "min": 0,
  3229                       "show": true
  3230                    }
  3231                 ]
  3232              },
  3233              {
  3234                 "aliasColors": { },
  3235                 "bars": false,
  3236                 "dashLength": 10,
  3237                 "dashes": false,
  3238                 "datasource": "Prometheus",
  3239                 "description": "Rate of closing connections due to the idle timeout",
  3240                 "fill": 0,
  3241                 "fillGradient": 0,
  3242                 "gridPos": {
  3243                    "h": 7,
  3244                    "w": 8,
  3245                    "x": 16,
  3246                    "y": 105
  3247                 },
  3248                 "id": 47,
  3249                 "legend": {
  3250                    "alignAsTable": true,
  3251                    "avg": true,
  3252                    "current": false,
  3253                    "max": true,
  3254                    "min": true,
  3255                    "rightSide": false,
  3256                    "show": true,
  3257                    "sideWidth": null,
  3258                    "sort": "avg",
  3259                    "sortDesc": true,
  3260                    "total": false,
  3261                    "values": true
  3262                 },
  3263                 "lines": true,
  3264                 "linewidth": 1,
  3265                 "links": [ ],
  3266                 "nullPointMode": "null",
  3267                 "percentage": false,
  3268                 "pointradius": 5,
  3269                 "points": false,
  3270                 "renderer": "flot",
  3271                 "repeat": null,
  3272                 "seriesOverrides": [ ],
  3273                 "spaceLength": 10,
  3274                 "stack": false,
  3275                 "steppedLine": false,
  3276                 "targets": [
  3277                    {
  3278                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod)(\n  rate(\n    vttablet_transaction_pool_idle_closed_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  3279                       "format": "time_series",
  3280                       "intervalFactor": 2,
  3281                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3282                       "refId": "A"
  3283                    }
  3284                 ],
  3285                 "thresholds": [ ],
  3286                 "timeFrom": null,
  3287                 "timeShift": null,
  3288                 "title": "Idle Closed Rate",
  3289                 "tooltip": {
  3290                    "shared": true,
  3291                    "sort": 2,
  3292                    "value_type": "individual"
  3293                 },
  3294                 "type": "graph",
  3295                 "xaxis": {
  3296                    "buckets": null,
  3297                    "mode": "time",
  3298                    "name": null,
  3299                    "show": true,
  3300                    "values": [ ]
  3301                 },
  3302                 "yaxes": [
  3303                    {
  3304                       "format": "ops",
  3305                       "label": null,
  3306                       "logBase": 1,
  3307                       "max": null,
  3308                       "min": 0,
  3309                       "show": true
  3310                    },
  3311                    {
  3312                       "format": "ops",
  3313                       "label": null,
  3314                       "logBase": 1,
  3315                       "max": null,
  3316                       "min": 0,
  3317                       "show": true
  3318                    }
  3319                 ]
  3320              },
  3321              {
  3322                 "aliasColors": { },
  3323                 "bars": false,
  3324                 "dashLength": 10,
  3325                 "dashes": false,
  3326                 "datasource": "Prometheus",
  3327                 "description": "WaitCount will give you how often the transaction pool gets full that causes new transactions to wait.",
  3328                 "fill": 0,
  3329                 "fillGradient": 0,
  3330                 "gridPos": {
  3331                    "h": 7,
  3332                    "w": 8,
  3333                    "x": 0,
  3334                    "y": 112
  3335                 },
  3336                 "id": 48,
  3337                 "legend": {
  3338                    "alignAsTable": true,
  3339                    "avg": true,
  3340                    "current": false,
  3341                    "max": true,
  3342                    "min": true,
  3343                    "rightSide": false,
  3344                    "show": true,
  3345                    "sideWidth": null,
  3346                    "sort": "avg",
  3347                    "sortDesc": true,
  3348                    "total": false,
  3349                    "values": true
  3350                 },
  3351                 "lines": true,
  3352                 "linewidth": 1,
  3353                 "links": [ ],
  3354                 "nullPointMode": "null",
  3355                 "percentage": false,
  3356                 "pointradius": 5,
  3357                 "points": false,
  3358                 "renderer": "flot",
  3359                 "repeat": null,
  3360                 "seriesOverrides": [ ],
  3361                 "spaceLength": 10,
  3362                 "stack": false,
  3363                 "steppedLine": false,
  3364                 "targets": [
  3365                    {
  3366                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod)(\n  rate(\n    vttablet_transaction_pool_wait_count_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  3367                       "format": "time_series",
  3368                       "intervalFactor": 2,
  3369                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3370                       "refId": "A"
  3371                    }
  3372                 ],
  3373                 "thresholds": [ ],
  3374                 "timeFrom": null,
  3375                 "timeShift": null,
  3376                 "title": "Wait count",
  3377                 "tooltip": {
  3378                    "shared": true,
  3379                    "sort": 2,
  3380                    "value_type": "individual"
  3381                 },
  3382                 "type": "graph",
  3383                 "xaxis": {
  3384                    "buckets": null,
  3385                    "mode": "time",
  3386                    "name": null,
  3387                    "show": true,
  3388                    "values": [ ]
  3389                 },
  3390                 "yaxes": [
  3391                    {
  3392                       "format": "short",
  3393                       "label": null,
  3394                       "logBase": 1,
  3395                       "max": null,
  3396                       "min": 0,
  3397                       "show": true
  3398                    },
  3399                    {
  3400                       "format": "short",
  3401                       "label": null,
  3402                       "logBase": 1,
  3403                       "max": null,
  3404                       "min": 0,
  3405                       "show": true
  3406                    }
  3407                 ]
  3408              },
  3409              {
  3410                 "aliasColors": { },
  3411                 "bars": false,
  3412                 "dashLength": 10,
  3413                 "dashes": false,
  3414                 "datasource": "Prometheus",
  3415                 "description": "WaitTime/WaitCount will tell you the average wait time.",
  3416                 "fill": 0,
  3417                 "fillGradient": 0,
  3418                 "gridPos": {
  3419                    "h": 7,
  3420                    "w": 8,
  3421                    "x": 8,
  3422                    "y": 112
  3423                 },
  3424                 "id": 49,
  3425                 "legend": {
  3426                    "alignAsTable": true,
  3427                    "avg": true,
  3428                    "current": false,
  3429                    "max": true,
  3430                    "min": true,
  3431                    "rightSide": false,
  3432                    "show": true,
  3433                    "sideWidth": null,
  3434                    "sort": "avg",
  3435                    "sortDesc": true,
  3436                    "total": false,
  3437                    "values": true
  3438                 },
  3439                 "lines": true,
  3440                 "linewidth": 1,
  3441                 "links": [ ],
  3442                 "nullPointMode": "null",
  3443                 "percentage": false,
  3444                 "pointradius": 5,
  3445                 "points": false,
  3446                 "renderer": "flot",
  3447                 "repeat": null,
  3448                 "seriesOverrides": [ ],
  3449                 "spaceLength": 10,
  3450                 "stack": false,
  3451                 "steppedLine": false,
  3452                 "targets": [
  3453                    {
  3454                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod) (\n  rate(\n    vttablet_transaction_pool_wait_time_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n/\nsum by (namespace,app_kubernetes_io_instance,pod) (\n  rate(\n    vttablet_transaction_pool_wait_count_total{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  3455                       "format": "time_series",
  3456                       "intervalFactor": 2,
  3457                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3458                       "refId": "A"
  3459                    }
  3460                 ],
  3461                 "thresholds": [ ],
  3462                 "timeFrom": null,
  3463                 "timeShift": null,
  3464                 "title": "Avg wait time",
  3465                 "tooltip": {
  3466                    "shared": true,
  3467                    "sort": 2,
  3468                    "value_type": "individual"
  3469                 },
  3470                 "type": "graph",
  3471                 "xaxis": {
  3472                    "buckets": null,
  3473                    "mode": "time",
  3474                    "name": null,
  3475                    "show": true,
  3476                    "values": [ ]
  3477                 },
  3478                 "yaxes": [
  3479                    {
  3480                       "format": "s",
  3481                       "label": null,
  3482                       "logBase": 1,
  3483                       "max": null,
  3484                       "min": 0,
  3485                       "show": true
  3486                    },
  3487                    {
  3488                       "format": "s",
  3489                       "label": null,
  3490                       "logBase": 1,
  3491                       "max": null,
  3492                       "min": 0,
  3493                       "show": true
  3494                    }
  3495                 ]
  3496              }
  3497           ],
  3498           "repeat": null,
  3499           "repeatIteration": null,
  3500           "repeatRowId": null,
  3501           "showTitle": true,
  3502           "title": "MySQL-Proxy - Transaction pool",
  3503           "titleSize": "h6",
  3504           "type": "row"
  3505        },
  3506        {
  3507           "collapse": true,
  3508           "collapsed": true,
  3509           "gridPos": {
  3510              "h": 1,
  3511              "w": 24,
  3512              "x": 0,
  3513              "y": 119
  3514           },
  3515           "id": 50,
  3516           "panels": [
  3517              {
  3518                 "aliasColors": { },
  3519                 "bars": false,
  3520                 "dashLength": 10,
  3521                 "dashes": false,
  3522                 "datasource": "Prometheus",
  3523                 "fill": 0,
  3524                 "fillGradient": 0,
  3525                 "gridPos": {
  3526                    "h": 7,
  3527                    "w": 8,
  3528                    "x": 0,
  3529                    "y": 120
  3530                 },
  3531                 "id": 51,
  3532                 "legend": {
  3533                    "alignAsTable": true,
  3534                    "avg": true,
  3535                    "current": false,
  3536                    "max": true,
  3537                    "min": true,
  3538                    "rightSide": false,
  3539                    "show": true,
  3540                    "sideWidth": null,
  3541                    "sort": "max",
  3542                    "sortDesc": true,
  3543                    "total": false,
  3544                    "values": true
  3545                 },
  3546                 "lines": true,
  3547                 "linewidth": 1,
  3548                 "links": [ ],
  3549                 "nullPointMode": "null as zero",
  3550                 "percentage": false,
  3551                 "pointradius": 5,
  3552                 "points": false,
  3553                 "renderer": "flot",
  3554                 "repeat": null,
  3555                 "seriesOverrides": [ ],
  3556                 "spaceLength": 10,
  3557                 "stack": false,
  3558                 "steppedLine": false,
  3559                 "targets": [
  3560                    {
  3561                       "expr": "sum by(namespace,app_kubernetes_io_instance,pod)(\n  rate(\n    vttablet_transactions_sum{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n/\nsum by(namespace,app_kubernetes_io_instance,pod)(\n  rate(\n    vttablet_transactions_count{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  3562                       "format": "time_series",
  3563                       "intervalFactor": 2,
  3564                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3565                       "refId": "A"
  3566                    }
  3567                 ],
  3568                 "thresholds": [ ],
  3569                 "timeFrom": null,
  3570                 "timeShift": null,
  3571                 "title": "Transaction Duration (avg)",
  3572                 "tooltip": {
  3573                    "shared": false,
  3574                    "sort": 2,
  3575                    "value_type": "individual"
  3576                 },
  3577                 "type": "graph",
  3578                 "xaxis": {
  3579                    "buckets": null,
  3580                    "mode": "time",
  3581                    "name": null,
  3582                    "show": true,
  3583                    "values": [ ]
  3584                 },
  3585                 "yaxes": [
  3586                    {
  3587                       "format": "s",
  3588                       "label": null,
  3589                       "logBase": 1,
  3590                       "max": null,
  3591                       "min": 0,
  3592                       "show": true
  3593                    },
  3594                    {
  3595                       "format": "s",
  3596                       "label": null,
  3597                       "logBase": 1,
  3598                       "max": null,
  3599                       "min": 0,
  3600                       "show": true
  3601                    }
  3602                 ]
  3603              },
  3604              {
  3605                 "aliasColors": { },
  3606                 "bars": false,
  3607                 "dashLength": 10,
  3608                 "dashes": false,
  3609                 "datasource": "Prometheus",
  3610                 "fill": 0,
  3611                 "fillGradient": 0,
  3612                 "gridPos": {
  3613                    "h": 7,
  3614                    "w": 8,
  3615                    "x": 8,
  3616                    "y": 120
  3617                 },
  3618                 "id": 52,
  3619                 "legend": {
  3620                    "alignAsTable": true,
  3621                    "avg": true,
  3622                    "current": false,
  3623                    "max": true,
  3624                    "min": true,
  3625                    "rightSide": false,
  3626                    "show": true,
  3627                    "sideWidth": null,
  3628                    "sort": "max",
  3629                    "sortDesc": true,
  3630                    "total": false,
  3631                    "values": true
  3632                 },
  3633                 "lines": true,
  3634                 "linewidth": 1,
  3635                 "links": [ ],
  3636                 "nullPointMode": "null as zero",
  3637                 "percentage": false,
  3638                 "pointradius": 5,
  3639                 "points": false,
  3640                 "renderer": "flot",
  3641                 "repeat": null,
  3642                 "seriesOverrides": [ ],
  3643                 "spaceLength": 10,
  3644                 "stack": false,
  3645                 "steppedLine": false,
  3646                 "targets": [
  3647                    {
  3648                       "expr": "histogram_quantile(\n  0.50,sum by(namespace,app_kubernetes_io_instance,pod,le)(\n    rate(\n      vttablet_transactions_bucket{\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n)\n",
  3649                       "format": "time_series",
  3650                       "intervalFactor": 2,
  3651                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3652                       "refId": "A"
  3653                    }
  3654                 ],
  3655                 "thresholds": [ ],
  3656                 "timeFrom": null,
  3657                 "timeShift": null,
  3658                 "title": "Transaction Duration (p50)",
  3659                 "tooltip": {
  3660                    "shared": false,
  3661                    "sort": 2,
  3662                    "value_type": "individual"
  3663                 },
  3664                 "type": "graph",
  3665                 "xaxis": {
  3666                    "buckets": null,
  3667                    "mode": "time",
  3668                    "name": null,
  3669                    "show": true,
  3670                    "values": [ ]
  3671                 },
  3672                 "yaxes": [
  3673                    {
  3674                       "format": "s",
  3675                       "label": null,
  3676                       "logBase": 1,
  3677                       "max": null,
  3678                       "min": 0,
  3679                       "show": true
  3680                    },
  3681                    {
  3682                       "format": "s",
  3683                       "label": null,
  3684                       "logBase": 1,
  3685                       "max": null,
  3686                       "min": 0,
  3687                       "show": true
  3688                    }
  3689                 ]
  3690              },
  3691              {
  3692                 "aliasColors": { },
  3693                 "bars": false,
  3694                 "dashLength": 10,
  3695                 "dashes": false,
  3696                 "datasource": "Prometheus",
  3697                 "fill": 0,
  3698                 "fillGradient": 0,
  3699                 "gridPos": {
  3700                    "h": 7,
  3701                    "w": 8,
  3702                    "x": 16,
  3703                    "y": 120
  3704                 },
  3705                 "id": 53,
  3706                 "legend": {
  3707                    "alignAsTable": true,
  3708                    "avg": true,
  3709                    "current": false,
  3710                    "max": true,
  3711                    "min": true,
  3712                    "rightSide": false,
  3713                    "show": true,
  3714                    "sideWidth": null,
  3715                    "sort": "max",
  3716                    "sortDesc": true,
  3717                    "total": false,
  3718                    "values": true
  3719                 },
  3720                 "lines": true,
  3721                 "linewidth": 1,
  3722                 "links": [ ],
  3723                 "nullPointMode": "null as zero",
  3724                 "percentage": false,
  3725                 "pointradius": 5,
  3726                 "points": false,
  3727                 "renderer": "flot",
  3728                 "repeat": null,
  3729                 "seriesOverrides": [ ],
  3730                 "spaceLength": 10,
  3731                 "stack": false,
  3732                 "steppedLine": false,
  3733                 "targets": [
  3734                    {
  3735                       "expr": "histogram_quantile(\n  0.95,sum by(namespace,app_kubernetes_io_instance,pod,le)(\n    rate(\n      vttablet_transactions_bucket{\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n)\n",
  3736                       "format": "time_series",
  3737                       "intervalFactor": 2,
  3738                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3739                       "refId": "A"
  3740                    }
  3741                 ],
  3742                 "thresholds": [ ],
  3743                 "timeFrom": null,
  3744                 "timeShift": null,
  3745                 "title": "Transaction Duration (p95)",
  3746                 "tooltip": {
  3747                    "shared": false,
  3748                    "sort": 2,
  3749                    "value_type": "individual"
  3750                 },
  3751                 "type": "graph",
  3752                 "xaxis": {
  3753                    "buckets": null,
  3754                    "mode": "time",
  3755                    "name": null,
  3756                    "show": true,
  3757                    "values": [ ]
  3758                 },
  3759                 "yaxes": [
  3760                    {
  3761                       "format": "s",
  3762                       "label": null,
  3763                       "logBase": 1,
  3764                       "max": null,
  3765                       "min": 0,
  3766                       "show": true
  3767                    },
  3768                    {
  3769                       "format": "s",
  3770                       "label": null,
  3771                       "logBase": 1,
  3772                       "max": null,
  3773                       "min": 0,
  3774                       "show": true
  3775                    }
  3776                 ]
  3777              },
  3778              {
  3779                 "aliasColors": { },
  3780                 "bars": false,
  3781                 "dashLength": 10,
  3782                 "dashes": false,
  3783                 "datasource": "Prometheus",
  3784                 "fill": 0,
  3785                 "fillGradient": 0,
  3786                 "gridPos": {
  3787                    "h": 7,
  3788                    "w": 8,
  3789                    "x": 0,
  3790                    "y": 127
  3791                 },
  3792                 "id": 54,
  3793                 "legend": {
  3794                    "alignAsTable": true,
  3795                    "avg": true,
  3796                    "current": false,
  3797                    "max": true,
  3798                    "min": true,
  3799                    "rightSide": false,
  3800                    "show": true,
  3801                    "sideWidth": null,
  3802                    "sort": "max",
  3803                    "sortDesc": true,
  3804                    "total": false,
  3805                    "values": true
  3806                 },
  3807                 "lines": true,
  3808                 "linewidth": 1,
  3809                 "links": [ ],
  3810                 "nullPointMode": "null as zero",
  3811                 "percentage": false,
  3812                 "pointradius": 5,
  3813                 "points": false,
  3814                 "renderer": "flot",
  3815                 "repeat": null,
  3816                 "seriesOverrides": [ ],
  3817                 "spaceLength": 10,
  3818                 "stack": false,
  3819                 "steppedLine": false,
  3820                 "targets": [
  3821                    {
  3822                       "expr": "sum by (namespace,app_kubernetes_io_instance)(\n  rate(\n    vtgate_vttablet_call_sum{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[1m]\n  )\n)\n/\nsum by (namespace,app_kubernetes_io_instance)(\n  rate(\n    vtgate_vttablet_call_count{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n    }[1m]\n  )\n)\n",
  3823                       "format": "time_series",
  3824                       "intervalFactor": 2,
  3825                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}}",
  3826                       "refId": "A"
  3827                    }
  3828                 ],
  3829                 "thresholds": [ ],
  3830                 "timeFrom": null,
  3831                 "timeShift": null,
  3832                 "title": "VtGate -> VtTablet Call Time (avg)",
  3833                 "tooltip": {
  3834                    "shared": false,
  3835                    "sort": 0,
  3836                    "value_type": "individual"
  3837                 },
  3838                 "type": "graph",
  3839                 "xaxis": {
  3840                    "buckets": null,
  3841                    "mode": "time",
  3842                    "name": null,
  3843                    "show": true,
  3844                    "values": [ ]
  3845                 },
  3846                 "yaxes": [
  3847                    {
  3848                       "format": "s",
  3849                       "label": null,
  3850                       "logBase": 1,
  3851                       "max": null,
  3852                       "min": 0,
  3853                       "show": true
  3854                    },
  3855                    {
  3856                       "format": "s",
  3857                       "label": null,
  3858                       "logBase": 1,
  3859                       "max": null,
  3860                       "min": 0,
  3861                       "show": true
  3862                    }
  3863                 ]
  3864              },
  3865              {
  3866                 "cards": {
  3867                    "cardPadding": null,
  3868                    "cardRound": null
  3869                 },
  3870                 "color": {
  3871                    "cardColor": "#FF9830",
  3872                    "colorScale": "sqrt",
  3873                    "exponent": 0.29999999999999999,
  3874                    "mode": "opacity"
  3875                 },
  3876                 "dataFormat": "tsbuckets",
  3877                 "datasource": "Prometheus",
  3878                 "description": "Shows a heatmap of the histogram bucketing of the time per read query.",
  3879                 "gridPos": {
  3880                    "h": 7,
  3881                    "w": 16,
  3882                    "x": 8,
  3883                    "y": 127
  3884                 },
  3885                 "heatmap": { },
  3886                 "hideZeroBuckets": false,
  3887                 "highlightCards": true,
  3888                 "id": 55,
  3889                 "legend": {
  3890                    "show": false
  3891                 },
  3892                 "targets": [
  3893                    {
  3894                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod,le) (\n  rate(\n    vttablet_queries_bucket{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n     }[1m]\n    )\n  )\n",
  3895                       "format": "heatmap",
  3896                       "intervalFactor": 2,
  3897                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}} | {{le}}",
  3898                       "refId": "A"
  3899                    }
  3900                 ],
  3901                 "title": "Query Time Distribution (Heatmap)",
  3902                 "tooltip": {
  3903                    "show": true,
  3904                    "showHistogram": false
  3905                 },
  3906                 "type": "heatmap",
  3907                 "xAxis": {
  3908                    "show": true
  3909                 },
  3910                 "xBucketNumber": null,
  3911                 "xBucketSize": null,
  3912                 "yAxis": {
  3913                    "decimals": 0,
  3914                    "format": "s",
  3915                    "show": true,
  3916                    "splitFactor": null
  3917                 },
  3918                 "yBucketBound": "auto"
  3919              }
  3920           ],
  3921           "repeat": null,
  3922           "repeatIteration": null,
  3923           "repeatRowId": null,
  3924           "showTitle": true,
  3925           "title": "MySQL-Proxy Timings",
  3926           "titleSize": "h6",
  3927           "type": "row"
  3928        },
  3929        {
  3930           "collapse": true,
  3931           "collapsed": true,
  3932           "gridPos": {
  3933              "h": 1,
  3934              "w": 24,
  3935              "x": 0,
  3936              "y": 141
  3937           },
  3938           "id": 56,
  3939           "panels": [
  3940              {
  3941                 "aliasColors": { },
  3942                 "bars": false,
  3943                 "dashLength": 10,
  3944                 "dashes": false,
  3945                 "datasource": "Prometheus",
  3946                 "fill": 0,
  3947                 "fillGradient": 0,
  3948                 "gridPos": {
  3949                    "h": 7,
  3950                    "w": 8,
  3951                    "x": 0,
  3952                    "y": 142
  3953                 },
  3954                 "id": 57,
  3955                 "legend": {
  3956                    "alignAsTable": true,
  3957                    "avg": true,
  3958                    "current": false,
  3959                    "max": true,
  3960                    "min": true,
  3961                    "rightSide": false,
  3962                    "show": true,
  3963                    "sideWidth": null,
  3964                    "sort": "max",
  3965                    "sortDesc": true,
  3966                    "total": false,
  3967                    "values": true
  3968                 },
  3969                 "lines": true,
  3970                 "linewidth": 1,
  3971                 "links": [ ],
  3972                 "nullPointMode": "null",
  3973                 "percentage": false,
  3974                 "pointradius": 5,
  3975                 "points": false,
  3976                 "renderer": "flot",
  3977                 "repeat": null,
  3978                 "seriesOverrides": [ ],
  3979                 "spaceLength": 10,
  3980                 "stack": false,
  3981                 "steppedLine": false,
  3982                 "targets": [
  3983                    {
  3984                       "expr": "sum by (namespace,app_kubernetes_io_instance,pod) (\n  rate(\n    vttablet_mysql_sum{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n) \n/\nsum by (namespace,app_kubernetes_io_instance,pod) (\n  rate(\n    vttablet_mysql_count{\n      namespace=~\"$namespace\",\n      app_kubernetes_io_instance=~\"$cluster\",\n      pod=~\"$instance\",\n    }[1m]\n  )\n)\n",
  3985                       "format": "time_series",
  3986                       "intervalFactor": 2,
  3987                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  3988                       "refId": "A"
  3989                    }
  3990                 ],
  3991                 "thresholds": [ ],
  3992                 "timeFrom": null,
  3993                 "timeShift": null,
  3994                 "title": "MySQL time (avg)",
  3995                 "tooltip": {
  3996                    "shared": false,
  3997                    "sort": 0,
  3998                    "value_type": "individual"
  3999                 },
  4000                 "type": "graph",
  4001                 "xaxis": {
  4002                    "buckets": null,
  4003                    "mode": "time",
  4004                    "name": null,
  4005                    "show": true,
  4006                    "values": [ ]
  4007                 },
  4008                 "yaxes": [
  4009                    {
  4010                       "format": "s",
  4011                       "label": null,
  4012                       "logBase": 1,
  4013                       "max": null,
  4014                       "min": 0,
  4015                       "show": true
  4016                    },
  4017                    {
  4018                       "format": "s",
  4019                       "label": null,
  4020                       "logBase": 1,
  4021                       "max": null,
  4022                       "min": 0,
  4023                       "show": true
  4024                    }
  4025                 ]
  4026              },
  4027              {
  4028                 "aliasColors": { },
  4029                 "bars": false,
  4030                 "dashLength": 10,
  4031                 "dashes": false,
  4032                 "datasource": "Prometheus",
  4033                 "fill": 0,
  4034                 "fillGradient": 0,
  4035                 "gridPos": {
  4036                    "h": 7,
  4037                    "w": 8,
  4038                    "x": 8,
  4039                    "y": 142
  4040                 },
  4041                 "id": 58,
  4042                 "legend": {
  4043                    "alignAsTable": true,
  4044                    "avg": true,
  4045                    "current": false,
  4046                    "max": true,
  4047                    "min": true,
  4048                    "rightSide": false,
  4049                    "show": true,
  4050                    "sideWidth": null,
  4051                    "sort": "max",
  4052                    "sortDesc": true,
  4053                    "total": false,
  4054                    "values": true
  4055                 },
  4056                 "lines": true,
  4057                 "linewidth": 1,
  4058                 "links": [ ],
  4059                 "nullPointMode": "null",
  4060                 "percentage": false,
  4061                 "pointradius": 5,
  4062                 "points": false,
  4063                 "renderer": "flot",
  4064                 "repeat": null,
  4065                 "seriesOverrides": [ ],
  4066                 "spaceLength": 10,
  4067                 "stack": false,
  4068                 "steppedLine": false,
  4069                 "targets": [
  4070                    {
  4071                       "expr": "histogram_quantile(\n  0.50,\n  sum by (le, namespace,app_kubernetes_io_instance,pod) (\n    rate(\n      vttablet_mysql_bucket{\n        operation=\"Exec\",\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n) \n",
  4072                       "format": "time_series",
  4073                       "intervalFactor": 2,
  4074                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4075                       "refId": "A"
  4076                    }
  4077                 ],
  4078                 "thresholds": [ ],
  4079                 "timeFrom": null,
  4080                 "timeShift": null,
  4081                 "title": "MySQL Exec Time P50",
  4082                 "tooltip": {
  4083                    "shared": false,
  4084                    "sort": 0,
  4085                    "value_type": "individual"
  4086                 },
  4087                 "type": "graph",
  4088                 "xaxis": {
  4089                    "buckets": null,
  4090                    "mode": "time",
  4091                    "name": null,
  4092                    "show": true,
  4093                    "values": [ ]
  4094                 },
  4095                 "yaxes": [
  4096                    {
  4097                       "format": "s",
  4098                       "label": null,
  4099                       "logBase": 1,
  4100                       "max": null,
  4101                       "min": 0,
  4102                       "show": true
  4103                    },
  4104                    {
  4105                       "format": "s",
  4106                       "label": null,
  4107                       "logBase": 1,
  4108                       "max": null,
  4109                       "min": 0,
  4110                       "show": true
  4111                    }
  4112                 ]
  4113              },
  4114              {
  4115                 "aliasColors": { },
  4116                 "bars": false,
  4117                 "dashLength": 10,
  4118                 "dashes": false,
  4119                 "datasource": "Prometheus",
  4120                 "fill": 0,
  4121                 "fillGradient": 0,
  4122                 "gridPos": {
  4123                    "h": 7,
  4124                    "w": 8,
  4125                    "x": 16,
  4126                    "y": 142
  4127                 },
  4128                 "id": 59,
  4129                 "legend": {
  4130                    "alignAsTable": true,
  4131                    "avg": true,
  4132                    "current": false,
  4133                    "max": true,
  4134                    "min": true,
  4135                    "rightSide": false,
  4136                    "show": true,
  4137                    "sideWidth": null,
  4138                    "sort": "max",
  4139                    "sortDesc": true,
  4140                    "total": false,
  4141                    "values": true
  4142                 },
  4143                 "lines": true,
  4144                 "linewidth": 1,
  4145                 "links": [ ],
  4146                 "nullPointMode": "null",
  4147                 "percentage": false,
  4148                 "pointradius": 5,
  4149                 "points": false,
  4150                 "renderer": "flot",
  4151                 "repeat": null,
  4152                 "seriesOverrides": [ ],
  4153                 "spaceLength": 10,
  4154                 "stack": false,
  4155                 "steppedLine": false,
  4156                 "targets": [
  4157                    {
  4158                       "expr": "histogram_quantile(\n  0.95,\n  sum by (le, namespace,app_kubernetes_io_instance,pod) (\n    rate(\n      vttablet_mysql_bucket{\n        operation=\"Exec\",\n        namespace=~\"$namespace\",\n        app_kubernetes_io_instance=~\"$cluster\",\n        pod=~\"$instance\",\n      }[1m]\n    )\n  )\n) \n",
  4159                       "format": "time_series",
  4160                       "intervalFactor": 2,
  4161                       "legendFormat": "{{namespace}} | {{app_kubernetes_io_instance}} | {{pod}}",
  4162                       "refId": "A"
  4163                    }
  4164                 ],
  4165                 "thresholds": [ ],
  4166                 "timeFrom": null,
  4167                 "timeShift": null,
  4168                 "title": "MySQL Exec Time P95",
  4169                 "tooltip": {
  4170                    "shared": false,
  4171                    "sort": 0,
  4172                    "value_type": "individual"
  4173                 },
  4174                 "type": "graph",
  4175                 "xaxis": {
  4176                    "buckets": null,
  4177                    "mode": "time",
  4178                    "name": null,
  4179                    "show": true,
  4180                    "values": [ ]
  4181                 },
  4182                 "yaxes": [
  4183                    {
  4184                       "format": "s",
  4185                       "label": null,
  4186                       "logBase": 1,
  4187                       "max": null,
  4188                       "min": 0,
  4189                       "show": true
  4190                    },
  4191                    {
  4192                       "format": "s",
  4193                       "label": null,
  4194                       "logBase": 1,
  4195                       "max": null,
  4196                       "min": 0,
  4197                       "show": true
  4198                    }
  4199                 ]
  4200              }
  4201           ],
  4202           "repeat": null,
  4203           "repeatIteration": null,
  4204           "repeatRowId": null,
  4205           "showTitle": true,
  4206           "title": "MySQL Timings",
  4207           "titleSize": "h6",
  4208           "type": "row"
  4209        }
  4210     ],
  4211     "refresh": "",
  4212     "rows": [ ],
  4213     "schemaVersion": 14,
  4214     "style": "dark",
  4215     "tags": [
  4216        "db",
  4217        "MySQL-Proxy"
  4218     ],
  4219     "templating": {
  4220        "list": [
  4221           {
  4222          "current": {
  4223            "selected": false,
  4224            "text": "default",
  4225            "value": "default"
  4226          },
  4227          "hide": 0,
  4228          "includeAll": false,
  4229          "label": "data source",
  4230          "multi": false,
  4231          "name": "datasource",
  4232          "options": [],
  4233          "query": "prometheus",
  4234          "queryValue": "",
  4235          "refresh": 1,
  4236          "regex": "",
  4237          "skipUrlSync": false,
  4238          "type": "datasource"
  4239        },
  4240        {
  4241          "allValue": ".+",
  4242          "current": {
  4243            "selected": true,
  4244            "text": [
  4245              "All"
  4246            ],
  4247            "value": [
  4248              "$__all"
  4249            ]
  4250          },
  4251          "datasource": {
  4252            "type": "prometheus",
  4253            "uid": "$datasource"
  4254          },
  4255          "definition": "label_values(mysql_up, namespace)",
  4256          "hide": 0,
  4257          "includeAll": true,
  4258          "label": "namespace",
  4259          "multi": true,
  4260          "name": "namespace",
  4261          "options": [],
  4262          "query": {
  4263            "query": "label_values(mysql_up, namespace)",
  4264            "refId": "StandardVariableQuery"
  4265          },
  4266          "refresh": 1,
  4267          "regex": "",
  4268          "skipUrlSync": false,
  4269          "sort": 5,
  4270          "tagValuesQuery": "",
  4271          "tagsQuery": "",
  4272          "type": "query",
  4273          "useTags": false
  4274        },
  4275        {
  4276          "allValue": ".+",
  4277          "current": {
  4278            "selected": true,
  4279            "text": [
  4280              "All"
  4281            ],
  4282            "value": [
  4283              "$__all"
  4284            ]
  4285          },
  4286          "datasource": {
  4287            "type": "prometheus",
  4288            "uid": "$datasource"
  4289          },
  4290          "definition": "label_values(mysql_up, app_kubernetes_io_instance)",
  4291          "hide": 0,
  4292          "includeAll": true,
  4293          "label": "cluster",
  4294          "multi": true,
  4295          "name": "cluster",
  4296          "options": [],
  4297          "query": {
  4298            "query": "label_values(mysql_up, app_kubernetes_io_instance)",
  4299            "refId": "StandardVariableQuery"
  4300          },
  4301          "refresh": 1,
  4302          "regex": "",
  4303          "skipUrlSync": false,
  4304          "sort": 5,
  4305          "tagValuesQuery": "",
  4306          "tagsQuery": "",
  4307          "type": "query",
  4308          "useTags": false
  4309        },
  4310        {
  4311          "allValue": ".+",
  4312          "current": {
  4313            "selected": true,
  4314            "text": [
  4315              "All"
  4316            ],
  4317            "value": [
  4318              "$__all"
  4319            ]
  4320          },
  4321          "datasource": {
  4322            "type": "prometheus",
  4323            "uid": "$datasource"
  4324          },
  4325          "definition": "label_values(mysql_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\"}, pod)",
  4326          "hide": 0,
  4327          "includeAll": true,
  4328          "label": "instance",
  4329          "multi": true,
  4330          "name": "instance",
  4331          "options": [],
  4332          "query": {
  4333            "query": "label_values(mysql_up{namespace=~\"$namespace\",app_kubernetes_io_instance=~\"$cluster\"}, pod)",
  4334            "refId": "StandardVariableQuery"
  4335          },
  4336          "refresh": 2,
  4337          "regex": "",
  4338          "skipUrlSync": false,
  4339          "sort": 5,
  4340          "tagValuesQuery": "",
  4341          "tagsQuery": "",
  4342          "type": "query",
  4343          "useTags": false
  4344        }
  4345        ]
  4346     },
  4347     "time": {
  4348        "from": "now-30m",
  4349        "to": "now"
  4350     },
  4351     "timepicker": {
  4352        "refresh_intervals": [
  4353           "5s",
  4354           "10s",
  4355           "30s",
  4356           "1m",
  4357           "5m",
  4358           "15m",
  4359           "30m",
  4360           "1h",
  4361           "2h",
  4362           "1d"
  4363        ],
  4364        "time_options": [
  4365           "5m",
  4366           "15m",
  4367           "1h",
  4368           "6h",
  4369           "12h",
  4370           "24h",
  4371           "2d",
  4372           "7d",
  4373           "30d"
  4374        ]
  4375     },
  4376     "timezone": "browser",
  4377     "title": "MySQL-Proxy",
  4378     "uid": "mysql-proxy-cluster-overview",
  4379     "version": 0
  4380  }