Skip to content

Commit c54978a

Browse files
authored
Merge pull request kubernetes#74806 from mxinden/increase-bucket-resolution
src/k8s.io/apiserver: Increase cert expiration histogram resolution
2 parents 125410a + f90bbc3 commit c54978a

File tree

1 file changed

+3
-0
lines changed
  • staging/src/k8s.io/apiserver/pkg/authentication/request/x509

1 file changed

+3
-0
lines changed

staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ var clientCertificateExpirationHistogram = prometheus.NewHistogram(
3939
Help: "Distribution of the remaining lifetime on the certificate used to authenticate a request.",
4040
Buckets: []float64{
4141
0,
42+
(30 * time.Minute).Seconds(),
43+
(1 * time.Hour).Seconds(),
44+
(2 * time.Hour).Seconds(),
4245
(6 * time.Hour).Seconds(),
4346
(12 * time.Hour).Seconds(),
4447
(24 * time.Hour).Seconds(),

0 commit comments

Comments
 (0)