*: add proposalsCommitted metrics

This commit is contained in:
Xiang Li
2016-05-06 15:06:41 -07:00
parent efcba23d21
commit ab11415d25
3 changed files with 14 additions and 0 deletions

View File

@ -58,6 +58,12 @@ var (
Name: "leader_changes_seen_total",
Help: "The number of leader changes seen.",
})
proposalsCommitted = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "etcd",
Subsystem: "server",
Name: "proposals_committed_total",
Help: "The total number of consensus proposals committed.",
})
)
func init() {
@ -66,6 +72,7 @@ func init() {
prometheus.MustRegister(proposeFailed)
prometheus.MustRegister(hasLeader)
prometheus.MustRegister(leaderChanges)
prometheus.MustRegister(proposalsCommitted)
}
func monitorFileDescriptor(done <-chan struct{}) {