|
|
@@ -17,15 +17,18 @@ package wal
|
|
|
import "github.com/prometheus/client_golang/prometheus"
|
|
|
|
|
|
var (
|
|
|
- syncDurations = prometheus.NewHistogram(prometheus.HistogramOpts{
|
|
|
+ walFsyncSec = prometheus.NewHistogram(prometheus.HistogramOpts{
|
|
|
Namespace: "etcd",
|
|
|
Subsystem: "disk",
|
|
|
Name: "wal_fsync_duration_seconds",
|
|
|
- Help: "The latency distributions of fsync called by wal.",
|
|
|
- Buckets: prometheus.ExponentialBuckets(0.001, 2, 14),
|
|
|
+ Help: "The latency distributions of fsync called by WAL.",
|
|
|
+
|
|
|
+ // lowest bucket start of upper bound 0.001 sec (1 ms) with factor 2
|
|
|
+ // highest bucket start of 0.001 sec * 2^13 == 8.192 sec
|
|
|
+ Buckets: prometheus.ExponentialBuckets(0.001, 2, 14),
|
|
|
})
|
|
|
)
|
|
|
|
|
|
func init() {
|
|
|
- prometheus.MustRegister(syncDurations)
|
|
|
+ prometheus.MustRegister(walFsyncSec)
|
|
|
}
|