WFE: Track in-flight for "/" (#7759)
This commit is contained in:
parent
d0c9aa3808
commit
71178f4ca4
|
@ -81,10 +81,8 @@ func (h *MeasuredHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
rwws := &responseWriterWithStatus{w, 0}
|
rwws := &responseWriterWithStatus{w, 0}
|
||||||
|
|
||||||
subHandler, pattern := h.Handler(r)
|
subHandler, pattern := h.Handler(r)
|
||||||
if pattern != "/" {
|
h.inFlightRequestsGauge.WithLabelValues(pattern).Inc()
|
||||||
h.inFlightRequestsGauge.WithLabelValues(pattern).Inc()
|
defer h.inFlightRequestsGauge.WithLabelValues(pattern).Dec()
|
||||||
defer h.inFlightRequestsGauge.WithLabelValues(pattern).Dec()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use the method string only if it's a recognized HTTP method. This avoids
|
// Use the method string only if it's a recognized HTTP method. This avoids
|
||||||
// ballooning timeseries with invalid methods from public input.
|
// ballooning timeseries with invalid methods from public input.
|
||||||
|
|
Loading…
Reference in New Issue