From 4ed493dcc1e3d55dd5af46db49d0b6cd34a24c07 Mon Sep 17 00:00:00 2001 From: okJiang <819421878@qq.com> Date: Wed, 10 Jan 2024 13:16:55 +0800 Subject: [PATCH] metrics: Add Backfill task type and update metric query format (#50249) close pingcap/tidb#49621 --- pkg/metrics/grafana/tidb.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metrics/grafana/tidb.json b/pkg/metrics/grafana/tidb.json index 1de498be81afa..7ff82e29948b3 100644 --- a/pkg/metrics/grafana/tidb.json +++ b/pkg/metrics/grafana/tidb.json @@ -14621,10 +14621,10 @@ "targets": [ { "exemplar": true, - "expr": "tidb_disttask_task_status{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\"}", + "expr": "sum(tidb_disttask_task_status{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\"}) by (status, task_type)", "hide": false, "interval": "", - "legendFormat": "{{task_type}}_{{task_id}}_{{status}}", + "legendFormat": "{{task_type}}_{{status}}", "queryType": "randomWalk", "refId": "A" }