in proxy/pkg/metrics/prom_recorder.go [40:51]
func (e *PromRecorder) RecordStatus(LabelValues map[string]string, statusCode int) {
if statusCode >= http.StatusBadRequest && statusCode <= http.StatusUnavailableForLegalReasons {
DefaultPrometheusExporter.Count(LError4XX, e.LabelNames, LabelValues)
DefaultPrometheusExporter.Count(LTotalFailures, e.LabelNames, LabelValues)
} else if statusCode >= http.StatusInternalServerError && statusCode <= http.StatusNetworkAuthenticationRequired {
DefaultPrometheusExporter.Count(LError5XX, e.LabelNames, LabelValues)
DefaultPrometheusExporter.Count(LTotalFailures, e.LabelNames, LabelValues)
} else if statusCode >= http.StatusOK && statusCode <= http.StatusIMUsed {
DefaultPrometheusExporter.Count(LTotalSuccess, e.LabelNames, LabelValues)
}
DefaultPrometheusExporter.Count(LTotalRequest, e.LabelNames, LabelValues)
}