From d0bd4079924cc91a96a0bfed1441c3522b09cff5 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 67fdc1598cc21..7a2d1abd1e872 100644 --- a/pkg/metrics/grafana/tidb.json +++ b/pkg/metrics/grafana/tidb.json @@ -16654,7 +16654,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, @@ -16664,7 +16664,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": "", @@ -16678,7 +16678,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Sync Load Latency 95", + "title": "Sync Load Latency P99.99", "tooltip": { "shared": true, "sort": 0, From 66d00cef7d83ea31205c90dfaf95bb7e3efafe78 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 7a2d1abd1e872..0835ec395599a 100644 --- a/pkg/metrics/grafana/tidb.json +++ b/pkg/metrics/grafana/tidb.json @@ -16678,7 +16678,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Sync Load Latency P99.99", + "title": "Sync Load Latency P9999", "tooltip": { "shared": true, "sort": 0,