Skip to content

Commit

Permalink
say how many leases there are when threshold exceeded (#10567) (#10573)
Browse files Browse the repository at this point in the history
  • Loading branch information
swayne275 authored Dec 15, 2020
1 parent b9aab1b commit 6d2db3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/expiration.go
Original file line number Diff line number Diff line change
Expand Up @@ -1989,7 +1989,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)
Expand Down

0 comments on commit 6d2db3f

Please sign in to comment.