diff --git a/metrics/grafana/tidb_resource_control.json b/metrics/grafana/tidb_resource_control.json index f6a77380118a8..5a81d94de9b47 100644 --- a/metrics/grafana/tidb_resource_control.json +++ b/metrics/grafana/tidb_resource_control.json @@ -178,6 +178,96 @@ "alignLevel": null } }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_TEST-CLUSTER}", + "description": "The max request unit cost per second for all resource groups.", + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 1 + }, + "hiddenSeries": false, + "id": 40, + "legend": { + "alignAsTable": true, + "current": true, + "rightSide": true, + "show": true, + "sort": "max", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.5.27", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "editorMode": "code", + "expr": "sum(resource_manager_resource_unit_read_request_unit_max_per_sec{k8s_cluster=\"$k8s_cluster\", tidb_cluster=~\"$tidb_cluster.*\"}) by (resource_group)", + "hide": false, + "legendFormat": "{{resource_group}}", + "range": true, + "refId": "C" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "RU (max)", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:37", + "format": "short", + "logBase": 10, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:38", + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, { "aliasColors": {}, "bars": false, @@ -197,7 +287,7 @@ "gridPos": { "h": 7, "w": 12, - "x": 12, + "x": 0, "y": 1 }, "hiddenSeries": false, @@ -315,7 +405,7 @@ "gridPos": { "h": 7, "w": 12, - "x": 0, + "x": 12, "y": 8 }, "hiddenSeries": false, @@ -432,8 +522,8 @@ "gridPos": { "h": 7, "w": 12, - "x": 12, - "y": 8 + "x": 0, + "y": 15 }, "hiddenSeries": false, "id": 15, @@ -548,9 +638,9 @@ "fillGradient": 0, "grid": {}, "gridPos": { - "h": 8, + "h": 7, "w": 12, - "x": 0, + "x": 12, "y": 15 }, "hiddenSeries": false, @@ -668,7 +758,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 12, + "x": 0, "y": 15 }, "hiddenSeries": false,