Skip to content

Commit

Permalink
metrics: update the mvcc db metrics of etcd (#6506)
Browse files Browse the repository at this point in the history
close #4399

metrics: update the mvcc db metrics of etcd
- distinguish between physical and logical

Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch authored May 24, 2023
1 parent 7906ba7 commit b45378a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions metrics/grafana/pd.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down

0 comments on commit b45378a

Please sign in to comment.