From d6924688cf7d9d94df073dcb9eb0f8a77c2775a2 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 30 Oct 2024 11:31:43 +0800 Subject: [PATCH 1/2] metrics: set sync load latency P99.99 Signed-off-by: Weizhen Wang --- 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 b7f64910a5f4b..8cda8dc02f5d4 100644 --- a/pkg/metrics/grafana/tidb.json +++ b/pkg/metrics/grafana/tidb.json @@ -15316,7 +15316,7 @@ "targets": [ { "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(tidb_statistics_sync_load_latency_millis_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])) by (le))", + "expr": "histogram_quantile(0.9999, sum(rate(tidb_statistics_sync_load_latency_millis_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])) by (le))", "format": "time_series", "interval": "", "intervalFactor": 2, @@ -15326,7 +15326,7 @@ }, { "exemplar": true, - "expr": "histogram_quantile(0.95, sum(rate(tidb_statistics_read_stats_latency_millis_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])) by (le))", + "expr": "histogram_quantile(0.9999, sum(rate(tidb_statistics_read_stats_latency_millis_bucket{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])) by (le))", "format": "time_series", "hide": false, "interval": "", @@ -15340,7 +15340,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Sync Load Latency 95", + "title": "Sync Load Latency P99.99", "tooltip": { "shared": true, "sort": 0, From 94339dc7932eda65d01154227773f62d64b2a5e2 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 30 Oct 2024 11:43:12 +0800 Subject: [PATCH 2/2] update --- 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 8cda8dc02f5d4..f84ad21f4f89b 100644 --- a/pkg/metrics/grafana/tidb.json +++ b/pkg/metrics/grafana/tidb.json @@ -15340,7 +15340,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Sync Load Latency P99.99", + "title": "Sync Load Latency P9999", "tooltip": { "shared": true, "sort": 0,