Skip to content

Commit

Permalink
grafana: add region heartbeat duration breakdown metrics (#7921)
Browse files Browse the repository at this point in the history
close #7868

grafana: add region heartbeat duration breakdown metrics

Signed-off-by: nolouch <nolouch@gmail.com>

Co-authored-by: Shuning Chen <nolouch@ShuningdeMacBook-Pro.local>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 15, 2024
1 parent 6ee25f9 commit 83a5966
Showing 1 changed file with 136 additions and 14 deletions.
150 changes: 136 additions & 14 deletions metrics/grafana/pd.json
Original file line number Diff line number Diff line change
Expand Up @@ -11367,21 +11367,143 @@
},
{
"aliasColors": {},
"bars": false,
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "The count of the heartbeats which each TiKV instance reports to PD",
"description": "The breakdown metric about heartbeat",
"editable": true,
"error": false,
"fill": 0,
"fillGradient": 0,
"grid": {},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 31
},
"hiddenSeries": false,
"id": 1335,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"hideEmpty": true,
"hideZero": true,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
"pluginVersion": "8.5.27",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:1147",
"alias": "WaitRegionsLock",
"bars": false,
"lines": true,
"linewidth": 2,
"stack": false
},
{
"$$hashKey": "object:1251",
"alias": "WaitSubRegionsLock",
"bars": false,
"lines": true,
"linewidth": 2,
"stack": false
}
],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(pd_core_region_heartbeat_breakdown_handle_duration_seconds_sum{k8s_cluster=\"$k8s_cluster\",tidb_cluster=~\"$tidb_cluster.*\"}[1m])) by (name)",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "{{name}}",
"range": true,
"refId": "A",
"step": 4
},
{
"expr": "sum(rate(pd_core_acquire_regions_lock_wait_duration_seconds_sum{k8s_cluster=\"$k8s_cluster\",tidb_cluster=~\"$tidb_cluster.*\"}[1m])) by (type)",
"hide": false,
"legendFormat": "{{type}}",
"range": true,
"refId": "B"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Heartbeat Performance Duration BreakDown (Accumulation)",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:322",
"format": "s",
"logBase": 1,
"min": "0",
"show": true
},
{
"$$hashKey": "object:323",
"format": "s",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "The count of the heartbeats which each TiKV instance reports to PD",
"editable": true,
"error": false,
"fill": 0,
"grid": {},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 39
},
"id": 1304,
"legend": {
"alignAsTable": true,
Expand Down Expand Up @@ -11476,7 +11598,7 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"x": 12,
"y": 39
},
"id": 1305,
Expand Down Expand Up @@ -11570,8 +11692,8 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 39
"x": 0,
"y": 47
},
"id": 1306,
"legend": {
Expand Down Expand Up @@ -11660,7 +11782,7 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"x": 12,
"y": 47
},
"id": 1307,
Expand Down Expand Up @@ -11753,8 +11875,8 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 47
"x": 0,
"y": 55
},
"id": 1308,
"legend": {
Expand Down Expand Up @@ -11850,7 +11972,7 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"x": 12,
"y": 55
},
"id": 1309,
Expand Down Expand Up @@ -11947,8 +12069,8 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 55
"x": 0,
"y": 63
},
"id": 1310,
"legend": {
Expand Down Expand Up @@ -12044,7 +12166,7 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"x": 12,
"y": 63
},
"id": 1311,
Expand Down Expand Up @@ -12141,8 +12263,8 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 63
"x": 0,
"y": 71
},
"id": 1312,
"legend": {
Expand Down

0 comments on commit 83a5966

Please sign in to comment.