MM-25005: Remove HttpRequestsDuration bucket (#14520)

* MM-25005: Remove HttpRequestsDuration bucket

The ApiTimesHistograms already captures what HttpRequestsDuration does.
And it's more granular than that. So there's no need to duplicate stuff.
Let's remove this one.

* Updating resource class to xlarge

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Jason Deland <jaydeland@gmail.com>
Этот коммит содержится в:
Agniva De Sarker
2020-05-14 10:53:55 +05:30
коммит произвёл GitHub
родитель 5686268a5a
Коммит 624980ff54
4 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@@ -260,7 +260,6 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != model.API_URL_SUFFIX+"/websocket" {
elapsed := float64(time.Since(now)) / float64(time.Second)
statusCode := strconv.Itoa(w.(*responseWriterWrapper).StatusCode())
c.App.Metrics().ObserveHttpRequestDuration(elapsed)
c.App.Metrics().ObserveApiEndpointDuration(h.HandlerName, r.Method, statusCode, elapsed)
}
}