use 10 seconds as the biggest bucket for webhook metrics otherwise charts will top out at 2.5s for webhook latencies

Kubernetes-commit: 20b5205dad419fa79b0c6cd69d01183d21f7d9c5
This commit is contained in:
Han Kang 2023-02-15 09:16:16 -08:00 committed by Kubernetes Publisher
parent 019815a2d6
commit d92f186e5f
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ func newAdmissionMetrics() *AdmissionMetrics {
Subsystem: subsystem,
Name: "webhook_admission_duration_seconds",
Help: "Admission webhook latency histogram in seconds, identified by name and broken out for each operation and API resource and type (validate or admit).",
Buckets: []float64{0.005, 0.025, 0.1, 0.5, 1.0, 2.5},
Buckets: []float64{0.005, 0.025, 0.1, 0.5, 1.0, 2.5, 10},
StabilityLevel: metrics.STABLE,
},
[]string{"name", "type", "operation", "rejected"},