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

This commit is contained in:
Han Kang 2023-02-15 09:16:16 -08:00
parent e18fa74551
commit 20b5205dad
2 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,7 @@ func newAdmissionMetrics() *AdmissionMetrics {
Subsystem: subsystem, Subsystem: subsystem,
Name: "webhook_admission_duration_seconds", 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).", 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, StabilityLevel: metrics.STABLE,
}, },
[]string{"name", "type", "operation", "rejected"}, []string{"name", "type", "operation", "rejected"},

View File

@ -290,6 +290,7 @@
- 0.5 - 0.5
- 1 - 1
- 2.5 - 2.5
- 10
- name: current_inflight_requests - name: current_inflight_requests
subsystem: apiserver subsystem: apiserver
help: Maximal number of currently used inflight request limit of this apiserver help: Maximal number of currently used inflight request limit of this apiserver