Merge pull request #10391 from wojtek-t/longer_metrics

Increase the length of sliding window for latency metrics
pull/6/head
Zach Loafman 2015-06-30 16:04:53 -07:00
commit 9a5891dc89
2 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,8 @@ var (
prometheus.SummaryOpts{ prometheus.SummaryOpts{
Name: "apiserver_request_latencies_summary", Name: "apiserver_request_latencies_summary",
Help: "Response latency summary in microseconds for each verb and resource.", Help: "Response latency summary in microseconds for each verb and resource.",
// Make the sliding window of 1h.
MaxAge: time.Hour,
}, },
[]string{"verb", "resource"}, []string{"verb", "resource"},
) )

View File

@ -31,6 +31,7 @@ var (
Subsystem: restClientSubsystem, Subsystem: restClientSubsystem,
Name: "request_latency_microseconds", Name: "request_latency_microseconds",
Help: "Request latency in microseconds. Broken down by verb and URL", Help: "Request latency in microseconds. Broken down by verb and URL",
MaxAge: time.Hour,
}, },
[]string{"verb", "url"}, []string{"verb", "url"},
) )