say how many leases there are when threshold exceeded (#10567)

This commit is contained in:
swayne275 2020-12-14 16:00:19 -07:00 committed by GitHub
parent 28c4b33e7a
commit cdf933adf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1990,7 +1990,7 @@ func (m *ExpirationManager) emitMetrics() {
// Check if lease count is greater than the threshold
if num > maxLeaseThreshold {
if atomic.LoadUint32(m.leaseCheckCounter) > 59 {
m.logger.Warn("lease count exceeds warning lease threshold")
m.logger.Warn("lease count exceeds warning lease threshold", "have", num, "threshold", maxLeaseThreshold)
atomic.StoreUint32(m.leaseCheckCounter, 0)
} else {
atomic.AddUint32(m.leaseCheckCounter, 1)