mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Delete etcd_debug metrics scheduled for deletion in 3.5.
This commit is contained in:
@@ -43,14 +43,6 @@ var (
|
||||
Name: "put_total",
|
||||
Help: "Total number of puts seen by this member.",
|
||||
})
|
||||
// TODO: remove in 3.5 release
|
||||
putCounterDebug = prometheus.NewCounter(
|
||||
prometheus.CounterOpts{
|
||||
Namespace: "etcd_debugging",
|
||||
Subsystem: "mvcc",
|
||||
Name: "put_total",
|
||||
Help: "Total number of puts seen by this member.",
|
||||
})
|
||||
|
||||
deleteCounter = prometheus.NewCounter(
|
||||
prometheus.CounterOpts{
|
||||
@@ -59,14 +51,6 @@ var (
|
||||
Name: "delete_total",
|
||||
Help: "Total number of deletes seen by this member.",
|
||||
})
|
||||
// TODO: remove in 3.5 release
|
||||
deleteCounterDebug = prometheus.NewCounter(
|
||||
prometheus.CounterOpts{
|
||||
Namespace: "etcd_debugging",
|
||||
Subsystem: "mvcc",
|
||||
Name: "delete_total",
|
||||
Help: "Total number of deletes seen by this member.",
|
||||
})
|
||||
|
||||
txnCounter = prometheus.NewCounter(
|
||||
prometheus.CounterOpts{
|
||||
@@ -75,13 +59,6 @@ var (
|
||||
Name: "txn_total",
|
||||
Help: "Total number of txns seen by this member.",
|
||||
})
|
||||
txnCounterDebug = prometheus.NewCounter(
|
||||
prometheus.CounterOpts{
|
||||
Namespace: "etcd_debugging",
|
||||
Subsystem: "mvcc",
|
||||
Name: "txn_total",
|
||||
Help: "Total number of txns seen by this member.",
|
||||
})
|
||||
|
||||
keysGauge = prometheus.NewGauge(
|
||||
prometheus.GaugeOpts{
|
||||
@@ -199,19 +176,6 @@ var (
|
||||
reportDbTotalSizeInBytesMu sync.RWMutex
|
||||
reportDbTotalSizeInBytes = func() float64 { return 0 }
|
||||
|
||||
// TODO: remove this in v3.5
|
||||
dbTotalSizeDebug = prometheus.NewGaugeFunc(prometheus.GaugeOpts{
|
||||
Namespace: "etcd_debugging",
|
||||
Subsystem: "mvcc",
|
||||
Name: "db_total_size_in_bytes",
|
||||
Help: "Total size of the underlying database physically allocated in bytes.",
|
||||
},
|
||||
func() float64 {
|
||||
reportDbTotalSizeInBytesDebugMu.RLock()
|
||||
defer reportDbTotalSizeInBytesDebugMu.RUnlock()
|
||||
return reportDbTotalSizeInBytesDebug()
|
||||
},
|
||||
)
|
||||
// overridden by mvcc initialization
|
||||
reportDbTotalSizeInBytesDebugMu sync.RWMutex
|
||||
reportDbTotalSizeInBytesDebug = func() float64 { return 0 }
|
||||
@@ -318,11 +282,8 @@ func init() {
|
||||
prometheus.MustRegister(rangeCounter)
|
||||
prometheus.MustRegister(rangeCounterDebug)
|
||||
prometheus.MustRegister(putCounter)
|
||||
prometheus.MustRegister(putCounterDebug)
|
||||
prometheus.MustRegister(deleteCounter)
|
||||
prometheus.MustRegister(deleteCounterDebug)
|
||||
prometheus.MustRegister(txnCounter)
|
||||
prometheus.MustRegister(txnCounterDebug)
|
||||
prometheus.MustRegister(keysGauge)
|
||||
prometheus.MustRegister(watchStreamGauge)
|
||||
prometheus.MustRegister(watcherGauge)
|
||||
@@ -335,7 +296,6 @@ func init() {
|
||||
prometheus.MustRegister(dbCompactionLast)
|
||||
prometheus.MustRegister(dbCompactionKeysCounter)
|
||||
prometheus.MustRegister(dbTotalSize)
|
||||
prometheus.MustRegister(dbTotalSizeDebug)
|
||||
prometheus.MustRegister(dbTotalSizeInUse)
|
||||
prometheus.MustRegister(dbOpenReadTxN)
|
||||
prometheus.MustRegister(hashSec)
|
||||
|
||||
Reference in New Issue
Block a user