From 3f3206f128d66a1404da0df7d095c6de450d1d27 Mon Sep 17 00:00:00 2001 From: Zejun Li Date: Mon, 28 Sep 2020 11:12:12 +0800 Subject: [PATCH] cherry pick #20023 to release-4.0 Signed-off-by: ti-srebot --- metrics/grafana/tidb.json | 4 ++-- metrics/grafana/tidb_runtime.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/metrics/grafana/tidb.json b/metrics/grafana/tidb.json index fa879b0439740..a67032d9734a3 100644 --- a/metrics/grafana/tidb.json +++ b/metrics/grafana/tidb.json @@ -6665,7 +6665,7 @@ "steppedLine": false, "targets": [ { - "expr": "histogram_quantile(0.99, sum(rate(tidb_tikvclient_request_seconds_bucket{type!=\"GC\"}[1m])) by (le, store))", + "expr": "histogram_quantile(0.99, sum(rate(tidb_tikvclient_request_seconds_bucket{store!=\"0\"}[1m])) by (le, store))", "format": "time_series", "intervalFactor": 2, "legendFormat": "store-{{store}}", @@ -6760,7 +6760,7 @@ "steppedLine": false, "targets": [ { - "expr": "histogram_quantile(0.99, sum(rate(tidb_tikvclient_request_seconds_bucket{type!=\"GC\"}[1m])) by (le,type))", + "expr": "histogram_quantile(0.99, sum(rate(tidb_tikvclient_request_seconds_bucket{store!=\"0\"}[1m])) by (le,type))", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{type}}", diff --git a/metrics/grafana/tidb_runtime.json b/metrics/grafana/tidb_runtime.json index d5bab22fd0cc3..364a4f55ef898 100644 --- a/metrics/grafana/tidb_runtime.json +++ b/metrics/grafana/tidb_runtime.json @@ -1098,7 +1098,7 @@ "steppedLine": false, "targets": [ { - "expr": "histogram_quantile(0.99, sum(rate(tidb_tikvclient_request_seconds_bucket{type!=\"GC\",instance=~\"$instance\"}[30s])) by (le, store))", + "expr": "histogram_quantile(0.99, sum(rate(tidb_tikvclient_request_seconds_bucket{store!=\"0\",instance=~\"$instance\"}[30s])) by (le, store))", "format": "time_series", "intervalFactor": 1, "legendFormat": "tidb-to-store{{store}}",