From 44d57b6ed1756cf9317cd5698562697538bf9b2d Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Wed, 8 May 2024 15:17:38 +0800 Subject: [PATCH] metrics: fix patrol panel (#8116) close tikv/pd#8115 Signed-off-by: lhy1024 --- metrics/grafana/pd.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/grafana/pd.json b/metrics/grafana/pd.json index 9941004e0c2..018afe1d6a9 100644 --- a/metrics/grafana/pd.json +++ b/metrics/grafana/pd.json @@ -7909,7 +7909,7 @@ "tableColumn": "", "targets": [ { - "expr": "pd_checker_patrol_regions_time{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"} != 0", + "expr": "max(max(pd_checker_patrol_regions_time{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"})by(instance))", "legendFormat": "{{instance}}", "format": "time_series", "intervalFactor": 1,