Skip to content

Commit

Permalink
metrics: Add a RU(max) panel to observe maximum resource consumption (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Apr 18, 2024
1 parent be2e310 commit afb5e40
Showing 1 changed file with 97 additions and 7 deletions.
104 changes: 97 additions & 7 deletions metrics/grafana/tidb_resource_control.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -197,7 +287,7 @@
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"x": 0,
"y": 1
},
"hiddenSeries": false,
Expand Down Expand Up @@ -315,7 +405,7 @@
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"x": 12,
"y": 8
},
"hiddenSeries": false,
Expand Down Expand Up @@ -432,8 +522,8 @@
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 8
"x": 0,
"y": 15
},
"hiddenSeries": false,
"id": 15,
Expand Down Expand Up @@ -548,9 +638,9 @@
"fillGradient": 0,
"grid": {},
"gridPos": {
"h": 8,
"h": 7,
"w": 12,
"x": 0,
"x": 12,
"y": 15
},
"hiddenSeries": false,
Expand Down Expand Up @@ -668,7 +758,7 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"x": 0,
"y": 15
},
"hiddenSeries": false,
Expand Down

0 comments on commit afb5e40

Please sign in to comment.