mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Use a prometheus Histogram rather than a Summary for tracking apiserver latency.
This commit is contained in:
parent
76325ca851
commit
0d5fe5d078
@ -52,10 +52,12 @@ var (
|
||||
},
|
||||
[]string{"handler", "verb", "resource", "code"},
|
||||
)
|
||||
requestLatencies = prometheus.NewSummaryVec(
|
||||
prometheus.SummaryOpts{
|
||||
requestLatencies = prometheus.NewHistogramVec(
|
||||
prometheus.HistogramOpts{
|
||||
Name: "apiserver_request_latencies",
|
||||
Help: "Response latency summary in microseconds for each request handler and verb.",
|
||||
Help: "Response latency distribution in microseconds for each request handler and verb.",
|
||||
// Use buckets ranging from 125 ms to 8 seconds.
|
||||
Buckets: prometheus.ExponentialBuckets(125000, 2.0, 7),
|
||||
},
|
||||
[]string{"handler", "verb"},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user