|
@@ -18,15 +18,22 @@ import "github.com/coreos/etcd/Godeps/_workspace/src/github.com/prometheus/clien
|
|
|
|
|
|
|
|
var (
|
|
var (
|
|
|
// TODO: save_fsync latency?
|
|
// TODO: save_fsync latency?
|
|
|
- // TODO: save_encoding latency?
|
|
|
|
|
saveDurations = prometheus.NewSummary(prometheus.SummaryOpts{
|
|
saveDurations = prometheus.NewSummary(prometheus.SummaryOpts{
|
|
|
Namespace: "etcd",
|
|
Namespace: "etcd",
|
|
|
Subsystem: "snapshot",
|
|
Subsystem: "snapshot",
|
|
|
Name: "save_total_durations_microseconds",
|
|
Name: "save_total_durations_microseconds",
|
|
|
Help: "The total latency distributions of save called by snapshot.",
|
|
Help: "The total latency distributions of save called by snapshot.",
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+ marshallingDurations = prometheus.NewSummary(prometheus.SummaryOpts{
|
|
|
|
|
+ Namespace: "etcd",
|
|
|
|
|
+ Subsystem: "snapshot",
|
|
|
|
|
+ Name: "save_marshalling_durations_microseconds",
|
|
|
|
|
+ Help: "The marshalling cost distributions of save called by snapshot.",
|
|
|
|
|
+ })
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
|
prometheus.MustRegister(saveDurations)
|
|
prometheus.MustRegister(saveDurations)
|
|
|
|
|
+ prometheus.MustRegister(marshallingDurations)
|
|
|
}
|
|
}
|