From 3a2d1bab26bfb9e7d887207dec0c51645c7017fe Mon Sep 17 00:00:00 2001 From: Han Kang Date: Mon, 24 Oct 2022 15:27:05 -0400 Subject: [PATCH] swap name for storage metric for underlying storage db Change-Id: Ic7cd9bf5ef29d9c51a728ef37c94d77172fbf678 --- .../k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go b/staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go index 769cec77193..8255822945d 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go @@ -57,8 +57,9 @@ var ( ) dbTotalSize = compbasemetrics.NewGaugeVec( &compbasemetrics.GaugeOpts{ - Name: "etcd_db_total_size_in_bytes", - Help: "Total size of the etcd database file physically allocated in bytes.", + Subsystem: "apiserver", + Name: "storage_db_total_size_in_bytes", + Help: "Total size of the storage database file physically allocated in bytes.", StabilityLevel: compbasemetrics.ALPHA, }, []string{"endpoint"},