diff --git a/metrics/grafana/pd.json b/metrics/grafana/pd.json index fdab784bf94..ac45d613543 100644 --- a/metrics/grafana/pd.json +++ b/metrics/grafana/pd.json @@ -11367,14 +11367,15 @@ }, { "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, @@ -11382,6 +11383,127 @@ "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, @@ -11476,7 +11598,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 39 }, "id": 1305, @@ -11570,8 +11692,8 @@ "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 39 + "x": 0, + "y": 47 }, "id": 1306, "legend": { @@ -11660,7 +11782,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 47 }, "id": 1307, @@ -11753,8 +11875,8 @@ "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 47 + "x": 0, + "y": 55 }, "id": 1308, "legend": { @@ -11850,7 +11972,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 55 }, "id": 1309, @@ -11947,8 +12069,8 @@ "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 55 + "x": 0, + "y": 63 }, "id": 1310, "legend": { @@ -12044,7 +12166,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 63 }, "id": 1311, @@ -12141,8 +12263,8 @@ "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 63 + "x": 0, + "y": 71 }, "id": 1312, "legend": {