From 523da29b1013bd23bb9d2ebc98001fbac3913ffd Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Wed, 13 Jul 2022 15:37:05 +0800 Subject: [PATCH] metrics/grafana: bring back the plan cache miss panel (#36081) close pingcap/tidb#36079 --- metrics/grafana/tidb.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/metrics/grafana/tidb.json b/metrics/grafana/tidb.json index e03f651459..7b15d3d6bb 100644 --- a/metrics/grafana/tidb.json +++ b/metrics/grafana/tidb.json @@ -6904,7 +6904,7 @@ "dashes": false, "datasource": "${DS_TEST-CLUSTER}", "decimals": null, - "description": "TiDB plan cache hit total", + "description": "TiDB plan cache miss total", "editable": true, "error": false, "fieldConfig": { @@ -6955,7 +6955,7 @@ "steppedLine": false, "targets": [ { - "expr": "sum(rate(tidb_server_plan_cache_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])) by (type)", + "expr": "sum(rate(tidb_server_plan_cache_miss_total{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])) by (type)", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{type}}", @@ -6967,7 +6967,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Queries Using Plan Cache OPS", + "title": "Plan Cache Miss OPS", "tooltip": { "msResolution": false, "shared": true, @@ -16119,4 +16119,4 @@ "title": "Test-Cluster-TiDB", "uid": "000000011", "version": 1 -} \ No newline at end of file +}