From 5edac1914c266c227f5226b7df95ca9c275f5c02 Mon Sep 17 00:00:00 2001 From: nolouch Date: Wed, 24 May 2023 17:25:50 +0800 Subject: [PATCH] metrics: update the mvcc db metrics of etcd Signed-off-by: nolouch --- metrics/grafana/pd.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/metrics/grafana/pd.json b/metrics/grafana/pd.json index e0873edab6a..45e25ef6395 100644 --- a/metrics/grafana/pd.json +++ b/metrics/grafana/pd.json @@ -8718,12 +8718,20 @@ "steppedLine": false, "targets": [ { - "expr": "etcd_debugging_mvcc_db_total_size_in_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", job=\"pd\"}", + "expr": "etcd_mvcc_db_total_size_in_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", job=\"pd\"}", "format": "time_series", "hide": false, "intervalFactor": 1, - "legendFormat": "{{instance}}", + "legendFormat": "{{instance}}-physically-allocated", "refId": "A" + }, + { + "expr": "etcd_mvcc_db_total_size_in_use_in_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", job=\"pd\"}", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "{{instance}}-logically-in-use", + "refId": "B" } ], "thresholds": [],