Increase sliding window to 5hr for request_latencies metric

Kubernetes-commit: e1ba3da16c9bebccb3902952d56b59f2e2dbb900
This commit is contained in:
Kubernetes Publisher 2017-09-22 11:42:05 +00:00
parent 15e7adf3e2
commit 8fc21589fe
1 changed files with 3 additions and 2 deletions

View File

@ -56,8 +56,9 @@ var (
prometheus.SummaryOpts{
Name: "apiserver_request_latencies_summary",
Help: "Response latency summary in microseconds for each verb, resource and subresource.",
// Make the sliding window of 1h.
MaxAge: time.Hour,
// Make the sliding window of 5h.
// TODO: The value for this should be based on our SLI definition (medium term).
MaxAge: 5 * time.Hour,
},
[]string{"verb", "resource", "subresource", "scope"},
)