*: add debugging metrics

This commit is contained in:
Xiang Li
2016-04-25 15:32:52 -07:00
parent 7161eeed8b
commit 67645095e9
7 changed files with 98 additions and 99 deletions

View File

@@ -18,14 +18,14 @@ import "github.com/prometheus/client_golang/prometheus"
var (
syncDurations = prometheus.NewHistogram(prometheus.HistogramOpts{
Namespace: "etcd",
Namespace: "etcd_debugging",
Subsystem: "wal",
Name: "fsync_durations_seconds",
Help: "The latency distributions of fsync called by wal.",
Buckets: prometheus.ExponentialBuckets(0.001, 2, 14),
})
lastIndexSaved = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "etcd",
Namespace: "etcd_debugging",
Subsystem: "wal",
Name: "last_index_saved",
Help: "The index of the last entry saved by wal.",