diff --git a/pkg/util/metric/v2/fileservice.go b/pkg/util/metric/v2/fileservice.go index 51ab637fabbc..4a808add97e7 100644 --- a/pkg/util/metric/v2/fileservice.go +++ b/pkg/util/metric/v2/fileservice.go @@ -76,7 +76,7 @@ var ( Subsystem: "fs", Name: "s3_io_duration_seconds", Help: "Bucketed histogram of s3 io duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) S3WriteIODurationHistogram = s3IODurationHistogram.WithLabelValues("write") S3ReadIODurationHistogram = s3IODurationHistogram.WithLabelValues("read") @@ -87,7 +87,7 @@ var ( Subsystem: "fs", Name: "s3_conn_duration_seconds", Help: "Bucketed histogram of s3 get conn duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) S3GetConnDurationHistogram = s3ConnDurationHistogram.WithLabelValues("get-conn") S3DNSResolveDurationHistogram = s3ConnDurationHistogram.WithLabelValues("dns-resolve") @@ -111,7 +111,7 @@ var ( Subsystem: "fs", Name: "local_io_duration_seconds", Help: "Bucketed histogram of local io duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) LocalWriteIODurationHistogram = localIODurationHistogram.WithLabelValues("write") LocalReadIODurationHistogram = localIODurationHistogram.WithLabelValues("read") diff --git a/pkg/util/metric/v2/hakeeper.go b/pkg/util/metric/v2/hakeeper.go index ecc6160debf5..3eead1105881 100644 --- a/pkg/util/metric/v2/hakeeper.go +++ b/pkg/util/metric/v2/hakeeper.go @@ -23,7 +23,7 @@ var ( Subsystem: "heartbeat_send", Name: "duration_seconds", Help: "hakeeper heartbeat send durations", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) HeartbeatFailureCounter = prometheus.NewCounterVec( @@ -40,7 +40,7 @@ var ( Subsystem: "heartbeat_recv", Name: "duration_seconds", Help: "hakeeper heartbeat recv durations", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) HeartbeatRecvFailureCounter = prometheus.NewCounterVec( diff --git a/pkg/util/metric/v2/logtail.go b/pkg/util/metric/v2/logtail.go index 2bba817f447f..506180d8c91e 100644 --- a/pkg/util/metric/v2/logtail.go +++ b/pkg/util/metric/v2/logtail.go @@ -57,7 +57,7 @@ var ( Subsystem: "logtail", Name: "apply_duration_seconds", Help: "Bucketed histogram of apply log tail into mem-table duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"step"}) LogTailApplyDurationHistogram = logTailApplyDurationHistogram.WithLabelValues("apply") LogTailApplyLatencyDurationHistogram = logTailApplyDurationHistogram.WithLabelValues("apply-latency") @@ -70,7 +70,7 @@ var ( Subsystem: "logtail", Name: "append_duration_seconds", Help: "Bucketed histogram of append log tail into logservice duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }) logTailSendDurationHistogram = prometheus.NewHistogramVec( @@ -79,7 +79,7 @@ var ( Subsystem: "logtail", Name: "send_duration_seconds", Help: "Bucketed histogram of send logtail log duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 10), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 10), }, []string{"step"}) LogtailSendTotalHistogram = logTailSendDurationHistogram.WithLabelValues("total") LogtailSendLatencyHistogram = logTailSendDurationHistogram.WithLabelValues("latency") @@ -91,7 +91,7 @@ var ( Subsystem: "logtail", Name: "load_checkpoint_duration_seconds", Help: "Bucketed histogram of load check point duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }) LogTailCollectDurationHistogram = prometheus.NewHistogram( @@ -100,7 +100,7 @@ var ( Subsystem: "logtail", Name: "collect_duration_seconds", Help: "Bucketed histogram of logtail collecting duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }) ) diff --git a/pkg/util/metric/v2/morpc.go b/pkg/util/metric/v2/morpc.go index 4643063cd94e..03951dcb9470 100644 --- a/pkg/util/metric/v2/morpc.go +++ b/pkg/util/metric/v2/morpc.go @@ -101,7 +101,7 @@ var ( Subsystem: "rpc", Name: "backend_connect_duration_seconds", Help: "Bucketed histogram of write data into socket duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"name"}) rpcWriteDurationHistogram = prometheus.NewHistogramVec( @@ -110,7 +110,7 @@ var ( Subsystem: "rpc", Name: "write_duration_seconds", Help: "Bucketed histogram of write data into socket duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"name", "side"}) rpcWriteLatencyDurationHistogram = prometheus.NewHistogramVec( @@ -119,7 +119,7 @@ var ( Subsystem: "rpc", Name: "write_latency_duration_seconds", Help: "Bucketed histogram of write latency duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"name", "side"}) rpcBackendDoneDurationHistogram = prometheus.NewHistogramVec( @@ -128,7 +128,7 @@ var ( Subsystem: "rpc", Name: "backend_done_duration_seconds", Help: "Bucketed histogram of request done duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"name"}) ) diff --git a/pkg/util/metric/v2/task.go b/pkg/util/metric/v2/task.go index 0db1ae37a1ae..4b4af13ed0fa 100644 --- a/pkg/util/metric/v2/task.go +++ b/pkg/util/metric/v2/task.go @@ -25,7 +25,7 @@ var ( Subsystem: "task", Name: "short_duration_seconds", Help: "Bucketed histogram of short tn task execute duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) TaskFlushTableTailDurationHistogram = taskShortDurationHistogram.WithLabelValues("flush_table_tail") diff --git a/pkg/util/metric/v2/txn.go b/pkg/util/metric/v2/txn.go index 9124cdda0183..641449e9ba4a 100644 --- a/pkg/util/metric/v2/txn.go +++ b/pkg/util/metric/v2/txn.go @@ -109,7 +109,7 @@ var ( Subsystem: "txn", Name: "commit_duration_seconds", Help: "Bucketed histogram of txn commit duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) TxnCNCommitDurationHistogram = txnCommitDurationHistogram.WithLabelValues("cn") TxnCNSendCommitDurationHistogram = txnCommitDurationHistogram.WithLabelValues("cn-send") @@ -123,7 +123,7 @@ var ( Subsystem: "txn", Name: "life_duration_seconds", Help: "Bucketed histogram of txn life cycle duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }) TxnLifeCycleStatementsTotalHistogram = prometheus.NewHistogram( @@ -141,7 +141,7 @@ var ( Subsystem: "txn", Name: "create_duration_seconds", Help: "Bucketed histogram of txn create txn duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) TxnCreateTotalDurationHistogram = txnCreateDurationHistogram.WithLabelValues("total") TxnDetermineSnapshotDurationHistogram = txnCreateDurationHistogram.WithLabelValues("determine-snapshot") @@ -153,7 +153,7 @@ var ( Subsystem: "txn", Name: "statement_duration_seconds", Help: "Bucketed histogram of txn statement duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) TxnStatementBuildPlanDurationHistogram = txnStatementDurationHistogram.WithLabelValues("build-plan") TxnStatementExecuteDurationHistogram = txnStatementDurationHistogram.WithLabelValues("execute") @@ -166,7 +166,7 @@ var ( Subsystem: "txn", Name: "lock_duration_seconds", Help: "Bucketed histogram of acquire lock duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) TxnAcquireLockDurationHistogram = txnLockDurationHistogram.WithLabelValues("acquire") TxnAcquireLockWaitDurationHistogram = txnLockDurationHistogram.WithLabelValues("acquire-wait") @@ -178,7 +178,7 @@ var ( Subsystem: "txn", Name: "unlock_duration_seconds", Help: "Bucketed histogram of release lock duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) TxnUnlockDurationHistogram = txnUnlockDurationHistogram.WithLabelValues("total") TxnUnlockBtreeGetLockDurationHistogram = txnUnlockDurationHistogram.WithLabelValues("btree-get-lock") @@ -199,7 +199,7 @@ var ( Subsystem: "txn", Name: "ranges_duration_seconds", Help: "Bucketed histogram of txn table ranges duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }) TxnTableRangeSizeHistogram = prometheus.NewHistogram( @@ -217,7 +217,7 @@ var ( Subsystem: "txn", Name: "tn_side_duration_seconds", Help: "Bucketed histogram of txn duration on tn side.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"step"}) TxnOnPrepareWALDurationHistogram = txnTNSideDurationHistogram.WithLabelValues("on_prepare_wal") @@ -231,7 +231,7 @@ var ( Subsystem: "txn", Name: "mpool_duration_seconds", Help: "Bucketed histogram of txn mpool duration.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), + Buckets: prometheus.ExponentialBuckets(0.00001, 2.0, 20), }, []string{"type"}) TxnMpoolNewDurationHistogram = txnMpoolDurationHistogram.WithLabelValues("new") TxnMpoolAllocDurationHistogram = txnMpoolDurationHistogram.WithLabelValues("alloc")