File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
pkg/webhook/internal/metrics Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package metrics
1818
1919import (
2020 "net/http"
21+ "time"
2122
2223 "github.com/prometheus/client_golang/prometheus"
2324 "github.com/prometheus/client_golang/prometheus/promhttp"
3031 // of processing admission requests.
3132 RequestLatency = prometheus .NewHistogramVec (
3233 prometheus.HistogramOpts {
33- Name : "controller_runtime_webhook_latency_seconds" ,
34- Help : "Histogram of the latency of processing admission requests" ,
34+ Name : "controller_runtime_webhook_latency_seconds" ,
35+ Help : "Histogram of the latency of processing admission requests" ,
36+ NativeHistogramBucketFactor : 1.1 ,
37+ NativeHistogramMaxBucketNumber : 100 ,
38+ NativeHistogramMinResetDuration : 1 * time .Hour ,
3539 },
3640 []string {"webhook" },
3741 )
You can’t perform that action at this time.
0 commit comments