Skip to content

Commit

Permalink
fix comment: change dist ddl to dist task
Browse files Browse the repository at this point in the history
  • Loading branch information
okJiang committed Sep 25, 2023
1 parent 0d92eae commit c4eef6d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions metrics/disttask.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const (
)

var (
// DistTaskSubTaskCntGauge is the gauge of dist ddl subtask count.
// DistTaskSubTaskCntGauge is the gauge of dist task subtask count.
DistTaskSubTaskCntGauge *prometheus.GaugeVec
// DistTaskSubTaskStartTimeGauge is the gauge of dist ddl subtask start time.
// DistTaskSubTaskStartTimeGauge is the gauge of dist task subtask start time.
DistTaskSubTaskStartTimeGauge *prometheus.GaugeVec
)

Expand All @@ -42,7 +42,7 @@ func InitDistTaskMetrics() {
prometheus.GaugeOpts{
Namespace: "tidb",
Subsystem: "disttask",
Name: "ddl_subtask_cnt",
Name: "subtask_cnt",
Help: "Gauge of ddl subtask count.",
}, []string{lblTaskType, lblTaskID, lblSchedulerID, lblTaskStatus})

Expand Down
16 changes: 8 additions & 8 deletions metrics/grafana/tidb.json
Original file line number Diff line number Diff line change
Expand Up @@ -13806,7 +13806,7 @@
"targets": [
{
"exemplar": true,
"expr": "sum(tidb_disttask_ddl_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=~\"pending|running|revert_pending|reverting|paused\"}) by (task_id)",
"expr": "sum(tidb_disttask_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=~\"pending|running|revert_pending|reverting|paused\"}) by (task_id)",
"interval": "",
"legendFormat": "",
"queryType": "randomWalk",
Expand All @@ -13817,7 +13817,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Running Dist DDL Subtasks",
"title": "Running Dist Task Subtasks",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -13901,7 +13901,7 @@
"targets": [
{
"exemplar": true,
"expr": "sum(tidb_disttask_ddl_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=~\"succeed|failed|canceled|reverted|revert_failed\"}) by (task_id)",
"expr": "sum(tidb_disttask_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=~\"succeed|failed|canceled|reverted|revert_failed\"}) by (task_id)",
"interval": "",
"legendFormat": "",
"queryType": "randomWalk",
Expand All @@ -13912,7 +13912,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Finished Dist DDL Subtasks",
"title": "Finished Dist Task Subtasks",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -13996,7 +13996,7 @@
"targets": [
{
"exemplar": true,
"expr": "sum by (task_id) (increase(tidb_disttask_ddl_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=\"succeed\"}[1m]))",
"expr": "sum by (task_id) (increase(tidb_disttask_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=\"succeed\"}[1m]))",
"interval": "",
"legendFormat": "task_id_{{task_id}}",
"queryType": "randomWalk",
Expand Down Expand Up @@ -14092,7 +14092,7 @@
"targets": [
{
"exemplar": true,
"expr": "increase(tidb_disttask_ddl_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=\"succeed\"}[1m])",
"expr": "increase(tidb_disttask_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=\"succeed\"}[1m])",
"interval": "",
"legendFormat": "{{scheduler_id}}",
"queryType": "randomWalk",
Expand Down Expand Up @@ -14193,14 +14193,14 @@
"targets": [
{
"exemplar": true,
"expr": "sum(tidb_disttask_ddl_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=~\"pending|running|reverting|revert_pending|paused\"}) by (scheduler_id)",
"expr": "sum(tidb_disttask_subtask_cnt{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=~\"pending|running|reverting|revert_pending|paused\"}) by (scheduler_id)",
"interval": "",
"legendFormat": "",
"queryType": "randomWalk",
"refId": "A"
}
],
"title": "Distributed DDL Running Subtask Distribution on TiDB Nodes",
"title": "Distributed Task Running Subtask Distribution on TiDB Nodes",
"type": "piechart"
}
],
Expand Down
2 changes: 1 addition & 1 deletion metrics/grafana/tidb_runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@
"targets": [
{
"exemplar": true,
"expr": "tidb_disttask_ddl_subtask_cnt{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=\"pending\"}",
"expr": "tidb_disttask_subtask_cnt{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", status=\"pending\"}",
"interval": "",
"legendFormat": "pending_subtasks",
"queryType": "randomWalk",
Expand Down

0 comments on commit c4eef6d

Please sign in to comment.