From 353e87cf76eae5444d945320ee70e980f144aaff Mon Sep 17 00:00:00 2001 From: Zejun Li Date: Mon, 28 Sep 2020 11:12:12 +0800 Subject: [PATCH] grafana: update kv duration filter condition (#20023) --- 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 84a0b112b0..abe270bfcf 100644 --- a/metrics/grafana/tidb.json +++ b/metrics/grafana/tidb.json @@ -6927,7 +6927,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}}", @@ -7022,7 +7022,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 d5bab22fd0..364a4f55ef 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}}",