Merge pull request #3046 from xiang90/metrics

refactor metrics
release-2.1
Xiang Li 2015-06-24 13:58:28 -07:00
commit 44fda7985a
2 changed files with 5 additions and 3 deletions

View File

@ -47,7 +47,7 @@ var (
fileDescriptorUsed = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "etcd",
Subsystem: "server",
Name: "file_descriptors_used_totol",
Name: "file_descriptors_used_total",
Help: "The total number of file descriptors used.",
})
)

View File

@ -20,8 +20,10 @@ var (
// TODO: save_fsync latency?
// TODO: save_encoding latency?
saveDurations = prometheus.NewSummary(prometheus.SummaryOpts{
Name: "snapshot_save_total_durations_microseconds",
Help: "The total latency distributions of save called by snapshot.",
Namespace: "etcd",
Subsystem: "snapshot",
Name: "save_total_durations_microseconds",
Help: "The total latency distributions of save called by snapshot.",
})
)