registry cache_miss logic (#3578)

Signed-off-by: zouyee <zounyee1989@gmail.com>
This commit is contained in:
Zou Nengren 2020-01-03 17:06:37 +08:00 committed by Miek Gieben
parent 908508a9bd
commit 99e7c3dee7
2 changed files with 38 additions and 0 deletions

View file

@ -114,6 +114,7 @@ func (c *Cache) getIgnoreTTL(now time.Time, state request.Request, server string
}
return i.(*item)
}
cacheMisses.WithLabelValues(server).Inc()
return nil
}