From 21130d5fb646c99408b992c30b313f5ec9af22b8 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Thu, 7 Jun 2018 10:11:58 -0700 Subject: [PATCH] mvcc: promote db size metrics to "etcd" Signed-off-by: Gyuho Lee --- mvcc/metrics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mvcc/metrics.go b/mvcc/metrics.go index f80c70c85..c7ea0ce4c 100644 --- a/mvcc/metrics.go +++ b/mvcc/metrics.go @@ -146,7 +146,7 @@ var ( }) dbTotalSize = prometheus.NewGaugeFunc(prometheus.GaugeOpts{ - Namespace: "etcd_debugging", + Namespace: "etcd", Subsystem: "mvcc", Name: "db_total_size_in_bytes", Help: "Total size of the underlying database physically allocated in bytes.", @@ -159,10 +159,10 @@ var ( ) // overridden by mvcc initialization reportDbTotalSizeInBytesMu sync.RWMutex - reportDbTotalSizeInBytes func() float64 = func() float64 { return 0 } + reportDbTotalSizeInBytes = func() float64 { return 0 } dbTotalSizeInUse = prometheus.NewGaugeFunc(prometheus.GaugeOpts{ - Namespace: "etcd_debugging", + Namespace: "etcd", Subsystem: "mvcc", Name: "db_total_size_in_use_in_bytes", Help: "Total size of the underlying database logically in use in bytes.",