github.com/XiaoMi/Gaea@v1.2.5/docs/template/gaea_namespace.json (about)

     1  {
     2    "annotations": {
     3      "list": [
     4        {
     5          "builtIn": 1,
     6          "datasource": "-- Grafana --",
     7          "enable": true,
     8          "hide": true,
     9          "iconColor": "rgba(0, 211, 255, 1)",
    10          "name": "Annotations & Alerts",
    11          "type": "dashboard"
    12        }
    13      ]
    14    },
    15    "editable": true,
    16    "gnetId": null,
    17    "graphTooltip": 0,
    18    "id": 481,
    19    "links": [],
    20    "panels": [
    21      {
    22        "aliasColors": {},
    23        "bars": false,
    24        "dashLength": 10,
    25        "dashes": false,
    26        "datasource": "Prometheus",
    27        "fill": 1,
    28        "gridPos": {
    29          "h": 7,
    30          "w": 12,
    31          "x": 0,
    32          "y": 0
    33        },
    34        "id": 1,
    35        "legend": {
    36          "alignAsTable": true,
    37          "avg": false,
    38          "current": true,
    39          "max": true,
    40          "min": false,
    41          "rightSide": true,
    42          "show": true,
    43          "total": false,
    44          "values": true
    45        },
    46        "lines": true,
    47        "linewidth": 1,
    48        "links": [],
    49        "nullPointMode": "null as zero",
    50        "percentage": false,
    51        "pointradius": 5,
    52        "points": false,
    53        "renderer": "flot",
    54        "seriesOverrides": [],
    55        "spaceLength": 10,
    56        "stack": false,
    57        "steppedLine": false,
    58        "targets": [
    59          {
    60            "expr": "sum(avg(rate(gaea_proxy_sql_timings_count{namespace=\"gaea_test_namespace\"}[10s])) without (slave)) by (namespace)",
    61            "format": "time_series",
    62            "intervalFactor": 2,
    63            "legendFormat": "total",
    64            "refId": "A",
    65            "step": 2,
    66            "target": ""
    67          },
    68          {
    69            "expr": "sum(avg(rate(gaea_proxy_sql_timings_count{namespace=\"gaea_test_namespace\"}[10s])) without (slave)) by (namespace,operation)",
    70            "format": "time_series",
    71            "intervalFactor": 2,
    72            "legendFormat": "{{operation}}",
    73            "refId": "B",
    74            "step": 2
    75          }
    76        ],
    77        "thresholds": [],
    78        "timeFrom": null,
    79        "timeShift": null,
    80        "title": "QPS",
    81        "tooltip": {
    82          "shared": true,
    83          "sort": 0,
    84          "value_type": "individual"
    85        },
    86        "type": "graph",
    87        "xaxis": {
    88          "buckets": null,
    89          "mode": "time",
    90          "name": null,
    91          "show": true,
    92          "values": []
    93        },
    94        "yaxes": [
    95          {
    96            "format": "short",
    97            "label": null,
    98            "logBase": 1,
    99            "max": null,
   100            "min": null,
   101            "show": true
   102          },
   103          {
   104            "format": "short",
   105            "label": null,
   106            "logBase": 1,
   107            "max": null,
   108            "min": null,
   109            "show": true
   110          }
   111        ],
   112        "yaxis": {
   113          "align": false,
   114          "alignLevel": null
   115        }
   116      },
   117      {
   118        "aliasColors": {},
   119        "bars": false,
   120        "dashLength": 10,
   121        "dashes": false,
   122        "datasource": "Prometheus",
   123        "fill": 1,
   124        "gridPos": {
   125          "h": 7,
   126          "w": 12,
   127          "x": 12,
   128          "y": 0
   129        },
   130        "id": 2,
   131        "legend": {
   132          "alignAsTable": true,
   133          "avg": false,
   134          "current": true,
   135          "max": true,
   136          "min": false,
   137          "rightSide": true,
   138          "show": true,
   139          "total": false,
   140          "values": true
   141        },
   142        "lines": true,
   143        "linewidth": 1,
   144        "links": [],
   145        "nullPointMode": "null",
   146        "percentage": false,
   147        "pointradius": 5,
   148        "points": false,
   149        "renderer": "flot",
   150        "seriesOverrides": [],
   151        "spaceLength": 10,
   152        "stack": false,
   153        "steppedLine": false,
   154        "targets": [
   155          {
   156            "expr": "sum(avg(rate(gaea_proxy_flow_counts{namespace=\"gaea_test_namespace\"}[10s])) without (slave)) by (namespace, flowdirection)",
   157            "format": "time_series",
   158            "intervalFactor": 2,
   159            "legendFormat": "{{flowdirection}}",
   160            "refId": "A",
   161            "step": 2,
   162            "target": ""
   163          }
   164        ],
   165        "thresholds": [],
   166        "timeFrom": null,
   167        "timeShift": null,
   168        "title": "流量",
   169        "tooltip": {
   170          "shared": true,
   171          "sort": 0,
   172          "value_type": "individual"
   173        },
   174        "type": "graph",
   175        "xaxis": {
   176          "buckets": null,
   177          "mode": "time",
   178          "name": null,
   179          "show": true,
   180          "values": []
   181        },
   182        "yaxes": [
   183          {
   184            "format": "bytes",
   185            "label": null,
   186            "logBase": 1,
   187            "max": null,
   188            "min": null,
   189            "show": true
   190          },
   191          {
   192            "format": "short",
   193            "label": null,
   194            "logBase": 1,
   195            "max": null,
   196            "min": null,
   197            "show": true
   198          }
   199        ],
   200        "yaxis": {
   201          "align": false,
   202          "alignLevel": null
   203        }
   204      },
   205      {
   206        "aliasColors": {},
   207        "bars": false,
   208        "dashLength": 10,
   209        "dashes": false,
   210        "datasource": "Prometheus",
   211        "fill": 1,
   212        "gridPos": {
   213          "h": 7,
   214          "w": 12,
   215          "x": 0,
   216          "y": 7
   217        },
   218        "id": 3,
   219        "legend": {
   220          "alignAsTable": true,
   221          "avg": false,
   222          "current": true,
   223          "max": true,
   224          "min": false,
   225          "rightSide": true,
   226          "show": true,
   227          "total": false,
   228          "values": true
   229        },
   230        "lines": true,
   231        "linewidth": 1,
   232        "links": [],
   233        "nullPointMode": "null as zero",
   234        "percentage": false,
   235        "pointradius": 5,
   236        "points": false,
   237        "renderer": "flot",
   238        "seriesOverrides": [],
   239        "spaceLength": 10,
   240        "stack": false,
   241        "steppedLine": false,
   242        "targets": [
   243          {
   244            "expr": "sum(avg(delta(gaea_proxy_sql_timings_sum{namespace=\"gaea_test_namespace\"}[10s])) without (slave) / avg(delta(gaea_proxy_sql_timings_count{namespace=\"gaea_test_namespace\"}[10s])) without (slave)) by (namespace, operation)",
   245            "format": "time_series",
   246            "intervalFactor": 2,
   247            "legendFormat": "{{operation}}",
   248            "refId": "A",
   249            "step": 2,
   250            "target": ""
   251          },
   252          {
   253            "expr": "sum(avg(delta(gaea_proxy_backend_sql_timings_sum{namespace=\"gaea_test_namespace\"}[10s])) without (slave) / avg(delta(gaea_proxy_backend_sql_timings_sum{namespace=\"gaea_test_namespace\"}[10s])) without (slave)) by (namespace, operation)",
   254            "format": "time_series",
   255            "intervalFactor": 2,
   256            "legendFormat": "mysql_{{operation}}",
   257            "refId": "B",
   258            "step": 2,
   259            "target": ""
   260          }
   261        ],
   262        "thresholds": [],
   263        "timeFrom": null,
   264        "timeShift": null,
   265        "title": "SQL耗时",
   266        "tooltip": {
   267          "shared": true,
   268          "sort": 0,
   269          "value_type": "individual"
   270        },
   271        "type": "graph",
   272        "xaxis": {
   273          "buckets": null,
   274          "mode": "time",
   275          "name": null,
   276          "show": true,
   277          "values": []
   278        },
   279        "yaxes": [
   280          {
   281            "format": "s",
   282            "label": null,
   283            "logBase": 1,
   284            "max": null,
   285            "min": null,
   286            "show": true
   287          },
   288          {
   289            "format": "s",
   290            "label": null,
   291            "logBase": 1,
   292            "max": null,
   293            "min": null,
   294            "show": true
   295          }
   296        ],
   297        "yaxis": {
   298          "align": false,
   299          "alignLevel": null
   300        }
   301      },
   302      {
   303        "aliasColors": {},
   304        "bars": false,
   305        "dashLength": 10,
   306        "dashes": false,
   307        "datasource": "Prometheus",
   308        "fill": 1,
   309        "gridPos": {
   310          "h": 7,
   311          "w": 12,
   312          "x": 12,
   313          "y": 7
   314        },
   315        "id": 4,
   316        "legend": {
   317          "alignAsTable": true,
   318          "avg": false,
   319          "current": true,
   320          "max": true,
   321          "min": false,
   322          "rightSide": true,
   323          "show": true,
   324          "total": false,
   325          "values": true
   326        },
   327        "lines": true,
   328        "linewidth": 1,
   329        "links": [],
   330        "nullPointMode": "null as zero",
   331        "percentage": false,
   332        "pointradius": 5,
   333        "points": false,
   334        "renderer": "flot",
   335        "seriesOverrides": [],
   336        "spaceLength": 10,
   337        "stack": false,
   338        "steppedLine": false,
   339        "targets": [
   340          {
   341            "expr": "sum(avg(delta(gaea_proxy_sql_error_counts{namespace=\"gaea_test_namespace\"}[10s])) without (instance)) by (namespace, operation)",
   342            "format": "time_series",
   343            "intervalFactor": 2,
   344            "legendFormat": "{{operation}}",
   345            "refId": "A",
   346            "step": 2,
   347            "target": ""
   348          }
   349        ],
   350        "thresholds": [],
   351        "timeFrom": null,
   352        "timeShift": null,
   353        "title": "SQL错误数",
   354        "tooltip": {
   355          "shared": true,
   356          "sort": 0,
   357          "value_type": "individual"
   358        },
   359        "type": "graph",
   360        "xaxis": {
   361          "buckets": null,
   362          "mode": "time",
   363          "name": null,
   364          "show": true,
   365          "values": []
   366        },
   367        "yaxes": [
   368          {
   369            "format": "short",
   370            "label": null,
   371            "logBase": 1,
   372            "max": null,
   373            "min": null,
   374            "show": true
   375          },
   376          {
   377            "format": "short",
   378            "label": null,
   379            "logBase": 1,
   380            "max": null,
   381            "min": null,
   382            "show": true
   383          }
   384        ],
   385        "yaxis": {
   386          "align": false,
   387          "alignLevel": null
   388        }
   389      },
   390      {
   391        "aliasColors": {},
   392        "bars": false,
   393        "dashLength": 10,
   394        "dashes": false,
   395        "datasource": "Prometheus",
   396        "fill": 1,
   397        "gridPos": {
   398          "h": 7,
   399          "w": 12,
   400          "x": 0,
   401          "y": 14
   402        },
   403        "id": 5,
   404        "legend": {
   405          "alignAsTable": true,
   406          "avg": false,
   407          "current": true,
   408          "max": true,
   409          "min": false,
   410          "rightSide": true,
   411          "show": true,
   412          "total": false,
   413          "values": true
   414        },
   415        "lines": true,
   416        "linewidth": 1,
   417        "links": [],
   418        "nullPointMode": "null as zero",
   419        "percentage": false,
   420        "pointradius": 5,
   421        "points": false,
   422        "renderer": "flot",
   423        "seriesOverrides": [],
   424        "spaceLength": 10,
   425        "stack": false,
   426        "steppedLine": false,
   427        "targets": [
   428          {
   429            "expr": "sum(avg(delta(gaea_proxy_sql_fingerprint_slow_counts{namespace=\"gaea_test_namespace\"}[10s])) without (instance)) by (namespace, fingerprint)",
   430            "format": "time_series",
   431            "intervalFactor": 2,
   432            "legendFormat": "{{fingerprint}}",
   433            "refId": "A",
   434            "step": 2,
   435            "target": ""
   436          }
   437        ],
   438        "thresholds": [],
   439        "timeFrom": null,
   440        "timeShift": null,
   441        "title": "高耗时SQL指纹",
   442        "tooltip": {
   443          "shared": true,
   444          "sort": 0,
   445          "value_type": "individual"
   446        },
   447        "type": "graph",
   448        "xaxis": {
   449          "buckets": null,
   450          "mode": "time",
   451          "name": null,
   452          "show": true,
   453          "values": []
   454        },
   455        "yaxes": [
   456          {
   457            "format": "short",
   458            "label": null,
   459            "logBase": 1,
   460            "max": null,
   461            "min": null,
   462            "show": true
   463          },
   464          {
   465            "format": "short",
   466            "label": null,
   467            "logBase": 1,
   468            "max": null,
   469            "min": null,
   470            "show": true
   471          }
   472        ],
   473        "yaxis": {
   474          "align": false,
   475          "alignLevel": null
   476        }
   477      },
   478      {
   479        "aliasColors": {},
   480        "bars": false,
   481        "dashLength": 10,
   482        "dashes": false,
   483        "datasource": "Prometheus",
   484        "fill": 1,
   485        "gridPos": {
   486          "h": 7,
   487          "w": 12,
   488          "x": 12,
   489          "y": 14
   490        },
   491        "id": 6,
   492        "legend": {
   493          "alignAsTable": true,
   494          "avg": false,
   495          "current": true,
   496          "max": true,
   497          "min": false,
   498          "rightSide": true,
   499          "show": true,
   500          "total": false,
   501          "values": true
   502        },
   503        "lines": true,
   504        "linewidth": 1,
   505        "links": [],
   506        "nullPointMode": "null as zero",
   507        "percentage": false,
   508        "pointradius": 5,
   509        "points": false,
   510        "renderer": "flot",
   511        "seriesOverrides": [],
   512        "spaceLength": 10,
   513        "stack": false,
   514        "steppedLine": false,
   515        "targets": [
   516          {
   517            "expr": "sum(avg(delta(gaea_proxy_sql_fingerprint_error_counts{namespace=\"gaea_test_namespace\"}[10s])) without (instance)) by (namespace, fingerprint)",
   518            "format": "time_series",
   519            "intervalFactor": 2,
   520            "legendFormat": "{{fingerprint}}",
   521            "refId": "A",
   522            "step": 2,
   523            "target": ""
   524          }
   525        ],
   526        "thresholds": [],
   527        "timeFrom": null,
   528        "timeShift": null,
   529        "title": "错误SQL指纹",
   530        "tooltip": {
   531          "shared": true,
   532          "sort": 0,
   533          "value_type": "individual"
   534        },
   535        "type": "graph",
   536        "xaxis": {
   537          "buckets": null,
   538          "mode": "time",
   539          "name": null,
   540          "show": true,
   541          "values": []
   542        },
   543        "yaxes": [
   544          {
   545            "format": "short",
   546            "label": null,
   547            "logBase": 1,
   548            "max": null,
   549            "min": null,
   550            "show": true
   551          },
   552          {
   553            "format": "short",
   554            "label": null,
   555            "logBase": 1,
   556            "max": null,
   557            "min": null,
   558            "show": true
   559          }
   560        ],
   561        "yaxis": {
   562          "align": false,
   563          "alignLevel": null
   564        }
   565      },
   566      {
   567        "aliasColors": {},
   568        "bars": false,
   569        "dashLength": 10,
   570        "dashes": false,
   571        "datasource": "Prometheus",
   572        "fill": 1,
   573        "gridPos": {
   574          "h": 9,
   575          "w": 12,
   576          "x": 0,
   577          "y": 21
   578        },
   579        "id": 8,
   580        "legend": {
   581          "alignAsTable": true,
   582          "avg": false,
   583          "current": true,
   584          "max": true,
   585          "min": false,
   586          "rightSide": true,
   587          "show": true,
   588          "total": false,
   589          "values": true
   590        },
   591        "lines": true,
   592        "linewidth": 1,
   593        "links": [],
   594        "nullPointMode": "null",
   595        "percentage": false,
   596        "pointradius": 5,
   597        "points": false,
   598        "renderer": "flot",
   599        "seriesOverrides": [],
   600        "spaceLength": 10,
   601        "stack": false,
   602        "steppedLine": false,
   603        "targets": [
   604          {
   605            "expr": "sum(gaea_proxy_backend_connect_pool_in_use_counts{namespace=\"gaea_test_namespace\"})  ",
   606            "format": "time_series",
   607            "hide": false,
   608            "interval": "",
   609            "intervalFactor": 1,
   610            "legendFormat": "total",
   611            "refId": "A",
   612            "target": ""
   613          },
   614          {
   615            "expr": "sum(gaea_proxy_backend_connect_pool_in_use_counts{namespace=\"gaea_test_namespace\"}) by (slice, ip_addr)  ",
   616            "format": "time_series",
   617            "hide": false,
   618            "interval": "",
   619            "intervalFactor": 1,
   620            "legendFormat": "{{slice}}  {{ip_addr}}",
   621            "refId": "B",
   622            "target": ""
   623          }
   624        ],
   625        "thresholds": [],
   626        "timeFrom": null,
   627        "timeShift": null,
   628        "title": "连接数",
   629        "tooltip": {
   630          "shared": true,
   631          "sort": 0,
   632          "value_type": "individual"
   633        },
   634        "type": "graph",
   635        "xaxis": {
   636          "buckets": null,
   637          "mode": "time",
   638          "name": null,
   639          "show": true,
   640          "values": []
   641        },
   642        "yaxes": [
   643          {
   644            "format": "short",
   645            "label": null,
   646            "logBase": 1,
   647            "max": null,
   648            "min": null,
   649            "show": true
   650          },
   651          {
   652            "format": "short",
   653            "label": null,
   654            "logBase": 1,
   655            "max": null,
   656            "min": null,
   657            "show": true
   658          }
   659        ],
   660        "yaxis": {
   661          "align": false,
   662          "alignLevel": null
   663        }
   664      },
   665      {
   666        "aliasColors": {},
   667        "bars": false,
   668        "dashLength": 10,
   669        "dashes": false,
   670        "datasource": "Prometheus",
   671        "fill": 1,
   672        "gridPos": {
   673          "h": 9,
   674          "w": 12,
   675          "x": 12,
   676          "y": 21
   677        },
   678        "id": 10,
   679        "legend": {
   680          "alignAsTable": true,
   681          "avg": false,
   682          "current": true,
   683          "max": true,
   684          "min": false,
   685          "rightSide": true,
   686          "show": true,
   687          "total": false,
   688          "values": true
   689        },
   690        "lines": true,
   691        "linewidth": 1,
   692        "links": [],
   693        "nullPointMode": "null",
   694        "percentage": false,
   695        "pointradius": 5,
   696        "points": false,
   697        "renderer": "flot",
   698        "seriesOverrides": [],
   699        "spaceLength": 10,
   700        "stack": false,
   701        "steppedLine": false,
   702        "targets": [
   703          {
   704            "expr": "sum(gaea_proxy_backend_connect_pool_idle_counts{namespace=\"gaea_test_namespace\"})  ",
   705            "format": "time_series",
   706            "hide": false,
   707            "interval": "",
   708            "intervalFactor": 1,
   709            "legendFormat": "total",
   710            "refId": "A",
   711            "target": ""
   712          },
   713          {
   714            "expr": "sum(gaea_proxy_backend_connect_pool_idle_counts{namespace=\"gaea_test_namespace\"}) by (slice, ip_addr)  ",
   715            "format": "time_series",
   716            "hide": false,
   717            "interval": "",
   718            "intervalFactor": 1,
   719            "legendFormat": "{{slice}}  {{ip_addr}}",
   720            "refId": "B",
   721            "target": ""
   722          }
   723        ],
   724        "thresholds": [],
   725        "timeFrom": null,
   726        "timeShift": null,
   727        "title": "空闲连接数",
   728        "tooltip": {
   729          "shared": true,
   730          "sort": 0,
   731          "value_type": "individual"
   732        },
   733        "type": "graph",
   734        "xaxis": {
   735          "buckets": null,
   736          "mode": "time",
   737          "name": null,
   738          "show": true,
   739          "values": []
   740        },
   741        "yaxes": [
   742          {
   743            "format": "short",
   744            "label": null,
   745            "logBase": 1,
   746            "max": null,
   747            "min": null,
   748            "show": true
   749          },
   750          {
   751            "format": "short",
   752            "label": null,
   753            "logBase": 1,
   754            "max": null,
   755            "min": null,
   756            "show": true
   757          }
   758        ],
   759        "yaxis": {
   760          "align": false,
   761          "alignLevel": null
   762        }
   763      },
   764      {
   765        "aliasColors": {},
   766        "bars": false,
   767        "dashLength": 10,
   768        "dashes": false,
   769        "datasource": "Prometheus",
   770        "fill": 1,
   771        "gridPos": {
   772          "h": 9,
   773          "w": 12,
   774          "x": 0,
   775          "y": 30
   776        },
   777        "id": 12,
   778        "legend": {
   779          "alignAsTable": true,
   780          "avg": false,
   781          "current": true,
   782          "max": true,
   783          "min": false,
   784          "rightSide": true,
   785          "show": true,
   786          "total": false,
   787          "values": true
   788        },
   789        "lines": true,
   790        "linewidth": 1,
   791        "links": [],
   792        "nullPointMode": "null",
   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": "sum(gaea_proxy_backend_connect_pool_wait_counts{namespace=\"gaea_test_namespace\"})  ",
   804            "format": "time_series",
   805            "hide": false,
   806            "interval": "",
   807            "intervalFactor": 1,
   808            "legendFormat": "total",
   809            "refId": "A",
   810            "target": ""
   811          },
   812          {
   813            "expr": "sum(gaea_proxy_backend_connect_pool_wait_counts{namespace=\"gaea_test_namespace\"}) by (slice, ip_addr) !=0   ",
   814            "format": "time_series",
   815            "hide": false,
   816            "interval": "",
   817            "intervalFactor": 1,
   818            "legendFormat": "{{slice}}  {{ip_addr}}",
   819            "refId": "B",
   820            "target": ""
   821          }
   822        ],
   823        "thresholds": [],
   824        "timeFrom": null,
   825        "timeShift": null,
   826        "title": "等待队列",
   827        "tooltip": {
   828          "shared": true,
   829          "sort": 0,
   830          "value_type": "individual"
   831        },
   832        "type": "graph",
   833        "xaxis": {
   834          "buckets": null,
   835          "mode": "time",
   836          "name": null,
   837          "show": true,
   838          "values": []
   839        },
   840        "yaxes": [
   841          {
   842            "format": "short",
   843            "label": null,
   844            "logBase": 1,
   845            "max": null,
   846            "min": null,
   847            "show": true
   848          },
   849          {
   850            "format": "short",
   851            "label": null,
   852            "logBase": 1,
   853            "max": null,
   854            "min": null,
   855            "show": true
   856          }
   857        ],
   858        "yaxis": {
   859          "align": false,
   860          "alignLevel": null
   861        }
   862      }
   863    ],
   864    "schemaVersion": 16,
   865    "style": "dark",
   866    "tags": [],
   867    "templating": {
   868      "list": []
   869    },
   870    "time": {
   871      "from": "now-15m",
   872      "to": "now"
   873    },
   874    "timepicker": {
   875      "refresh_intervals": [
   876        "5s",
   877        "10s",
   878        "30s",
   879        "1m",
   880        "5m",
   881        "15m",
   882        "30m",
   883        "1h",
   884        "2h",
   885        "1d"
   886      ],
   887      "time_options": [
   888        "5m",
   889        "15m",
   890        "1h",
   891        "6h",
   892        "12h",
   893        "24h",
   894        "2d",
   895        "7d",
   896        "30d"
   897      ]
   898    },
   899    "timezone": "",
   900    "title": "gaea-template",
   901    "uid": "000000481",
   902    "version": 12
   903  }