github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/monitoring/grafana-dashboards/sql.json (about)

     1  {
     2    "__inputs": [
     3      {
     4        "name": "DS_PROMETHEUS",
     5        "label": "Prometheus",
     6        "description": "",
     7        "type": "datasource",
     8        "pluginId": "prometheus",
     9        "pluginName": "Prometheus"
    10      }
    11    ],
    12    "__requires": [
    13      {
    14        "type": "grafana",
    15        "id": "grafana",
    16        "name": "Grafana",
    17        "version": "5.0.3"
    18      },
    19      {
    20        "type": "panel",
    21        "id": "graph",
    22        "name": "Graph",
    23        "version": "5.0.0"
    24      },
    25      {
    26        "type": "datasource",
    27        "id": "prometheus",
    28        "name": "Prometheus",
    29        "version": "5.0.0"
    30      },
    31      {
    32        "type": "panel",
    33        "id": "table",
    34        "name": "Table",
    35        "version": "5.0.0"
    36      }
    37    ],
    38    "annotations": {
    39      "list": [
    40        {
    41          "builtIn": 1,
    42          "datasource": "-- Grafana --",
    43          "enable": true,
    44          "hide": true,
    45          "iconColor": "rgba(0, 211, 255, 1)",
    46          "name": "Annotations & Alerts",
    47          "type": "dashboard"
    48        }
    49      ]
    50    },
    51    "editable": true,
    52    "gnetId": null,
    53    "graphTooltip": 1,
    54    "id": null,
    55    "iteration": 1530778481777,
    56    "links": [
    57      {
    58        "asDropdown": true,
    59        "icon": "external link",
    60        "includeVars": true,
    61        "keepTime": true,
    62        "tags": [
    63          "cockroach"
    64        ],
    65        "targetBlank": true,
    66        "title": "Dashboards",
    67        "type": "dashboards"
    68      }
    69    ],
    70    "panels": [
    71      {
    72        "aliasColors": {},
    73        "bars": false,
    74        "dashLength": 10,
    75        "dashes": false,
    76        "datasource": "${DS_PROMETHEUS}",
    77        "editable": true,
    78        "error": false,
    79        "fill": 1,
    80        "grid": {},
    81        "gridPos": {
    82          "h": 7,
    83          "w": 16,
    84          "x": 0,
    85          "y": 0
    86        },
    87        "id": 6,
    88        "legend": {
    89          "alignAsTable": false,
    90          "avg": false,
    91          "current": false,
    92          "max": false,
    93          "min": false,
    94          "show": true,
    95          "total": false,
    96          "values": false
    97        },
    98        "lines": true,
    99        "linewidth": 2,
   100        "links": [],
   101        "nullPointMode": "null as zero",
   102        "percentage": false,
   103        "pointradius": 5,
   104        "points": false,
   105        "renderer": "flot",
   106        "seriesOverrides": [],
   107        "spaceLength": 10,
   108        "stack": false,
   109        "steppedLine": false,
   110        "targets": [
   111          {
   112            "expr": "sum(sql_conns{cluster=\"$cluster\",job=\"cockroachdb\",instance=~\"$node\"})",
   113            "format": "time_series",
   114            "hide": false,
   115            "interval": "",
   116            "intervalFactor": 2,
   117            "legendFormat": "Connections",
   118            "metric": "",
   119            "refId": "A",
   120            "step": 240
   121          }
   122        ],
   123        "thresholds": [],
   124        "timeFrom": null,
   125        "timeShift": null,
   126        "title": "SQL Connections: $node",
   127        "tooltip": {
   128          "msResolution": false,
   129          "shared": true,
   130          "sort": 0,
   131          "value_type": "cumulative"
   132        },
   133        "type": "graph",
   134        "xaxis": {
   135          "buckets": null,
   136          "mode": "time",
   137          "name": null,
   138          "show": true,
   139          "values": []
   140        },
   141        "yaxes": [
   142          {
   143            "format": "short",
   144            "label": null,
   145            "logBase": 1,
   146            "max": null,
   147            "min": 0,
   148            "show": true
   149          },
   150          {
   151            "format": "short",
   152            "label": null,
   153            "logBase": 1,
   154            "max": null,
   155            "min": null,
   156            "show": true
   157          }
   158        ]
   159      },
   160      {
   161        "columns": [
   162          {
   163            "text": "Current",
   164            "value": "current"
   165          },
   166          {
   167            "text": "Avg",
   168            "value": "avg"
   169          },
   170          {
   171            "text": "Min",
   172            "value": "min"
   173          },
   174          {
   175            "text": "Max",
   176            "value": "max"
   177          }
   178        ],
   179        "datasource": "${DS_PROMETHEUS}",
   180        "editable": true,
   181        "error": false,
   182        "fontSize": "90%",
   183        "gridPos": {
   184          "h": 7,
   185          "w": 8,
   186          "x": 16,
   187          "y": 0
   188        },
   189        "id": 12,
   190        "links": [],
   191        "pageSize": null,
   192        "scroll": true,
   193        "showHeader": true,
   194        "sort": {
   195          "col": 0,
   196          "desc": false
   197        },
   198        "styles": [
   199          {
   200            "dateFormat": "YYYY-MM-DD HH:mm:ss",
   201            "pattern": "Time",
   202            "type": "date"
   203          },
   204          {
   205            "colorMode": null,
   206            "colors": [
   207              "rgba(245, 54, 54, 0.9)",
   208              "rgba(237, 129, 40, 0.89)",
   209              "rgba(50, 172, 45, 0.97)"
   210            ],
   211            "decimals": 0,
   212            "pattern": "/.*/",
   213            "thresholds": [],
   214            "type": "number",
   215            "unit": "short"
   216          }
   217        ],
   218        "targets": [
   219          {
   220            "expr": "sql_conns{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}",
   221            "format": "time_series",
   222            "interval": "",
   223            "intervalFactor": 2,
   224            "legendFormat": "{{instance}}",
   225            "refId": "A",
   226            "step": 240
   227          }
   228        ],
   229        "title": "Connections: $node",
   230        "transform": "timeseries_aggregations",
   231        "type": "table"
   232      },
   233      {
   234        "aliasColors": {},
   235        "bars": false,
   236        "dashLength": 10,
   237        "dashes": false,
   238        "datasource": "${DS_PROMETHEUS}",
   239        "editable": true,
   240        "error": false,
   241        "fill": 1,
   242        "grid": {},
   243        "gridPos": {
   244          "h": 7,
   245          "w": 16,
   246          "x": 0,
   247          "y": 7
   248        },
   249        "id": 7,
   250        "legend": {
   251          "avg": false,
   252          "current": false,
   253          "max": false,
   254          "min": false,
   255          "show": true,
   256          "total": false,
   257          "values": false
   258        },
   259        "lines": true,
   260        "linewidth": 2,
   261        "links": [],
   262        "nullPointMode": "null as zero",
   263        "percentage": false,
   264        "pointradius": 5,
   265        "points": false,
   266        "renderer": "flot",
   267        "seriesOverrides": [],
   268        "spaceLength": 10,
   269        "stack": false,
   270        "steppedLine": false,
   271        "targets": [
   272          {
   273            "expr": "sum(rate(sql_bytesin{job=\"cockroachdb\", cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   274            "format": "time_series",
   275            "interval": "",
   276            "intervalFactor": 2,
   277            "legendFormat": "In",
   278            "metric": "",
   279            "refId": "A",
   280            "step": 240
   281          },
   282          {
   283            "expr": "sum(rate(sql_bytesout{job=\"cockroachdb\", cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   284            "format": "time_series",
   285            "interval": "",
   286            "intervalFactor": 2,
   287            "legendFormat": "Out",
   288            "metric": "",
   289            "refId": "B",
   290            "step": 240
   291          }
   292        ],
   293        "thresholds": [],
   294        "timeFrom": null,
   295        "timeShift": null,
   296        "title": "Bytes: $node",
   297        "tooltip": {
   298          "msResolution": false,
   299          "shared": true,
   300          "sort": 0,
   301          "value_type": "cumulative"
   302        },
   303        "type": "graph",
   304        "xaxis": {
   305          "buckets": null,
   306          "mode": "time",
   307          "name": null,
   308          "show": true,
   309          "values": []
   310        },
   311        "yaxes": [
   312          {
   313            "format": "Bps",
   314            "label": null,
   315            "logBase": 1,
   316            "max": null,
   317            "min": 0,
   318            "show": true
   319          },
   320          {
   321            "format": "short",
   322            "label": null,
   323            "logBase": 1,
   324            "max": null,
   325            "min": null,
   326            "show": true
   327          }
   328        ]
   329      },
   330      {
   331        "columns": [
   332          {
   333            "text": "Current",
   334            "value": "current"
   335          },
   336          {
   337            "text": "Avg",
   338            "value": "avg"
   339          },
   340          {
   341            "text": "Min",
   342            "value": "min"
   343          },
   344          {
   345            "text": "Max",
   346            "value": "max"
   347          }
   348        ],
   349        "datasource": "${DS_PROMETHEUS}",
   350        "editable": true,
   351        "error": false,
   352        "fontSize": "90%",
   353        "gridPos": {
   354          "h": 7,
   355          "w": 8,
   356          "x": 16,
   357          "y": 7
   358        },
   359        "hideTimeOverride": false,
   360        "id": 13,
   361        "links": [],
   362        "pageSize": null,
   363        "scroll": true,
   364        "showHeader": true,
   365        "sort": {
   366          "col": 0,
   367          "desc": true
   368        },
   369        "styles": [
   370          {
   371            "colorMode": null,
   372            "colors": [
   373              "rgba(245, 54, 54, 0.9)",
   374              "rgba(237, 129, 40, 0.89)",
   375              "rgba(50, 172, 45, 0.97)"
   376            ],
   377            "dateFormat": "YYYY-MM-DD HH:mm:ss",
   378            "decimals": 2,
   379            "pattern": "/.*/",
   380            "thresholds": [],
   381            "type": "number",
   382            "unit": "Bps"
   383          }
   384        ],
   385        "targets": [
   386          {
   387            "expr": "rate(sql_bytesin{job=\"cockroachdb\", cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval])",
   388            "format": "time_series",
   389            "interval": "",
   390            "intervalFactor": 2,
   391            "legendFormat": "{{instance}} - in",
   392            "refId": "A",
   393            "step": 240
   394          },
   395          {
   396            "expr": "rate(sql_bytesout{job=\"cockroachdb\", cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval])",
   397            "format": "time_series",
   398            "interval": "",
   399            "intervalFactor": 2,
   400            "legendFormat": "{{instance}} - out",
   401            "metric": "",
   402            "refId": "B",
   403            "step": 240
   404          }
   405        ],
   406        "timeFrom": null,
   407        "timeShift": null,
   408        "title": "Bytes in/out: $node",
   409        "transform": "timeseries_aggregations",
   410        "type": "table"
   411      },
   412      {
   413        "aliasColors": {},
   414        "bars": false,
   415        "dashLength": 10,
   416        "dashes": false,
   417        "datasource": "${DS_PROMETHEUS}",
   418        "editable": true,
   419        "error": false,
   420        "fill": 1,
   421        "grid": {},
   422        "gridPos": {
   423          "h": 7,
   424          "w": 16,
   425          "x": 0,
   426          "y": 14
   427        },
   428        "id": 9,
   429        "legend": {
   430          "avg": false,
   431          "current": false,
   432          "max": false,
   433          "min": false,
   434          "show": true,
   435          "total": false,
   436          "values": false
   437        },
   438        "lines": true,
   439        "linewidth": 2,
   440        "links": [],
   441        "nullPointMode": "null as zero",
   442        "percentage": false,
   443        "pointradius": 5,
   444        "points": false,
   445        "renderer": "flot",
   446        "seriesOverrides": [],
   447        "spaceLength": 10,
   448        "stack": false,
   449        "steppedLine": false,
   450        "targets": [
   451          {
   452            "expr": "sum(rate(sql_select_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   453            "format": "time_series",
   454            "interval": "",
   455            "intervalFactor": 2,
   456            "legendFormat": "select",
   457            "metric": "",
   458            "refId": "A",
   459            "step": 240
   460          },
   461          {
   462            "expr": "sum(rate(sql_insert_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   463            "format": "time_series",
   464            "interval": "",
   465            "intervalFactor": 2,
   466            "legendFormat": "insert",
   467            "metric": "",
   468            "refId": "B",
   469            "step": 240
   470          },
   471          {
   472            "expr": "sum(rate(sql_update_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   473            "format": "time_series",
   474            "interval": "",
   475            "intervalFactor": 2,
   476            "legendFormat": "update",
   477            "metric": "",
   478            "refId": "C",
   479            "step": 240
   480          },
   481          {
   482            "expr": "sum(rate(sql_delete_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   483            "format": "time_series",
   484            "interval": "",
   485            "intervalFactor": 2,
   486            "legendFormat": "delete",
   487            "metric": "",
   488            "refId": "D",
   489            "step": 240
   490          }
   491        ],
   492        "thresholds": [],
   493        "timeFrom": null,
   494        "timeShift": null,
   495        "title": "Queries: $node",
   496        "tooltip": {
   497          "msResolution": false,
   498          "shared": true,
   499          "sort": 0,
   500          "value_type": "cumulative"
   501        },
   502        "type": "graph",
   503        "xaxis": {
   504          "buckets": null,
   505          "mode": "time",
   506          "name": null,
   507          "show": true,
   508          "values": []
   509        },
   510        "yaxes": [
   511          {
   512            "format": "short",
   513            "label": null,
   514            "logBase": 1,
   515            "max": null,
   516            "min": 0,
   517            "show": true
   518          },
   519          {
   520            "format": "short",
   521            "label": null,
   522            "logBase": 1,
   523            "max": null,
   524            "min": null,
   525            "show": true
   526          }
   527        ]
   528      },
   529      {
   530        "columns": [
   531          {
   532            "text": "Current",
   533            "value": "current"
   534          },
   535          {
   536            "text": "Avg",
   537            "value": "avg"
   538          },
   539          {
   540            "text": "Min",
   541            "value": "min"
   542          },
   543          {
   544            "text": "Max",
   545            "value": "max"
   546          }
   547        ],
   548        "datasource": "${DS_PROMETHEUS}",
   549        "editable": true,
   550        "error": false,
   551        "fontSize": "90%",
   552        "gridPos": {
   553          "h": 7,
   554          "w": 8,
   555          "x": 16,
   556          "y": 14
   557        },
   558        "id": 14,
   559        "links": [],
   560        "pageSize": null,
   561        "scroll": true,
   562        "showHeader": true,
   563        "sort": {
   564          "col": 0,
   565          "desc": true
   566        },
   567        "styles": [
   568          {
   569            "dateFormat": "YYYY-MM-DD HH:mm:ss",
   570            "pattern": "Time",
   571            "type": "date"
   572          },
   573          {
   574            "colorMode": null,
   575            "colors": [
   576              "rgba(245, 54, 54, 0.9)",
   577              "rgba(237, 129, 40, 0.89)",
   578              "rgba(50, 172, 45, 0.97)"
   579            ],
   580            "decimals": 2,
   581            "pattern": "/.*/",
   582            "thresholds": [],
   583            "type": "number",
   584            "unit": "short"
   585          }
   586        ],
   587        "targets": [
   588          {
   589            "expr": "rate(sql_select_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]) + rate(sql_insert_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]) + rate(sql_update_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]) + rate(sql_delete_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval])",
   590            "format": "time_series",
   591            "interval": "",
   592            "intervalFactor": 2,
   593            "legendFormat": "{{instance}}",
   594            "metric": "",
   595            "refId": "A",
   596            "step": 240
   597          }
   598        ],
   599        "title": "Queries: $node",
   600        "transform": "timeseries_aggregations",
   601        "type": "table"
   602      },
   603      {
   604        "aliasColors": {},
   605        "bars": false,
   606        "dashLength": 10,
   607        "dashes": false,
   608        "datasource": "${DS_PROMETHEUS}",
   609        "editable": true,
   610        "error": false,
   611        "fill": 1,
   612        "grid": {},
   613        "gridPos": {
   614          "h": 7,
   615          "w": 16,
   616          "x": 0,
   617          "y": 21
   618        },
   619        "id": 17,
   620        "legend": {
   621          "avg": false,
   622          "current": false,
   623          "max": false,
   624          "min": false,
   625          "show": true,
   626          "total": false,
   627          "values": false
   628        },
   629        "lines": true,
   630        "linewidth": 2,
   631        "links": [],
   632        "nullPointMode": "connected",
   633        "percentage": false,
   634        "pointradius": 5,
   635        "points": false,
   636        "renderer": "flot",
   637        "seriesOverrides": [],
   638        "spaceLength": 10,
   639        "stack": false,
   640        "steppedLine": false,
   641        "targets": [
   642          {
   643            "expr": "sql_exec_latency:rate1m:quantile_99{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}",
   644            "format": "time_series",
   645            "interval": "",
   646            "intervalFactor": 2,
   647            "legendFormat": "{{instance}}",
   648            "metric": "exec_latency:rate1m:quantile_99",
   649            "refId": "A",
   650            "step": 240
   651          }
   652        ],
   653        "thresholds": [],
   654        "timeFrom": null,
   655        "timeShift": null,
   656        "title": "SQL Exec Latency: 99th percentile",
   657        "tooltip": {
   658          "msResolution": false,
   659          "shared": true,
   660          "sort": 0,
   661          "value_type": "cumulative"
   662        },
   663        "type": "graph",
   664        "xaxis": {
   665          "buckets": null,
   666          "mode": "time",
   667          "name": null,
   668          "show": true,
   669          "values": []
   670        },
   671        "yaxes": [
   672          {
   673            "format": "ns",
   674            "label": null,
   675            "logBase": 1,
   676            "max": null,
   677            "min": null,
   678            "show": true
   679          },
   680          {
   681            "format": "short",
   682            "label": null,
   683            "logBase": 1,
   684            "max": null,
   685            "min": null,
   686            "show": true
   687          }
   688        ]
   689      },
   690      {
   691        "columns": [
   692          {
   693            "text": "Current",
   694            "value": "current"
   695          },
   696          {
   697            "text": "Avg",
   698            "value": "avg"
   699          },
   700          {
   701            "text": "Min",
   702            "value": "min"
   703          },
   704          {
   705            "text": "Max",
   706            "value": "max"
   707          }
   708        ],
   709        "datasource": "${DS_PROMETHEUS}",
   710        "editable": true,
   711        "error": false,
   712        "fontSize": "90%",
   713        "gridPos": {
   714          "h": 7,
   715          "w": 8,
   716          "x": 16,
   717          "y": 21
   718        },
   719        "id": 15,
   720        "links": [],
   721        "pageSize": null,
   722        "scroll": true,
   723        "showHeader": true,
   724        "sort": {
   725          "col": 0,
   726          "desc": true
   727        },
   728        "styles": [
   729          {
   730            "dateFormat": "YYYY-MM-DD HH:mm:ss",
   731            "pattern": "Time",
   732            "type": "date"
   733          },
   734          {
   735            "colorMode": null,
   736            "colors": [
   737              "rgba(245, 54, 54, 0.9)",
   738              "rgba(237, 129, 40, 0.89)",
   739              "rgba(50, 172, 45, 0.97)"
   740            ],
   741            "decimals": 2,
   742            "pattern": "/.*/",
   743            "thresholds": [],
   744            "type": "number",
   745            "unit": "short"
   746          }
   747        ],
   748        "targets": [
   749          {
   750            "expr": "rate(sql_txn_begin_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]) + rate(sql_txn_commit_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]) + rate(sql_txn_abort_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]) + rate(sql_txn_rollback_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval])",
   751            "format": "time_series",
   752            "interval": "",
   753            "intervalFactor": 2,
   754            "legendFormat": "{{instance}}",
   755            "refId": "A",
   756            "step": 240
   757          }
   758        ],
   759        "title": "Transactions: $node",
   760        "transform": "timeseries_aggregations",
   761        "type": "table"
   762      },
   763      {
   764        "aliasColors": {},
   765        "bars": false,
   766        "dashLength": 10,
   767        "dashes": false,
   768        "datasource": "${DS_PROMETHEUS}",
   769        "editable": true,
   770        "error": false,
   771        "fill": 1,
   772        "grid": {},
   773        "gridPos": {
   774          "h": 7,
   775          "w": 16,
   776          "x": 0,
   777          "y": 28
   778        },
   779        "id": 18,
   780        "legend": {
   781          "avg": false,
   782          "current": false,
   783          "max": false,
   784          "min": false,
   785          "show": true,
   786          "total": false,
   787          "values": false
   788        },
   789        "lines": true,
   790        "linewidth": 2,
   791        "links": [],
   792        "nullPointMode": "connected",
   793        "percentage": false,
   794        "pointradius": 5,
   795        "points": false,
   796        "renderer": "flot",
   797        "seriesOverrides": [],
   798        "spaceLength": 10,
   799        "stack": false,
   800        "steppedLine": false,
   801        "targets": [
   802          {
   803            "expr": "sql_exec_latency:rate1m:quantile_95{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}",
   804            "format": "time_series",
   805            "interval": "",
   806            "intervalFactor": 2,
   807            "legendFormat": "{{instance}}",
   808            "metric": "exec_latency:rate1m:quantile_99",
   809            "refId": "A",
   810            "step": 240
   811          }
   812        ],
   813        "thresholds": [],
   814        "timeFrom": null,
   815        "timeShift": null,
   816        "title": "SQL Exec Latency: 95th percentile",
   817        "tooltip": {
   818          "msResolution": false,
   819          "shared": true,
   820          "sort": 0,
   821          "value_type": "cumulative"
   822        },
   823        "type": "graph",
   824        "xaxis": {
   825          "buckets": null,
   826          "mode": "time",
   827          "name": null,
   828          "show": true,
   829          "values": []
   830        },
   831        "yaxes": [
   832          {
   833            "format": "ns",
   834            "label": null,
   835            "logBase": 1,
   836            "max": null,
   837            "min": null,
   838            "show": true
   839          },
   840          {
   841            "format": "short",
   842            "label": null,
   843            "logBase": 1,
   844            "max": null,
   845            "min": null,
   846            "show": true
   847          }
   848        ]
   849      },
   850      {
   851        "columns": [
   852          {
   853            "text": "Current",
   854            "value": "current"
   855          },
   856          {
   857            "text": "Avg",
   858            "value": "avg"
   859          },
   860          {
   861            "text": "Min",
   862            "value": "min"
   863          },
   864          {
   865            "text": "Max",
   866            "value": "max"
   867          }
   868        ],
   869        "datasource": "${DS_PROMETHEUS}",
   870        "editable": true,
   871        "error": false,
   872        "fontSize": "90%",
   873        "gridPos": {
   874          "h": 7,
   875          "w": 8,
   876          "x": 16,
   877          "y": 28
   878        },
   879        "id": 16,
   880        "links": [],
   881        "pageSize": null,
   882        "scroll": true,
   883        "showHeader": true,
   884        "sort": {
   885          "col": 0,
   886          "desc": true
   887        },
   888        "styles": [
   889          {
   890            "dateFormat": "YYYY-MM-DD HH:mm:ss",
   891            "pattern": "Time",
   892            "type": "date"
   893          },
   894          {
   895            "colorMode": null,
   896            "colors": [
   897              "rgba(245, 54, 54, 0.9)",
   898              "rgba(237, 129, 40, 0.89)",
   899              "rgba(50, 172, 45, 0.97)"
   900            ],
   901            "decimals": 2,
   902            "pattern": "/.*/",
   903            "thresholds": [],
   904            "type": "number",
   905            "unit": "short"
   906          }
   907        ],
   908        "targets": [
   909          {
   910            "expr": "rate(sql_ddl_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval])",
   911            "format": "time_series",
   912            "interval": "",
   913            "intervalFactor": 2,
   914            "legendFormat": "{{instance}}",
   915            "metric": "",
   916            "refId": "A",
   917            "step": 240
   918          }
   919        ],
   920        "title": "Schema Changes: $node",
   921        "transform": "timeseries_aggregations",
   922        "type": "table"
   923      },
   924      {
   925        "aliasColors": {},
   926        "bars": false,
   927        "dashLength": 10,
   928        "dashes": false,
   929        "datasource": "${DS_PROMETHEUS}",
   930        "editable": true,
   931        "error": false,
   932        "fill": 1,
   933        "grid": {},
   934        "gridPos": {
   935          "h": 7,
   936          "w": 16,
   937          "x": 0,
   938          "y": 35
   939        },
   940        "id": 10,
   941        "legend": {
   942          "avg": false,
   943          "current": false,
   944          "max": false,
   945          "min": false,
   946          "show": true,
   947          "total": false,
   948          "values": false
   949        },
   950        "lines": true,
   951        "linewidth": 2,
   952        "links": [],
   953        "nullPointMode": "null as zero",
   954        "percentage": false,
   955        "pointradius": 5,
   956        "points": false,
   957        "renderer": "flot",
   958        "seriesOverrides": [],
   959        "spaceLength": 10,
   960        "stack": false,
   961        "steppedLine": false,
   962        "targets": [
   963          {
   964            "expr": "sum(rate(sql_txn_begin_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   965            "format": "time_series",
   966            "interval": "",
   967            "intervalFactor": 2,
   968            "legendFormat": "begin",
   969            "metric": "",
   970            "refId": "A",
   971            "step": 240
   972          },
   973          {
   974            "expr": "sum(rate(sql_txn_commit_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   975            "format": "time_series",
   976            "interval": "",
   977            "intervalFactor": 2,
   978            "legendFormat": "commit",
   979            "refId": "B",
   980            "step": 240
   981          },
   982          {
   983            "expr": "sum(rate(sql_txn_abort_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   984            "format": "time_series",
   985            "interval": "",
   986            "intervalFactor": 2,
   987            "legendFormat": "abort",
   988            "refId": "C",
   989            "step": 240
   990          },
   991          {
   992            "expr": "sum(rate(sql_txn_rollback_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
   993            "format": "time_series",
   994            "interval": "",
   995            "intervalFactor": 2,
   996            "legendFormat": "rollback",
   997            "refId": "D",
   998            "step": 240
   999          }
  1000        ],
  1001        "thresholds": [],
  1002        "timeFrom": null,
  1003        "timeShift": null,
  1004        "title": "Transactions: $node",
  1005        "tooltip": {
  1006          "msResolution": false,
  1007          "shared": true,
  1008          "sort": 0,
  1009          "value_type": "cumulative"
  1010        },
  1011        "type": "graph",
  1012        "xaxis": {
  1013          "buckets": null,
  1014          "mode": "time",
  1015          "name": null,
  1016          "show": true,
  1017          "values": []
  1018        },
  1019        "yaxes": [
  1020          {
  1021            "format": "short",
  1022            "label": null,
  1023            "logBase": 1,
  1024            "max": null,
  1025            "min": 0,
  1026            "show": true
  1027          },
  1028          {
  1029            "format": "short",
  1030            "label": null,
  1031            "logBase": 1,
  1032            "max": null,
  1033            "min": null,
  1034            "show": true
  1035          }
  1036        ]
  1037      },
  1038      {
  1039        "aliasColors": {},
  1040        "bars": false,
  1041        "dashLength": 10,
  1042        "dashes": false,
  1043        "datasource": "${DS_PROMETHEUS}",
  1044        "editable": true,
  1045        "error": false,
  1046        "fill": 1,
  1047        "grid": {},
  1048        "gridPos": {
  1049          "h": 7,
  1050          "w": 16,
  1051          "x": 0,
  1052          "y": 42
  1053        },
  1054        "id": 11,
  1055        "legend": {
  1056          "avg": false,
  1057          "current": false,
  1058          "max": false,
  1059          "min": false,
  1060          "show": true,
  1061          "total": false,
  1062          "values": false
  1063        },
  1064        "lines": true,
  1065        "linewidth": 2,
  1066        "links": [],
  1067        "nullPointMode": "null as zero",
  1068        "percentage": false,
  1069        "pointradius": 5,
  1070        "points": false,
  1071        "renderer": "flot",
  1072        "seriesOverrides": [],
  1073        "spaceLength": 10,
  1074        "stack": false,
  1075        "steppedLine": false,
  1076        "targets": [
  1077          {
  1078            "expr": "sum(rate(sql_ddl_count{job=\"cockroachdb\",cluster=\"$cluster\",instance=~\"$node\"}[$rate_interval]))",
  1079            "format": "time_series",
  1080            "interval": "",
  1081            "intervalFactor": 2,
  1082            "legendFormat": "DDL",
  1083            "metric": "",
  1084            "refId": "A",
  1085            "step": 240
  1086          }
  1087        ],
  1088        "thresholds": [],
  1089        "timeFrom": null,
  1090        "timeShift": null,
  1091        "title": "Schema changes: $node",
  1092        "tooltip": {
  1093          "msResolution": false,
  1094          "shared": true,
  1095          "sort": 0,
  1096          "value_type": "cumulative"
  1097        },
  1098        "type": "graph",
  1099        "xaxis": {
  1100          "buckets": null,
  1101          "mode": "time",
  1102          "name": null,
  1103          "show": true,
  1104          "values": []
  1105        },
  1106        "yaxes": [
  1107          {
  1108            "format": "short",
  1109            "label": null,
  1110            "logBase": 1,
  1111            "max": null,
  1112            "min": 0,
  1113            "show": true
  1114          },
  1115          {
  1116            "format": "short",
  1117            "label": null,
  1118            "logBase": 1,
  1119            "max": null,
  1120            "min": null,
  1121            "show": true
  1122          }
  1123        ]
  1124      }
  1125    ],
  1126    "refresh": false,
  1127    "schemaVersion": 16,
  1128    "style": "dark",
  1129    "tags": [
  1130      "cockroach"
  1131    ],
  1132    "templating": {
  1133      "list": [
  1134        {
  1135          "allValue": null,
  1136          "current": {},
  1137          "datasource": "${DS_PROMETHEUS}",
  1138          "hide": 0,
  1139          "includeAll": false,
  1140          "label": "Cluster name",
  1141          "multi": false,
  1142          "name": "cluster",
  1143          "options": [],
  1144          "query": "sys_uptime{job=\"cockroachdb\"}",
  1145          "refresh": 1,
  1146          "regex": "/cluster=\"([^\"]+)\"/",
  1147          "sort": 1,
  1148          "tagValuesQuery": "",
  1149          "tags": [],
  1150          "tagsQuery": "",
  1151          "type": "query",
  1152          "useTags": false
  1153        },
  1154        {
  1155          "allValue": ".*",
  1156          "current": {},
  1157          "datasource": "${DS_PROMETHEUS}",
  1158          "hide": 0,
  1159          "includeAll": true,
  1160          "label": "Node",
  1161          "multi": false,
  1162          "name": "node",
  1163          "options": [],
  1164          "query": "label_values(sys_uptime{job=\"cockroachdb\",cluster=\"$cluster\"},instance)",
  1165          "refresh": 1,
  1166          "regex": "",
  1167          "sort": 3,
  1168          "tagValuesQuery": "",
  1169          "tags": [],
  1170          "tagsQuery": "",
  1171          "type": "query",
  1172          "useTags": false
  1173        },
  1174        {
  1175          "auto": false,
  1176          "auto_count": 30,
  1177          "auto_min": "10s",
  1178          "current": {
  1179            "text": "30s",
  1180            "value": "30s"
  1181          },
  1182          "datasource": null,
  1183          "hide": 0,
  1184          "includeAll": false,
  1185          "label": "Rate Interval",
  1186          "multi": false,
  1187          "name": "rate_interval",
  1188          "options": [
  1189            {
  1190              "selected": true,
  1191              "text": "30s",
  1192              "value": "30s"
  1193            },
  1194            {
  1195              "selected": false,
  1196              "text": "1m",
  1197              "value": "1m"
  1198            },
  1199            {
  1200              "selected": false,
  1201              "text": "5m",
  1202              "value": "5m"
  1203            },
  1204            {
  1205              "selected": false,
  1206              "text": "10m",
  1207              "value": "10m"
  1208            },
  1209            {
  1210              "selected": false,
  1211              "text": "30m",
  1212              "value": "30m"
  1213            },
  1214            {
  1215              "selected": false,
  1216              "text": "1h",
  1217              "value": "1h"
  1218            },
  1219            {
  1220              "selected": false,
  1221              "text": "6h",
  1222              "value": "6h"
  1223            },
  1224            {
  1225              "selected": false,
  1226              "text": "12h",
  1227              "value": "12h"
  1228            },
  1229            {
  1230              "selected": false,
  1231              "text": "1d",
  1232              "value": "1d"
  1233            }
  1234          ],
  1235          "query": "30s,1m,5m,10m,30m,1h,6h,12h,1d",
  1236          "refresh": 2,
  1237          "type": "interval"
  1238        }
  1239      ]
  1240    },
  1241    "time": {
  1242      "from": "now-24h",
  1243      "to": "now"
  1244    },
  1245    "timepicker": {
  1246      "refresh_intervals": [
  1247        "5s",
  1248        "10s",
  1249        "30s",
  1250        "1m",
  1251        "5m",
  1252        "15m",
  1253        "30m",
  1254        "1h",
  1255        "2h",
  1256        "1d"
  1257      ],
  1258      "time_options": [
  1259        "5m",
  1260        "15m",
  1261        "1h",
  1262        "6h",
  1263        "12h",
  1264        "24h",
  1265        "2d",
  1266        "7d",
  1267        "30d"
  1268      ]
  1269    },
  1270    "timezone": "utc",
  1271    "title": "Cockroach SQL",
  1272    "uid": "000000004",
  1273    "version": 48
  1274  }