consul: Mesure time for reapTombstones

This commit is contained in:
Armon Dadgar 2014-12-18 16:09:02 -08:00
parent e2bfaa11a2
commit a350ec9379
1 changed files with 1 additions and 0 deletions

View File

@ -536,6 +536,7 @@ func (s *Server) removeConsulServer(m serf.Member, port int) error {
// through Raft to ensure consistency. We do this outside the leader loop // through Raft to ensure consistency. We do this outside the leader loop
// to avoid blocking. // to avoid blocking.
func (s *Server) reapTombstones(index uint64) { func (s *Server) reapTombstones(index uint64) {
defer metrics.MeasureSince([]string{"consul", "leader", "reapTombstones"}, time.Now())
req := structs.TombstoneRequest{ req := structs.TombstoneRequest{
Datacenter: s.config.Datacenter, Datacenter: s.config.Datacenter,
Op: structs.TombstoneReap, Op: structs.TombstoneReap,