From be07ce3b2572e6910a1507c171a72ffc9a4b2c08 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 7 Feb 2024 17:27:09 +0800 Subject: [PATCH 1/2] metrics: tidb_statistics_auto_analyze_total should be int Signed-off-by: Weizhen Wang --- pkg/metrics/grafana/tidb.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/metrics/grafana/tidb.json b/pkg/metrics/grafana/tidb.json index 7a1a39e52a97f..740ea025a29d2 100644 --- a/pkg/metrics/grafana/tidb.json +++ b/pkg/metrics/grafana/tidb.json @@ -15349,7 +15349,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}}", From bee01b75b01b62429564054a54ea08fbdb0af09f Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 7 Feb 2024 17:29:04 +0800 Subject: [PATCH 2/2] metrics: tidb_statistics_auto_analyze_total should be int Signed-off-by: Weizhen Wang --- 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 740ea025a29d2..89b707b88ec06 100644 --- a/pkg/metrics/grafana/tidb.json +++ b/pkg/metrics/grafana/tidb.json @@ -15307,7 +15307,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": [] @@ -15361,7 +15361,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Auto Analyze QPS", + "title": "Auto Analyze Queries Per Minute", "tooltip": { "shared": true, "sort": 0,