Merge pull request #56444 from mikedanese/morebuckets

Automatic merge from submit-queue (batch tested with PRs 55360, 56444, 56687, 56791, 56802). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

certs: add month buckets to expiration metric

7 days isn't enough warning for cert expiration alerting.

#56444
pull/6/head
Kubernetes Submit Queue 2017-12-04 13:40:14 -08:00 committed by GitHub
commit 3465aa93bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ var clientCertificateExpirationHistogram = prometheus.NewHistogram(
(2 * 24 * time.Hour).Seconds(),
(4 * 24 * time.Hour).Seconds(),
(7 * 24 * time.Hour).Seconds(),
(30 * 24 * time.Hour).Seconds(),
(3 * 30 * 24 * time.Hour).Seconds(),
(6 * 30 * 24 * time.Hour).Seconds(),
(12 * 30 * 24 * time.Hour).Seconds(),
},
},
)