mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Add HTTP status code to histogram
The histogram for gateway_functions_seconds excluded the status code that gives important information for setting up SLOs. Fixes: #1725 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
This commit is contained in:
committed by
Alex Ellis
parent
96cfdee085
commit
cc2f38938e
@ -175,11 +175,6 @@ func main() {
|
||||
handlers.MakeCallIDMiddleware(handlers.MakeQueuedProxy(metricsOptions, natsQueue, trimURLTransformer, config.Namespace, functionQuery)),
|
||||
forwardingNotifiers,
|
||||
)
|
||||
|
||||
faasHandlers.AsyncReport = handlers.MakeNotifierWrapper(
|
||||
handlers.MakeAsyncReport(metricsOptions),
|
||||
forwardingNotifiers,
|
||||
)
|
||||
}
|
||||
|
||||
prometheusQuery := metrics.NewPrometheusQuery(config.PrometheusHost, config.PrometheusPort, &http.Client{})
|
||||
|
Reference in New Issue
Block a user