From 1e825d37287f98d9ba343dc4c02b15c9cbd81da1 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Thu, 8 Feb 2024 09:46:16 +0800 Subject: [PATCH] metrics: tidb_statistics_auto_analyze_total should be int (#51050) (#51062) close pingcap/tidb#51051 --- pkg/metrics/grafana/tidb.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/metrics/grafana/tidb.json b/pkg/metrics/grafana/tidb.json index b86e8db1009bd..372e4a23d7777 100644 --- a/pkg/metrics/grafana/tidb.json +++ b/pkg/metrics/grafana/tidb.json @@ -14545,7 +14545,7 @@ "dashLength": 10, "dashes": false, "datasource": "${DS_TEST-CLUSTER}", - "description": "TiDB auto analyze query per second", + "description": "TiDB auto analyze query per minute", "fieldConfig": { "defaults": {}, "overrides": [] @@ -14587,7 +14587,7 @@ "steppedLine": false, "targets": [ { - "expr": "sum(rate(tidb_statistics_auto_analyze_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])) by (type)", + "expr": "sum(increase(tidb_statistics_auto_analyze_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])) by (type)", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{type}}", @@ -14599,7 +14599,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Auto Analyze QPS", + "title": "Auto Analyze Queries Per Minute", "tooltip": { "shared": true, "sort": 0,