snap: add namespace and subsystem fields for metrics

release-2.1
Xiang Li 2015-06-24 12:44:11 -07:00
parent 52c2a5731f
commit 9aeb181d75
1 changed files with 4 additions and 2 deletions

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.",
})
)