| { |
| "annotations": { |
| "list": [ |
| { |
| "builtIn": 1, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "enable": true, |
| "hide": true, |
| "iconColor": "rgba(0, 211, 255, 1)", |
| "name": "Annotations & Alerts", |
| "target": { |
| "limit": 100, |
| "matchAny": false, |
| "tags": [], |
| "type": "dashboard" |
| }, |
| "type": "dashboard" |
| } |
| ] |
| }, |
| "editable": true, |
| "fiscalYearStartMonth": 0, |
| "graphTooltip": 0, |
| "id": 2, |
| "links": [], |
| "liveNow": false, |
| "panels": [ |
| { |
| "collapsed": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "gridPos": { |
| "h": 1, |
| "w": 24, |
| "x": 0, |
| "y": 0 |
| }, |
| "id": 12, |
| "panels": [], |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "refId": "A" |
| } |
| ], |
| "title": "Kubernetes General Metrics", |
| "type": "row" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "thresholds" |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 0, |
| "y": 1 |
| }, |
| "id": 14, |
| "options": { |
| "orientation": "auto", |
| "reduceOptions": { |
| "calcs": [ |
| "lastNotNull" |
| ], |
| "fields": "", |
| "values": false |
| }, |
| "showThresholdLabels": false, |
| "showThresholdMarkers": true |
| }, |
| "pluginVersion": "9.3.6", |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "exemplar": true, |
| "expr": "kube_deployment_status_replicas{deployment=\"$shardingsphere\",namespace=\"$namespace\"}", |
| "hide": false, |
| "interval": "", |
| "legendFormat": "", |
| "refId": "B" |
| } |
| ], |
| "title": "Deployment Replicas", |
| "type": "gauge" |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fill": 1, |
| "fillGradient": 0, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 12, |
| "y": 1 |
| }, |
| "hiddenSeries": false, |
| "id": 18, |
| "legend": { |
| "alignAsTable": true, |
| "avg": false, |
| "current": false, |
| "max": false, |
| "min": false, |
| "rightSide": false, |
| "show": true, |
| "total": false, |
| "values": false |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "nullPointMode": "null", |
| "options": { |
| "alertThreshold": true |
| }, |
| "percentage": false, |
| "pluginVersion": "9.3.6", |
| "pointradius": 2, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "kube_pod_status_phase{phase=\"Running\",namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}", |
| "hide": false, |
| "legendFormat": "{{pod}}", |
| "range": true, |
| "refId": "A" |
| } |
| ], |
| "thresholds": [], |
| "timeRegions": [], |
| "title": "Pods Runing", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "mode": "time", |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "$$hashKey": "object:1323", |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| }, |
| { |
| "$$hashKey": "object:1324", |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false |
| } |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fill": 1, |
| "fillGradient": 0, |
| "gridPos": { |
| "h": 9, |
| "w": 24, |
| "x": 0, |
| "y": 9 |
| }, |
| "hiddenSeries": false, |
| "id": 20, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": false, |
| "min": false, |
| "rightSide": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "nullPointMode": "null", |
| "options": { |
| "alertThreshold": true |
| }, |
| "percentage": false, |
| "pluginVersion": "9.3.6", |
| "pointradius": 2, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sum by (pod)(rate(container_cpu_usage_seconds_total{image!=\"\", pod=~\"$shardingsphere.*\",namespace=\"$namespace\"}[$interval]) * 100)", |
| "hide": false, |
| "legendFormat": "{{pod}}", |
| "range": true, |
| "refId": "A" |
| } |
| ], |
| "thresholds": [], |
| "timeRegions": [], |
| "title": "Pod CPU Usage", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "mode": "time", |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "$$hashKey": "object:29", |
| "format": "percent", |
| "logBase": 1, |
| "show": true |
| }, |
| { |
| "$$hashKey": "object:30", |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false |
| } |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fill": 1, |
| "fillGradient": 0, |
| "gridPos": { |
| "h": 9, |
| "w": 24, |
| "x": 0, |
| "y": 18 |
| }, |
| "hiddenSeries": false, |
| "id": 22, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": false, |
| "min": false, |
| "rightSide": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "nullPointMode": "null", |
| "options": { |
| "alertThreshold": true |
| }, |
| "percentage": false, |
| "pluginVersion": "9.3.6", |
| "pointradius": 2, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sort_desc(sum(container_memory_usage_bytes{image!=\"\",container=\"shardingsphere-proxy\",namespace=\"$namespace\"}) by (pod))", |
| "hide": false, |
| "legendFormat": "__auto", |
| "range": true, |
| "refId": "B" |
| } |
| ], |
| "thresholds": [], |
| "timeRegions": [], |
| "title": "Pod memory usage", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "mode": "time", |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "$$hashKey": "object:98", |
| "format": "bytes", |
| "logBase": 1, |
| "show": true |
| }, |
| { |
| "$$hashKey": "object:99", |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false |
| } |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fill": 1, |
| "fillGradient": 0, |
| "gridPos": { |
| "h": 10, |
| "w": 24, |
| "x": 0, |
| "y": 27 |
| }, |
| "hiddenSeries": false, |
| "id": 24, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": false, |
| "min": false, |
| "rightSide": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "nullPointMode": "null", |
| "options": { |
| "alertThreshold": true |
| }, |
| "percentage": false, |
| "pluginVersion": "9.3.6", |
| "pointradius": 2, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sort_desc(sum by (pod) (rate (container_network_receive_bytes_total{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}[$interval]) ))", |
| "hide": false, |
| "legendFormat": "接收-{{pod}}", |
| "range": true, |
| "refId": "C" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sort_desc(sum by (pod) (rate (container_network_transmit_bytes_total{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}[$interval]) ))", |
| "hide": false, |
| "legendFormat": "发送-{{pod}}", |
| "range": true, |
| "refId": "D" |
| } |
| ], |
| "thresholds": [], |
| "timeRegions": [], |
| "title": "Pod network IO", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "mode": "time", |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "$$hashKey": "object:297", |
| "format": "bytes", |
| "logBase": 1, |
| "show": true |
| }, |
| { |
| "$$hashKey": "object:298", |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false |
| } |
| }, |
| { |
| "collapsed": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "gridPos": { |
| "h": 1, |
| "w": 24, |
| "x": 0, |
| "y": 37 |
| }, |
| "id": 10, |
| "panels": [], |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "refId": "A" |
| } |
| ], |
| "title": "ShardingSphere Proxy Metrics", |
| "type": "row" |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fill": 1, |
| "fillGradient": 0, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 0, |
| "y": 38 |
| }, |
| "hiddenSeries": false, |
| "id": 60, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "nullPointMode": "null", |
| "options": { |
| "alertThreshold": true |
| }, |
| "percentage": false, |
| "pluginVersion": "9.3.6", |
| "pointradius": 2, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "jvm_memory_bytes_used{namespace=\"$namespace\",area=\"heap\"}", |
| "hide": false, |
| "legendFormat": "已用堆内存-{{pod}}", |
| "range": true, |
| "refId": "C" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "jvm_memory_bytes_used{namespace=\"$namespace\",area=\"nonheap\"}", |
| "hide": false, |
| "legendFormat": "已用非堆内存-{{pod}}", |
| "range": true, |
| "refId": "D" |
| } |
| ], |
| "thresholds": [], |
| "timeRegions": [], |
| "title": "JVM 已用内存", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "mode": "time", |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "$$hashKey": "object:555", |
| "format": "bytes", |
| "logBase": 1, |
| "show": true |
| }, |
| { |
| "$$hashKey": "object:556", |
| "format": "percentunit", |
| "logBase": 1, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false |
| } |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fill": 1, |
| "fillGradient": 0, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 12, |
| "y": 38 |
| }, |
| "hiddenSeries": false, |
| "id": 62, |
| "legend": { |
| "alignAsTable": true, |
| "avg": false, |
| "current": true, |
| "max": true, |
| "min": false, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "nullPointMode": "null", |
| "options": { |
| "alertThreshold": true |
| }, |
| "percentage": false, |
| "pluginVersion": "9.3.6", |
| "pointradius": 2, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "increase(jvm_gc_collection_seconds_sum{namespace=\"$namespace\"}[$interval])", |
| "hide": false, |
| "legendFormat": "{{pod}}", |
| "range": true, |
| "refId": "B" |
| } |
| ], |
| "thresholds": [], |
| "timeRegions": [], |
| "title": "GC 时间", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "mode": "time", |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "$$hashKey": "object:635", |
| "format": "s", |
| "logBase": 1, |
| "show": true |
| }, |
| { |
| "$$hashKey": "object:636", |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false |
| } |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fill": 1, |
| "fillGradient": 0, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 0, |
| "y": 46 |
| }, |
| "hiddenSeries": false, |
| "id": 64, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "nullPointMode": "null", |
| "options": { |
| "alertThreshold": true |
| }, |
| "percentage": false, |
| "pluginVersion": "9.3.6", |
| "pointradius": 2, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "jvm_memory_pool_bytes_used{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}", |
| "hide": false, |
| "legendFormat": "{{pool}}-{{pod}}", |
| "range": true, |
| "refId": "B" |
| } |
| ], |
| "thresholds": [], |
| "timeRegions": [], |
| "title": "Memory Pool", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "mode": "time", |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "$$hashKey": "object:789", |
| "format": "bytes", |
| "logBase": 1, |
| "show": true |
| }, |
| { |
| "$$hashKey": "object:790", |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false |
| } |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fill": 1, |
| "fillGradient": 0, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 12, |
| "y": 46 |
| }, |
| "hiddenSeries": false, |
| "id": 66, |
| "legend": { |
| "alignAsTable": true, |
| "avg": false, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "nullPointMode": "null", |
| "options": { |
| "alertThreshold": true |
| }, |
| "percentage": false, |
| "pluginVersion": "9.3.6", |
| "pointradius": 2, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "jvm_classes_loaded{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}", |
| "hide": false, |
| "legendFormat": "{{pod}}", |
| "range": true, |
| "refId": "B" |
| } |
| ], |
| "thresholds": [], |
| "timeRegions": [], |
| "title": "JVM 类加载", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "mode": "time", |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "$$hashKey": "object:939", |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| }, |
| { |
| "$$hashKey": "object:940", |
| "format": "short", |
| "logBase": 1, |
| "show": false |
| } |
| ], |
| "yaxis": { |
| "align": false |
| } |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 10, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "never", |
| "spanNulls": true, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| }, |
| "unit": "short" |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 0, |
| "y": 54 |
| }, |
| "id": 68, |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "multi", |
| "sort": "none" |
| } |
| }, |
| "pluginVersion": "8.4.4", |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "proxy_connection_total{namespace=\"$namespace\"}", |
| "hide": false, |
| "legendFormat": "{{pod}}", |
| "range": true, |
| "refId": "B" |
| } |
| ], |
| "title": "Proxy 连接数", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 0, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 12, |
| "y": 54 |
| }, |
| "id": 70, |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sum(rate(proxy_request_total{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}[$interval]))", |
| "hide": false, |
| "legendFormat": "QPS", |
| "range": true, |
| "refId": "B" |
| } |
| ], |
| "title": "QPS", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 0, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| }, |
| "unit": "ms" |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 0, |
| "y": 62 |
| }, |
| "id": 74, |
| "options": { |
| "legend": { |
| "calcs": [ |
| "min", |
| "max", |
| "mean", |
| "lastNotNull" |
| ], |
| "displayMode": "table", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "histogram_quantile(0.9, rate(proxy_execute_latency_millis_bucket{namespace=\"$namespace\"}[$interval]))", |
| "hide": false, |
| "legendFormat": "{{pod}} P90", |
| "range": true, |
| "refId": "C" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "histogram_quantile(0.95, rate(proxy_execute_latency_millis_bucket{namespace=\"$namespace\"}[$interval]))", |
| "hide": false, |
| "legendFormat": "{{pod}} P95", |
| "range": true, |
| "refId": "D" |
| } |
| ], |
| "title": "执行耗时统计", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 0, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 12, |
| "y": 62 |
| }, |
| "id": 73, |
| "options": { |
| "legend": { |
| "calcs": [ |
| "min", |
| "max", |
| "mean", |
| "lastNotNull" |
| ], |
| "displayMode": "table", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "proxy_execute_error_total{namespace=\"$namespace\"}", |
| "hide": false, |
| "legendFormat": "{{pod}}", |
| "range": true, |
| "refId": "B" |
| } |
| ], |
| "title": "Proxy 执行异常数", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 0, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 0, |
| "y": 70 |
| }, |
| "id": 76, |
| "options": { |
| "legend": { |
| "calcs": [ |
| "min", |
| "max", |
| "mean", |
| "lastNotNull" |
| ], |
| "displayMode": "table", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sum(rate(route_sql_insert_total{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}[$interval]))", |
| "hide": false, |
| "legendFormat": "Insert", |
| "range": true, |
| "refId": "E" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sum(rate(route_sql_select_total{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}[$interval]))", |
| "hide": false, |
| "legendFormat": "Select", |
| "range": true, |
| "refId": "A" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sum(rate(route_sql_update_total{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}[$interval]))", |
| "hide": false, |
| "legendFormat": "Update", |
| "range": true, |
| "refId": "B" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "sum(rate(route_sql_delete_total{namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}[$interval]))", |
| "hide": false, |
| "legendFormat": "Delete", |
| "range": true, |
| "refId": "C" |
| } |
| ], |
| "title": "SQL 路由数量", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "thresholds" |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 12, |
| "x": 12, |
| "y": 70 |
| }, |
| "id": 78, |
| "options": { |
| "colorMode": "none", |
| "graphMode": "none", |
| "justifyMode": "center", |
| "orientation": "auto", |
| "reduceOptions": { |
| "calcs": [ |
| "lastNotNull" |
| ], |
| "fields": "", |
| "values": false |
| }, |
| "text": {}, |
| "textMode": "value_and_name" |
| }, |
| "pluginVersion": "9.3.6", |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "ceil(sum(meta_data_info{name=\"database_count\",namespace=\"$namespace\", pod=~\"$shardingsphere.*\"}) / count(meta_data_info{name=\"database_count\",namespace=\"$namespace\", pod=~\"$shardingsphere.*\"}))", |
| "hide": false, |
| "legendFormat": "Database 数量", |
| "range": true, |
| "refId": "B" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "editorMode": "code", |
| "expr": "ceil(sum(meta_data_info{name=\"schema_count\",namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}) / count(meta_data_info{name=\"schema_count\",namespace=\"$namespace\",pod=~\"$shardingsphere.*\"}))", |
| "hide": false, |
| "legendFormat": "Schema 数量", |
| "range": true, |
| "refId": "A" |
| } |
| ], |
| "title": "逻辑库数量", |
| "type": "stat" |
| } |
| ], |
| "refresh": false, |
| "schemaVersion": 37, |
| "style": "dark", |
| "tags": [], |
| "templating": { |
| "list": [ |
| { |
| "current": { |
| "selected": false, |
| "text": "chaos-test", |
| "value": "chaos-test" |
| }, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "definition": "label_values(kube_namespace_created{cluster=~\"$cluster\"}, namespace)", |
| "hide": 0, |
| "includeAll": false, |
| "multi": false, |
| "name": "namespace", |
| "options": [], |
| "query": { |
| "query": "label_values(kube_namespace_created{cluster=~\"$cluster\"}, namespace)", |
| "refId": "StandardVariableQuery" |
| }, |
| "refresh": 1, |
| "regex": "", |
| "skipUrlSync": false, |
| "sort": 0, |
| "type": "query" |
| }, |
| { |
| "current": { |
| "selected": false, |
| "text": "None", |
| "value": "" |
| }, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "definition": "label_values(kube_node_info, cluster)", |
| "hide": 0, |
| "includeAll": false, |
| "multi": false, |
| "name": "cluster", |
| "options": [], |
| "query": { |
| "query": "label_values(kube_node_info, cluster)", |
| "refId": "StandardVariableQuery" |
| }, |
| "refresh": 1, |
| "regex": "", |
| "skipUrlSync": false, |
| "sort": 0, |
| "type": "query" |
| }, |
| { |
| "current": { |
| "selected": false, |
| "text": "foo", |
| "value": "foo" |
| }, |
| "datasource": { |
| "type": "prometheus" |
| }, |
| "definition": "label_values(kube_deployment_status_replicas{namespace=\"$namespace\"},deployment)", |
| "hide": 0, |
| "includeAll": false, |
| "multi": false, |
| "name": "shardingsphere", |
| "options": [], |
| "query": { |
| "query": "label_values(kube_deployment_status_replicas{namespace=\"$namespace\"},deployment)", |
| "refId": "StandardVariableQuery" |
| }, |
| "refresh": 1, |
| "regex": "", |
| "skipUrlSync": false, |
| "sort": 0, |
| "type": "query" |
| }, |
| { |
| "current": { |
| "selected": true, |
| "text": "2m", |
| "value": "2m" |
| }, |
| "hide": 0, |
| "includeAll": false, |
| "multi": false, |
| "name": "interval", |
| "options": [ |
| { |
| "selected": false, |
| "text": "1m", |
| "value": "1m" |
| }, |
| { |
| "selected": true, |
| "text": "2m", |
| "value": "2m" |
| }, |
| { |
| "selected": false, |
| "text": "5m", |
| "value": "5m" |
| }, |
| { |
| "selected": false, |
| "text": "10m", |
| "value": "10m" |
| }, |
| { |
| "selected": false, |
| "text": "30m", |
| "value": "30m" |
| }, |
| { |
| "selected": false, |
| "text": "1h", |
| "value": "1h" |
| }, |
| { |
| "selected": false, |
| "text": "6h", |
| "value": "6h" |
| }, |
| { |
| "selected": false, |
| "text": "12h", |
| "value": "12h" |
| }, |
| { |
| "selected": false, |
| "text": "1d", |
| "value": "1d" |
| }, |
| { |
| "selected": false, |
| "text": "7d", |
| "value": "7d" |
| }, |
| { |
| "selected": false, |
| "text": "14d", |
| "value": "14d" |
| }, |
| { |
| "selected": false, |
| "text": "30d", |
| "value": "30d" |
| } |
| ], |
| "query": "1m, 2m, 5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", |
| "queryValue": "", |
| "skipUrlSync": false, |
| "type": "custom" |
| } |
| ] |
| }, |
| "time": { |
| "from": "now-6h", |
| "to": "now" |
| }, |
| "timepicker": {}, |
| "timezone": "", |
| "title": "ShardingSphere Proxy Dashboard", |
| "uid": "sFVsfgaVz", |
| "version": 16, |
| "weekStart": "" |
| } |